diff --git a/src/win32/README.win32 b/src/win32/README.win32 index 60a7008..e1343af 100644 --- a/src/win32/README.win32 +++ b/src/win32/README.win32 @@ -1,19 +1,18 @@ Intro ----- - -This directory contains the project file for Visual Studio 2008 to build +This directory contains the project file for Visual Studio 2008 to build modbus.dll and the import library modbus.lib. - -The project file searches for D:/include/msvc_std to find stdint.h. -See ../../README.md - +The project file looks for D:/include/msvc_std to find stdint.h. +See ../../README.md file. config.h and ../modbus-version.h are generated using configure.js. -Run + +Run cscript configure.js -or +or wscript configure.js -or double click configure.js to generate these files. +or + double click configure.js to generate these files. diff --git a/src/win32/configure.js b/src/win32/configure.js index fe99f93..aa21e49 100644 --- a/src/win32/configure.js +++ b/src/win32/configure.js @@ -1,5 +1,5 @@ /* Configure script for modbus.dll, specific for Windows with Scripting Host. - * + * * Inspired by configure.js from libxml2 * * oldfaber < oldfaber _at_ gmail _dot_ com > @@ -19,44 +19,25 @@ var verMajor; var verMinor; var verMicro; /* modbus features. */ -var testRun = false; +var dryRun = false; /* Win32 build options. NOT used yet */ var compiler = "msvc"; /* Local stuff */ var error = 0; - -/* Helper function, transforms the option variable into the 'Enabled' - or 'Disabled' string. */ -function boolToStr(opt) { - if (opt == false) - return "no"; - else if (opt == true) - return "yes"; - error = 1; - return "*** undefined ***"; -} - -/* Helper function, transforms the argument string into a boolean - value. */ -function strToBool(opt) { - if (opt == 0 || opt == "no") - return false; - else if (opt == 1 || opt == "yes") - return true; - error = 1; - return false; -} +/* Filename */ +var newFile; /* Displays the details about how to use this script. */ function usage() { var txt; + txt = "Usage:\n"; txt += " cscript " + WScript.ScriptName + " \n"; txt += " cscript " + WScript.ScriptName + " help\n\n"; txt += "Options can be specified in the form