From: Dave Hart Date: Tue, 11 Apr 2023 10:21:33 +0000 (+0000) Subject: Remove unused cruft from BitKeeper ignore file. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d804c9076c3f54b2f7004a5470eed1798bfaea5;p=thirdparty%2Fntp.git Remove unused cruft from BitKeeper ignore file. Clean up redundancy in VS 2015 project files. Correct lingering instances of references to lib/isc to libntp/lib/isc [Bug 2525]. Prevent spurious rebuild of ntp_keyword.h and keyword_gen_utd during clean build or rebuild. Enable vs2015 randomized base address and data execution prevention. Use vs2015 link-time whole program optimization for release builds. bk: 643534adRCZHzqM6ULn6o1zfRzU3ow --- diff --git a/include/ntp_types.h b/include/ntp_types.h index 969b325b5..07ebe2817 100644 --- a/include/ntp_types.h +++ b/include/ntp_types.h @@ -168,11 +168,11 @@ typedef unsigned long long u_int64; /* * and here the trouble starts: We need a representation with more than - * 64 bits. If a scalar of that size is not available, we need a struct + * 32 bits. If a scalar of that size is not available, we need a struct * that holds the value in split representation. * * To ease the usage a bit, we alwys use a union that is in processor - * byte order and might or might not contain a 64bit scalar. + * byte order and might or might not contain a 64-bit scalar. */ #if SIZEOF_SHORT != 2 diff --git a/libntp/msyslog.c b/libntp/msyslog.c index 9a18c4d0d..ae950171f 100644 --- a/libntp/msyslog.c +++ b/libntp/msyslog.c @@ -92,7 +92,7 @@ format_errmsg( * errno_to_str() - a thread-safe strerror() replacement. * Hides the varied signatures of strerror_r(). * For Windows, we have: - * #define errno_to_str isc_strerror + * #define errno_to_str isc__strerror */ #ifndef errno_to_str void diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c index 0d8749bbb..d1108c9d1 100644 --- a/ntpd/ntp_control.c +++ b/ntpd/ntp_control.c @@ -821,10 +821,6 @@ static u_char res_async; /* sending async trap response? */ static char *reqpt; static char *reqend; -#ifndef MIN -#define MIN(a, b) (((a) <= (b)) ? (a) : (b)) -#endif - /* * init_control - initialize request data */ diff --git a/ntpd/ntp_parser.c b/ntpd/ntp_parser.c index 591593d1f..834b1fbd1 100644 --- a/ntpd/ntp_parser.c +++ b/ntpd/ntp_parser.c @@ -4101,7 +4101,7 @@ yyerror( if (!lex_from_file()) { /* Save the error message in the correct buffer */ retval = snprintf(remote_config.err_msg + remote_config.err_pos, - MAXLINE - remote_config.err_pos, + sizeof remote_config.err_msg - remote_config.err_pos, "column %d %s", ip_ctx->errpos.ncol, msg); diff --git a/ntpd/ntp_parser.y b/ntpd/ntp_parser.y index f9b18d16a..9516d674a 100644 --- a/ntpd/ntp_parser.y +++ b/ntpd/ntp_parser.y @@ -1814,7 +1814,7 @@ yyerror( if (!lex_from_file()) { /* Save the error message in the correct buffer */ retval = snprintf(remote_config.err_msg + remote_config.err_pos, - MAXLINE - remote_config.err_pos, + sizeof remote_config.err_msg - remote_config.err_pos, "column %d %s", ip_ctx->errpos.ncol, msg); diff --git a/ports/winnt/ppsapi/loopback/src/loopback-ppsapi.c b/ports/winnt/ppsapi/loopback/src/loopback-ppsapi.c index 4a708f4c0..772552756 100644 --- a/ports/winnt/ppsapi/loopback/src/loopback-ppsapi.c +++ b/ports/winnt/ppsapi/loopback/src/loopback-ppsapi.c @@ -30,7 +30,7 @@ * serial.sys with CD timestamping support. * * * This Windows version was derived by Dave Hart * - * from David L. Mills' timepps-Solaris.h * + * from David L. Mills' timepps-Solaris.h * * * *********************************************************************** * * diff --git a/ports/winnt/scripts/mkver.bat b/ports/winnt/scripts/mkver.bat index 4b0dcb8e6..c0c7b526b 100755 --- a/ports/winnt/scripts/mkver.bat +++ b/ports/winnt/scripts/mkver.bat @@ -20,6 +20,19 @@ see notes/remarks directly below this header: # # # Changes: +# +# 04/01/2023 Dave Hart +# - Use fast 'bk root' to check for BitKeeper +# instead of invocation that gets ChangeSet. +# - Removed compatibility with building from +# one level shallower used before multiple +# compiler versions were supported. +# - Add 'const ' to output version.c +# - Add -G, -U and -S options to split +# out ChangeSet revision retrieval from +# version.c generation for VS 2015 +# dependency improvements. +# # 03/03/2017 Brian Inglis # - ensure Windows system32 from COMSPEC added to start # of PATH in case other find commands are on PATH @@ -32,7 +45,7 @@ see notes/remarks directly below this header: # 12/21/2009 Dave Hart # - packageinfo.sh uses prerelease= now not # releasecandidate= -# 08/28/2009 Dave Hart +# 08/28/2009 Dave Hart # - support for building using per-compiler subdirs of winnt # 08/08/2006 Heiko Gerstung # - bugfixed point / rcpoint errors leading to a wrong @@ -59,24 +72,80 @@ see notes/remarks directly below this header: # to the version number # - major rework of the time and date recognition routines # in order to reflect international settings and OS- -# dependand formats +# dependent formats # ###################################################################### Notes/Howtos: -If you spot an error stating that bk.exe could not be found or executed -although it is installed on your computer, you should try to add the path -to your BK binary in your IDE configuration (for VisualStudio see -Tools/Options/Directories/Executables). +This batch file is used in two different ways. + +In the original design, used by compilers earlier than Visual Studio 2015, +it is invoked once from a program Windows port directory such as: + +...\ntp-src\ports\winnt\vs2013\ntpd + +with a command line like: + +call mkver.bat -P ntpd + +And it does the entire job of generating version.c, including determining +the source code manager revision number, directly from BitKeeper if it's +on the path and the sources are in a bk repository. Otherwise, with sources +from a distribution tarball, the revision comes from text file sntp\scm-rev. +sntp\scm-rev is not present in bk repos, it is generated as part of the +'make dist' run on a POSIX system. -Alternatively you can create a file called 'version' in the root path of -your ntp source tree which holds a string that is added to the version number. +For Visual Studio 2015, the dependency logic in the project files has been +improved to better ensure version.c is updated when the ChangeSet revision +has changed. To accomplish this, it was necessary to split the invocations +of mkver.bat into two phases. The first phase depends on whether the +SCM revision is obtained from sntp\scm-rev or from a bk repo. For scm-rev, +the first phase invocation for the ntpd example is: +call mkver.bat -U scm-rev + +To retrieve the revision from bk: + +call mkver.bat -G scm-rev + +In either case, a text file scm-rev is created with a current timestamp in +the program Windows port directory such as ...\ports\winnt\vs2015\ntpd. The +second-phase invocation which generates version.c is: + +call mkver.bat -S scm-rev -P ntpd + +This causes mkver.bat to skip the revision checks and simply use the one in +the scm-rev text file. :PROG +SET UPDATESCMREV= +SET GENERATESCMREV= +SET OUTPUTSCMREV= +SET SCMREV= + IF {%1} == {} GOTO USAGE IF {%1} == {-H} GOTO USAGE +IF {%1} == {-U} ( + IF {%2} == {} GOTO USAGE + SET UPDATESCMREV=%2 + SET OUTPUTSCMREV=%2 + IF NOT {%3} == {} GOTO USAGE + GOTO UPDATE_SCM_REV +) +IF {%1} == {-G} ( + IF {%2} == {} GOTO USAGE + SET GENERATESCMREV=%2 + SET OUTPUTSCMREV=%2 + IF NOT {%3} == {} GOTO USAGE + GOTO GENERATE_SCM_REV +) +IF {%1} == {-S} ( + IF {%2} == {} GOTO USAGE + SET SCMREV=%2 + SHIFT + SHIFT +) IF {%2} == {} GOTO USAGE IF {%1} == {-P} GOTO BEGIN @@ -93,7 +162,7 @@ SET PATH=%COMSPEC:\cmd.exe=%;%PATH% SET GENERATED_PROGRAM=%2 REM ***************************************************************************************************************** -REM Reimplemented from orginal Unix Shell script +REM Increment build number, reimplemented from orginal Unix Shell script REM ***************************************************************************************************************** IF NOT EXIST .version ECHO 0 > .version FOR /F %%i IN (.version) do @SET RUN=%%i @@ -145,7 +214,7 @@ REM **************************************************************************** SET UTC_SIGN= REM *** Now get the timezone settings from the registry - reg export "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" %TEMP%\TZ-%GENERATED_PROGRAM%.TMP + reg export "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" %TEMP%\TZ-%GENERATED_PROGRAM%.TMP >NUL REM was: regedit /e %TEMP%\TZ-%GENERATED_PROGRAM%.TMP "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" IF NOT EXIST %TEMP%\TZ-%GENERATED_PROGRAM%.TMP GOTO NOTZINFO @@ -187,7 +256,6 @@ REM **************************************************************************** :NOTZINFO -echo off REM ***************************************************************************************************************** REM Now grab the Version number out of the source code (using the packageinfo.sh file...) @@ -198,12 +266,7 @@ REM **************************************************************************** REM a version.m4 file. SET F_PACKAGEINFO_SH=..\..\..\..\packageinfo.sh IF EXIST %F_PACKAGEINFO_SH% goto VER_FROM_PACKAGE_INFO - REM next two lines can go away when all windows compilers are building under - rem ports\winnt\\ (ports\winnt\vs2008\ntpd) - rem rather than ports\winnt\ (ports\winnt\ntpd) - SET F_PACKAGEINFO_SH=..\..\..\packageinfo.sh - IF EXIST %F_PACKAGEINFO_SH% goto VER_FROM_PACKAGE_INFO - goto ERRNOVERF + goto ERRNOVERF :VER_FROM_PACKAGE_INFO REM Get version from packageinfo.sh file, which contains lines reading e.g. @@ -239,29 +302,48 @@ REM **************************************************************************** SET VER=%PROTO%.%MAJOR%.%MINOR%%POINT%%SPECIAL%%PR_SUF%%PR_POINT% - REM Now we have the version info, try to add a BK ChangeSet version number - + REM Now we have the version info, try to add a BK ChangeSet revision + + IF "%SCMREV%" == "" GOTO GENERATE_SCM_REV + + REM ** Called as -S to use generated scm-rev file. + FOR /F "TOKENS=1" %%a IN ('type %SCMREV%') DO @SET CSET=%%a + GOTO HAVECHANGESETREVISION + +:GENERATE_SCM_REV REM ** Check if BK is installed ... - bk -R prs -hr+ -nd:I: ChangeSet 2> NUL > NUL + bk root ../../../.. 2> NUL > NUL IF ERRORLEVEL 1 GOTO NOBK REM ** Try to get the CSet rev directly from BK FOR /F "TOKENS=1 DELIMS==" %%a IN ('bk.exe -R prs -hr+ -nd:I: ChangeSet') DO @SET CSET=%%a :NOBK + IF NOT "%GENERATESCMREV%" == "" GOTO WRITE_SCM_REV + +:UPDATE_SCM_REV REM ** If that was not successful, we'll take a look into a version file, if available IF EXIST ..\..\..\..\sntp\scm-rev ( IF "%CSET%"=="" FOR /F "TOKENS=1" %%a IN ('type ..\..\..\..\sntp\scm-rev') DO @SET CSET=%%a ) - REM next if block can go away once all windows compilers are building in - REM ports\winnt\\ (ports\winnt\vs2008\ntpd) - IF EXIST ..\..\..\sntp\scm-rev ( - IF "%CSET%"=="" FOR /F "TOKENS=1" %%a IN ('type ..\..\..\sntp\scm-rev') DO @SET CSET=%%a - ) + IF "%UPDATESCMREV%" == "" GOTO HAVECHANGESETREVISION + +:WRITE_SCM_REV + REM ** Called as -U scm-rev or -G scm-rev to update scm-rev file only + IF "%CSET%" == "" GOTO EMPTYCSET + ECHO %CSET% >%OUTPUTSCMREV% + GOTO EOF + +:EMPTYCSET + ECHO Warning: mkver.bat : Could not find sntp\scm-rev nor bk ChangeSet! + REM like touch, create empty file >%OUTPUTSCMREV% + GOTO EOF + +:HAVECHANGESETREVISION REM ** Now, expand our version number with the CSet revision, if we managed to get one IF NOT "%CSET%"=="" SET VER=%VER%@%CSET% - + REM We can add a "crypto" identifier (-o) if we see that Crypto support is included in our build REM we always include openssl on windows... SET VER=%VER%-o @@ -276,7 +358,7 @@ REM **************************************************************************** IF exist userset.reg del userset.reg IF exist userset.txt del userset.txt - reg export "HKEY_CURRENT_USER\Control Panel\International" userset.reg + reg export "HKEY_CURRENT_USER\Control Panel\International" userset.reg >NUL REM was: regedit /E userset.reg "HKEY_CURRENT_USER\Control Panel\International" IF not exist userset.reg goto ERRNOREG @@ -358,10 +440,6 @@ REM **************************************************************************** :DATEOK - REM Clean up any temporary files we may have created... - REM IF exist userset.reg del userset.reg - REM IF exist userset.txt del userset.txt - IF "%NMM%" == "01" SET MONTH=Jan IF "%NMM%" == "02" SET MONTH=Feb IF "%NMM%" == "03" SET MONTH=Mar @@ -396,15 +474,14 @@ REM **************************************************************************** IF "%NMM%" == "12" SET MONTH=Dec :DATE_OK - IF "%SS" == "" SET SS="00" REM ***************************************************************************************************************** REM Now create a valid version.c file ... REM ***************************************************************************************************************** - ECHO Version %VER% Build %RUN% date %MONTH%/%DAY%/%YEAR% time %HOUR%:%MIN%:%SEC% %UTC% - ECHO char * Version = "%GENERATED_PROGRAM% %VER% %MONTH% %DAY% %HOUR%:%MIN%:%SEC% %UTC% %YEAR% (%RUN%)" ; > version.c + ECHO %GENERATED_PROGRAM% version %VER% date %MONTH% %DAY% %YEAR% time %HOUR%:%MIN%:%SEC% %UTC% (%RUN%) + ECHO const char *Version = "%GENERATED_PROGRAM% %VER% %MONTH% %DAY% %HOUR%:%MIN%:%SEC% %UTC% %YEAR% (%RUN%)"; > version.c GOTO EOF @@ -434,8 +511,11 @@ REM Show'em how to run (me) REM ***************************************************************************************************************** :USAGE - ECHO Usage: mkver.bat [ -P -H ] - ECHO -P Database Name + ECHO Usage: mkver.bat { -H | [-S ] -P | -G | -U } + ECHO -P Name of program for which to generate version.c + ECHO -S scm-rev file to use + ECHO -G scm-rev file to generate from bk + ECHO -U scm-rev file to update from sntp\scm-rev ECHO -H Help on options REM ***************************************************************************************************************** diff --git a/ports/winnt/vs2013/libntp/libntp.vcxproj.filters b/ports/winnt/vs2013/libntp/libntp.vcxproj.filters index 3c1677c35..7fe2e102a 100644 --- a/ports/winnt/vs2013/libntp/libntp.vcxproj.filters +++ b/ports/winnt/vs2013/libntp/libntp.vcxproj.filters @@ -26,7 +26,7 @@ Source Files - + Source Files @@ -50,13 +50,13 @@ Source Files - + Source Files - + Source Files - + Source Files @@ -77,7 +77,7 @@ Source Files - + Source Files @@ -92,10 +92,10 @@ Source Files - + Source Files - + Source Files @@ -119,22 +119,22 @@ Source Files - + Source Files - + Source Files - + Source Files - + Source Files Source Files - + Source Files @@ -143,13 +143,13 @@ Source Files - + Source Files Source Files - + Source Files @@ -158,7 +158,7 @@ Source Files - + Source Files @@ -167,16 +167,16 @@ Source Files - + Source Files - + Source Files Source Files - + Source Files @@ -215,10 +215,10 @@ Source Files - + Source Files - + Source Files @@ -239,13 +239,13 @@ Source Files - + Source Files Source Files - + Source Files @@ -263,13 +263,13 @@ Source Files - + Source Files Source Files - + Source Files @@ -284,16 +284,16 @@ Source Files - + Source Files Source Files - + Source Files - + Source Files @@ -317,7 +317,7 @@ Source Files - + Source Files @@ -335,7 +335,7 @@ Source Files - + Source Files @@ -352,13 +352,13 @@ Header Files - + Header Files Header Files - + Header Files @@ -367,13 +367,13 @@ Header Files - + Header Files Header Files - + Header Files @@ -382,7 +382,7 @@ Header Files - + Header Files @@ -394,7 +394,7 @@ Header Files - + Header Files @@ -403,16 +403,16 @@ Header Files - + Header Files Header Files - + Header Files - + Header Files @@ -508,10 +508,10 @@ Header Files - + Header Files - + Header Files @@ -523,25 +523,25 @@ Header Files - + Header Files - + Header Files Header Files - + Header Files Header Files - + Header Files - + Header Files @@ -565,19 +565,19 @@ Generated Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files diff --git a/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj b/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj index 01f006cd8..b6bfba4ab 100644 --- a/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj +++ b/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj @@ -210,7 +210,7 @@ - + diff --git a/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters b/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters index 44b51670c..00b9e3d5d 100644 --- a/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters +++ b/ports/winnt/vs2013/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters @@ -29,7 +29,7 @@ Header Files - + Header Files diff --git a/ports/winnt/vs2013/ntpd/ntpd.vcxproj b/ports/winnt/vs2013/ntpd/ntpd.vcxproj index eefa4b735..0d5ce9356 100644 --- a/ports/winnt/vs2013/ntpd/ntpd.vcxproj +++ b/ports/winnt/vs2013/ntpd/ntpd.vcxproj @@ -385,20 +385,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters b/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters index 10bc14fcc..ff6fe4094 100644 --- a/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters +++ b/ports/winnt/vs2013/ntpd/ntpd.vcxproj.filters @@ -311,13 +311,13 @@ Header Files - + Header Files Header Files - + Header Files @@ -338,13 +338,13 @@ Header Files - + Header Files Header Files - + Header Files @@ -356,7 +356,7 @@ Header Files - + Header Files @@ -488,7 +488,7 @@ Header Files - + Header Files @@ -512,28 +512,28 @@ Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files diff --git a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj index ccf5debfd..e5a38b107 100644 --- a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj +++ b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj @@ -242,7 +242,7 @@ - + diff --git a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters index 8eea86e57..fb5da88b4 100644 --- a/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters +++ b/ports/winnt/vs2013/ntpdate/ntpdate.vcxproj.filters @@ -62,7 +62,7 @@ Header Files - + Header Files diff --git a/ports/winnt/vs2015/common.props b/ports/winnt/vs2015/common.props index 4e33e9afc..caa57c838 100644 --- a/ports/winnt/vs2015/common.props +++ b/ports/winnt/vs2015/common.props @@ -44,9 +44,8 @@ Console true true - UseLinkTimeCodeGeneration - false - false + true + true diff --git a/ports/winnt/vs2015/debug-x64.props b/ports/winnt/vs2015/debug-x64.props index 1d3d52d9c..b242fdce7 100644 --- a/ports/winnt/vs2015/debug-x64.props +++ b/ports/winnt/vs2015/debug-x64.props @@ -20,5 +20,4 @@ $(OPENSSL64_LIB) - \ No newline at end of file diff --git a/ports/winnt/vs2015/debug.props b/ports/winnt/vs2015/debug.props index e82b7e896..a3ea8497e 100644 --- a/ports/winnt/vs2015/debug.props +++ b/ports/winnt/vs2015/debug.props @@ -20,5 +20,4 @@ $(OPENSSL_LIB) - \ No newline at end of file diff --git a/ports/winnt/vs2015/instsrv/instsrv.vcxproj b/ports/winnt/vs2015/instsrv/instsrv.vcxproj index f70890efe..dff776a00 100644 --- a/ports/winnt/vs2015/instsrv/instsrv.vcxproj +++ b/ports/winnt/vs2015/instsrv/instsrv.vcxproj @@ -31,89 +31,60 @@ instsrv - + Application - v140 - false - MultiByte - - - Application - v140_xp false MultiByte - - Application + v140 - false - MultiByte - - Application + v140_xp - false - MultiByte - - Application + v140 - false - MultiByte - - Application - v140 - false - MultiByte + + v140_xp - - + - - + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - + $(IntDir)Instsrv.tlb - ..\..\instsrv;%(AdditionalIncludeDirectories) - NDEBUG;%(PreprocessorDefinitions) 0x0409 @@ -124,146 +95,33 @@ $(IntDir)$(ProjectName).bsc - - - $(IntDir)Instsrv.tlb - - - - - ..\..\instsrv;%(AdditionalIncludeDirectories) - + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)Instsrv.tlb - - - - true - ..\..\instsrv;%(AdditionalIncludeDirectories) - + - _DEBUG;%(PreprocessorDefinitions) - 0x0409 + NDEBUG;%(PreprocessorDefinitions) - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)Instsrv.tlb - - - - - true - ..\..\instsrv;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - X64 - $(IntDir)Instsrv.tlb - - - - ..\..\instsrv;%(AdditionalIncludeDirectories) - + - NDEBUG;%(PreprocessorDefinitions) - 0x0409 + _DEBUG;%(PreprocessorDefinitions) - - Console - - - true - $(IntDir)$(ProjectName).bsc - - + X64 - $(IntDir)Instsrv.tlb - - - true - ..\..\instsrv;%(AdditionalIncludeDirectories) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - - - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - - - \ No newline at end of file diff --git a/ports/winnt/vs2015/instsrv/instsrv.vcxproj.filters b/ports/winnt/vs2015/instsrv/instsrv.vcxproj.filters index a002fdb88..c4141a50d 100644 --- a/ports/winnt/vs2015/instsrv/instsrv.vcxproj.filters +++ b/ports/winnt/vs2015/instsrv/instsrv.vcxproj.filters @@ -18,11 +18,5 @@ Source Files - - Source Files - - - - \ No newline at end of file diff --git a/ports/winnt/vs2015/libntp/libntp.vcxproj b/ports/winnt/vs2015/libntp/libntp.vcxproj index 542186d53..29a15275b 100644 --- a/ports/winnt/vs2015/libntp/libntp.vcxproj +++ b/ports/winnt/vs2015/libntp/libntp.vcxproj @@ -30,106 +30,57 @@ {400FBFCB-462E-40D0-B06B-3B74E3FFFD00} - + StaticLibrary - v140 - false - MultiByte - true - - - StaticLibrary - v140_xp false MultiByte - true - - StaticLibrary + v140 - false - MultiByte - true - - StaticLibrary + v140_xp - false - MultiByte - true - - StaticLibrary + v140 - false - MultiByte - true - - StaticLibrary - v140 - false - MultiByte - true + + v140_xp - - + - - + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - + $(TmpBaseDir)\ - + - NDEBUG;%(PreprocessorDefinitions) 0x0409 @@ -140,76 +91,30 @@ $(IntDir)$(ProjectName).bsc - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - - - true - $(IntDir)$(ProjectName).bsc - - - + X64 + + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - true - - - true - $(IntDir)$(ProjectName).bsc - - + - _DEBUG;%(PreprocessorDefinitions) - 0x0409 + NDEBUG;%(PreprocessorDefinitions) - - true - - - true - $(IntDir)$(ProjectName).bsc - - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - true - - - true - $(IntDir)$(ProjectName).bsc - - - - X64 - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - true - - - true - $(IntDir)$(ProjectName).bsc - @@ -407,30 +312,9 @@ - Message Compiler - Message Compiler - mc -h %(RootDir)%(Directory) -r %(RootDir)%(Directory) -e h %(FullPath) - - mc -h %(RootDir)%(Directory) -r %(RootDir)%(Directory) -e h %(FullPath) - - %(RootDir)%(Directory)%(Filename).rc;%(RootDir)%(Directory)%(Filename).h;%(RootDir)%(Directory)msg00001.bin;%(Outputs) - %(RootDir)%(Directory)%(Filename).rc;%(RootDir)%(Directory)%(Filename).h;%(RootDir)%(Directory)msg00001.bin;%(Outputs) - Message Compiler - mc -h %(RootDir)%(Directory) -r %(RootDir)%(Directory) -e h %(FullPath) - - %(RootDir)%(Directory)%(Filename).rc;%(RootDir)%(Directory)%(Filename).h;%(RootDir)%(Directory)msg00001.bin;%(Outputs) - Message Compiler - Message Compiler - mc -h %(RootDir)%(Directory) -r %(RootDir)%(Directory) -e h %(FullPath) - - mc -h %(RootDir)%(Directory) -r %(RootDir)%(Directory) -e h %(FullPath) - - %(RootDir)%(Directory)%(Filename).rc;%(RootDir)%(Directory)%(Filename).h;%(RootDir)%(Directory)msg00001.bin;%(Outputs) - %(RootDir)%(Directory)%(Filename).rc;%(RootDir)%(Directory)%(Filename).h;%(RootDir)%(Directory)msg00001.bin;%(Outputs) - Message Compiler - mc -h %(RootDir)%(Directory) -r %(RootDir)%(Directory) -e h %(FullPath) - - %(RootDir)%(Directory)%(Filename).rc;%(RootDir)%(Directory)%(Filename).h;%(RootDir)%(Directory)msg00001.bin;%(Outputs) + Message Compiler + mc -h %(RootDir)%(Directory) -r %(RootDir)%(Directory) -e h %(FullPath) + %(RootDir)%(Directory)%(Filename).rc;%(RootDir)%(Directory)%(Filename).h;%(RootDir)%(Directory)msg00001.bin;%(Outputs) diff --git a/ports/winnt/vs2015/libntp/libntp.vcxproj.filters b/ports/winnt/vs2015/libntp/libntp.vcxproj.filters index fa765f3f0..72f0a3057 100644 --- a/ports/winnt/vs2015/libntp/libntp.vcxproj.filters +++ b/ports/winnt/vs2015/libntp/libntp.vcxproj.filters @@ -389,7 +389,7 @@ Header Files - Header Files + libisc Header Files Header Files diff --git a/ports/winnt/vs2015/loopback-pps/loopback-ppsapi-provider.vcxproj b/ports/winnt/vs2015/loopback-pps/loopback-ppsapi-provider.vcxproj index 7086164dd..f50a7ed4e 100644 --- a/ports/winnt/vs2015/loopback-pps/loopback-ppsapi-provider.vcxproj +++ b/ports/winnt/vs2015/loopback-pps/loopback-ppsapi-provider.vcxproj @@ -28,172 +28,71 @@ {1ACE209D-D56E-450B-8711-B73E4ACFC38E} - loopbackerialppsapiprovider - Win32Proj + loopback-ppsapi-provider - + DynamicLibrary - v140 - MultiByte - - - DynamicLibrary - v140_xp MultiByte - - DynamicLibrary + v140 - MultiByte - true - - DynamicLibrary + v140_xp - MultiByte - true - - DynamicLibrary + v140 - MultiByte - - DynamicLibrary - v140 - MultiByte - true + + v140_xp - - + - - + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - + ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) ntpd.lib;%(AdditionalDependencies) - 4.2 $(OutDir);%(AdditionalLibraryDirectories) Windows - ..\..\ppsapi\loopback\src\loopback-ppsapi.def $(IntDir)$(ProjectName).bsc - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - + - ntpd.lib;%(AdditionalDependencies) - 4.2 - $(OutDir);%(AdditionalLibraryDirectories) - Windows ..\..\ppsapi\loopback\src\loopback-ppsapi.def - - $(IntDir)$(ProjectName).bsc - - - - - X64 - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - ntpd.lib;%(AdditionalDependencies) - $(OutDir);%(AdditionalLibraryDirectories) - Windows - - - $(IntDir)$(ProjectName).bsc - - - - - Disabled - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - ntpd.lib;%(AdditionalDependencies) - $(OutDir);%(AdditionalLibraryDirectories) - Windows - ..\..\ppsapi\loopback\src\loopback-ppsapi.def - - - $(IntDir)$(ProjectName).bsc - - - - - Disabled - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - ntpd.lib;%(AdditionalDependencies) - $(OutDir);%(AdditionalLibraryDirectories) - Windows - ..\..\ppsapi\loopback\src\loopback-ppsapi.def - - - $(IntDir)$(ProjectName).bsc - - - - - X64 - - - Disabled - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - ntpd.lib;%(AdditionalDependencies) - $(OutDir);%(AdditionalLibraryDirectories) - Windows - - - $(IntDir)$(ProjectName).bsc - @@ -211,42 +110,11 @@ - - - - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P loopback-ppsapi - - call ..\..\scripts\mkver.bat -P loopback-ppsapi - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P loopback-ppsapi - - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P loopback-ppsapi - - call ..\..\scripts\mkver.bat -P loopback-ppsapi - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P loopback-ppsapi - - .\version.c;%(Outputs) - - - - \ No newline at end of file diff --git a/ports/winnt/vs2015/mkver.props b/ports/winnt/vs2015/mkver.props new file mode 100644 index 000000000..ed91b5cd5 --- /dev/null +++ b/ports/winnt/vs2015/mkver.props @@ -0,0 +1,25 @@ + + + + + Copying scm-rev from distribution... + call ..\..\scripts\mkver.bat -U scm-rev + scm-rev + + + + + Generating scm-rev from bk... + call ..\..\scripts\mkver.bat -G scm-rev + scm-rev + + + + + Using NT Shell Script to generate version.c + call ..\..\scripts\mkver.bat -S scm-rev -P $(ProjectName) + .version;scm-rev;..\..\..\..\packageinfo.sh + version.c + + + \ No newline at end of file diff --git a/ports/winnt/vs2015/ntp-keygen/ntp-keygen.vcxproj b/ports/winnt/vs2015/ntp-keygen/ntp-keygen.vcxproj index 28c02f3fa..1aa70cbd6 100644 --- a/ports/winnt/vs2015/ntp-keygen/ntp-keygen.vcxproj +++ b/ports/winnt/vs2015/ntp-keygen/ntp-keygen.vcxproj @@ -31,83 +31,62 @@ ntp-keygen - - Application - v140 - false - MultiByte - - + Application - v140_xp false MultiByte - - Application + v140 - - Application + v140_xp - - Application + v140 - false - MultiByte - - Application - v140 + + v140_xp + - - + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - + $(IntDir)ntp-keygen.tlb - ..\..\ntp-keygen;..\..\..\..\ntp-keygen;%(AdditionalIncludeDirectories) - NDEBUG;%(PreprocessorDefinitions) 0x0409 @@ -118,109 +97,25 @@ $(IntDir)$(ProjectName).bsc - - - $(IntDir)ntp-keygen.tlb - - - - - ..\..\ntp-keygen;..\..\..\..\ntp-keygen;%(AdditionalIncludeDirectories) - + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntp-keygen.tlb - - - - ..\..\ntp-keygen;..\..\..\..\ntp-keygen;%(AdditionalIncludeDirectories) - + - _DEBUG;%(PreprocessorDefinitions) - 0x0409 + NDEBUG;%(PreprocessorDefinitions) - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntp-keygen.tlb - - - - - ..\..\ntp-keygen;..\..\..\..\ntp-keygen;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - X64 - $(IntDir)ntp-keygen.tlb - - - - ..\..\ntp-keygen;..\..\..\..\ntp-keygen;%(AdditionalIncludeDirectories) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - - X64 - $(IntDir)ntp-keygen.tlb - - - - ..\..\ntp-keygen;..\..\..\..\ntp-keygen;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - @@ -230,34 +125,7 @@ - - - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - - + {400fbfcb-462e-40d0-b06b-3b74e3fffd00} @@ -265,6 +133,4 @@ - - \ No newline at end of file diff --git a/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj b/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj index 7ccc15759..a118d6851 100644 --- a/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj +++ b/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj @@ -29,161 +29,58 @@ keyword-gen {1B814CC1-EAD4-4A13-B29C-A67B23C9845A} - ntpdkeywordgen + ntpd-keyword-gen - - Application - v140 - MultiByte - - + Application - v140_xp MultiByte - - Application + v140 - MultiByte - - Application + v140_xp - MultiByte - - Application + v140 - MultiByte - - Application - v140 - MultiByte + + v140_xp - - + - - + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - - $(TmpBaseDir)\ - - + $(TmpBaseDir)\ - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - $(OutDir)keyword-gen.exe - Console - - - $(IntDir)$(ProjectName).bsc - - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - $(OutDir)keyword-gen.exe - Console - - - $(IntDir)$(ProjectName).bsc - - - - - X64 - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - $(OutDir)keyword-gen.exe - Console - - - $(IntDir)$(ProjectName).bsc - - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - $(OutDir)keyword-gen.exe - Console - - - $(IntDir)$(ProjectName).bsc - - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - $(OutDir)keyword-gen.exe - Console - - - $(IntDir)$(ProjectName).bsc - - - - - X64 - + ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) @@ -210,7 +107,7 @@ - + @@ -222,6 +119,4 @@ - - \ No newline at end of file diff --git a/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters b/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters index 44b51670c..1fe58189c 100644 --- a/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters +++ b/ports/winnt/vs2015/ntpd-keyword-gen/ntpd-keyword-gen.vcxproj.filters @@ -29,9 +29,6 @@ Header Files - - Header Files - Header Files @@ -65,5 +62,8 @@ Header Files + + Header Files + \ No newline at end of file diff --git a/ports/winnt/vs2015/ntpd/gen-ntp_keyword.bat b/ports/winnt/vs2015/ntpd/gen-ntp_keyword.bat index b56632738..7ecfcd7d5 100644 --- a/ports/winnt/vs2015/ntpd/gen-ntp_keyword.bat +++ b/ports/winnt/vs2015/ntpd/gen-ntp_keyword.bat @@ -13,9 +13,10 @@ if not exist "%1\keyword-gen.exe" goto ExeNotFound "%1\keyword-gen.exe" ..\..\..\..\ntpd\ntp_parser.h > new_keyword.h REM check if we must create both files from scratch -if not exist "%HDR_FILE%" goto createFiles -if not exist "%UTD_FILE%" goto createFiles +if not exist "%HDR_FILE%" goto missingFiles +if not exist "%UTD_FILE%" goto missingFiles +:compareFiles findstr /v diff_ignore_line new_keyword.h > new_keyword_cmp.h findstr /v diff_ignore_line "%HDR_FILE%" > ntp_keyword_cmp.h set meat_changed=0 @@ -24,6 +25,17 @@ if errorlevel 1 set meat_changed=1 del ntp_keyword_cmp.h new_keyword_cmp.h if "0"=="%meat_changed%" goto SkipUpdate +:missingFiles +REM The files may have been deleted by the IDE in a Clean or Rebuild. +REM Check if we're in a BitKeeper repo and if so retrieve the most +REM recent version of the files. +bk root ../../../.. 2>NUL >NUL +if errorlevel 1 goto createFiles + +bk checkout %HDR_FILE% %UTD_FILE% +if errorlevel 1 goto createFiles +goto compareFiles + :createFiles copy /y /v new_keyword.h "%HDR_FILE%" > NUL findstr diff_ignore_line new_keyword.h > "%UTD_FILE%" diff --git a/ports/winnt/vs2015/ntpd/ntpd.vcxproj b/ports/winnt/vs2015/ntpd/ntpd.vcxproj index 32636048a..6f1102a17 100644 --- a/ports/winnt/vs2015/ntpd/ntpd.vcxproj +++ b/ports/winnt/vs2015/ntpd/ntpd.vcxproj @@ -30,86 +30,54 @@ {CB61F8BF-9637-495C-9087-E8664B400CE0} - + Application - v140 - false - MultiByte - true - - - Application - v140_xp false MultiByte - true - - Application + v140 - false - MultiByte - true - - Application + v140_xp - false - MultiByte - true - - Application + v140 - false - MultiByte - true - - Application - v140 - false - MultiByte - true + + v140_xp - - + - - + - - + - - + - - + - - + - - + <_ProjectFileVersion>12.0.30501.0 - + $(IntDir)ntpd.tlb @@ -118,7 +86,6 @@ ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - NDEBUG;%(PreprocessorDefinitions) 0x0409 @@ -130,114 +97,20 @@ $(IntDir)$(ProjectName).bsc - - - $(IntDir)ntpd.tlb - - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - winmm.lib;%(AdditionalDependencies) - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntpd.tlb - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - winmm.lib;%(AdditionalDependencies) - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - - $(IntDir)ntpd.tlb - - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - winmm.lib;%(AdditionalDependencies) - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - - X64 - $(IntDir)ntpd.tlb - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - winmm.lib;%(AdditionalDependencies) - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - X64 - $(IntDir)ntpd.tlb - - - - ..\..\ntpd;..\..\..\..\ntpd;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - winmm.lib;%(AdditionalDependencies) - Console - - - true - $(IntDir)$(ProjectName).bsc - @@ -288,12 +161,7 @@ - 4307;%(DisableSpecificWarnings) - 4307;%(DisableSpecificWarnings) - 4307;%(DisableSpecificWarnings) - 4307;%(DisableSpecificWarnings) - 4307;%(DisableSpecificWarnings) - 4307;%(DisableSpecificWarnings) + 4307;%(DisableSpecificWarnings) @@ -386,62 +254,25 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - invoking keyword-gen on ntp_parser.h to produce ntp_keyword.h - invoking keyword-gen on ntp_parser.h to produce ntp_keyword.h - .\gen-ntp_keyword $(TmpBaseDir) - - call .\gen-ntp_keyword.bat $(TmpBaseDir) - - ..\..\..\..\ntpd\ntp_parser.h;%(AdditionalInputs) - - - ..\..\..\..\ntpd\ntp_keyword.h;..\..\..\..\ntpd\keyword-gen-utd;%(Outputs) - ..\..\..\..\ntpd\ntp_keyword.h;..\..\..\..\ntpd\keyword-gen-utd - invoking keyword-gen on ntp_parser.h to produce ntp_keyword.h - call .\gen-ntp_keyword.bat $(TmpBaseDir) - - - - ..\..\..\..\ntpd\ntp_keyword.h;..\..\..\..\ntpd\keyword-gen-utd - invoking keyword-gen on ntp_parser.h to produce ntp_keyword.h - invoking keyword-gen on ntp_parser.h to produce ntp_keyword.h - call .\gen-ntp_keyword.bat $(TmpBaseDir) - - call .\gen-ntp_keyword.bat $(TmpBaseDir) - - - - - - ..\..\..\..\ntpd\ntp_keyword.h;..\..\..\..\ntpd\keyword-gen-utd - ..\..\..\..\ntpd\ntp_keyword.h;..\..\..\..\ntpd\keyword-gen-utd - invoking keyword-gen on ntp_parser.h to produce ntp_keyword.h - call .\gen-ntp_keyword.bat $(TmpBaseDir) - - - - ..\..\..\..\ntpd\ntp_keyword.h;..\..\..\..\ntpd\keyword-gen-utd - @@ -463,46 +294,14 @@ - - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - ..\..\scripts\mkver.bat;..\..\include\config.h;%(AdditionalInputs) - - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - - - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - - - - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - - - .\version.c;%(Outputs) + + ..\..\..\..\ntpd\ntp_parser.h;%(AdditionalInputs) + invoking keyword-gen on ntp_parser.h to produce ntp_keyword.h + call .\gen-ntp_keyword $(TmpBaseDir) + ..\..\..\..\ntpd\ntp_keyword.h;..\..\..\..\ntpd\keyword-gen-utd;%(Outputs) - - + {400fbfcb-462e-40d0-b06b-3b74e3fffd00} diff --git a/ports/winnt/vs2015/ntpd/ntpd.vcxproj.filters b/ports/winnt/vs2015/ntpd/ntpd.vcxproj.filters index 10bc14fcc..ff6fe4094 100644 --- a/ports/winnt/vs2015/ntpd/ntpd.vcxproj.filters +++ b/ports/winnt/vs2015/ntpd/ntpd.vcxproj.filters @@ -311,13 +311,13 @@ Header Files - + Header Files Header Files - + Header Files @@ -338,13 +338,13 @@ Header Files - + Header Files Header Files - + Header Files @@ -356,7 +356,7 @@ Header Files - + Header Files @@ -488,7 +488,7 @@ Header Files - + Header Files @@ -512,28 +512,28 @@ Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files - + Header Files diff --git a/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj b/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj index 626b67c62..4d78fe408 100644 --- a/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj +++ b/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj @@ -30,89 +30,60 @@ {2789A62E-3F46-44F1-AAF0-816CD23C2911} - + Application - v140 - false - MultiByte - - - Application - v140_xp false MultiByte - - Application + v140 - false - MultiByte - - Application + v140_xp - false - MultiByte - - Application + v140 - false - MultiByte - - Application - v140 - false - MultiByte + + v140_xp - - + - - - + + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - + $(IntDir)ntpdate.tlb - ..\..\ntpdate;..\..\..\..\ntpdate;%(AdditionalIncludeDirectories) - NDEBUG;%(PreprocessorDefinitions) 0x0409 @@ -123,109 +94,30 @@ $(IntDir)$(ProjectName).bsc - + - $(IntDir)ntpdate.tlb - - + X64 - - ..\..\ntpdate;..\..\..\..\ntpdate;%(AdditionalIncludeDirectories) - + + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntpdate.tlb - - - - ..\..\ntpdate;..\..\..\..\ntpdate;%(AdditionalIncludeDirectories) - + - _DEBUG;%(PreprocessorDefinitions) - 0x0409 + NDEBUG;%(PreprocessorDefinitions) - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntpdate.tlb - - - - - ..\..\ntpdate;..\..\..\..\ntpdate;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - X64 - $(IntDir)ntpdate.tlb - - - - ..\..\ntpdate;..\..\..\..\ntpdate;%(AdditionalIncludeDirectories) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - - X64 - $(IntDir)ntpdate.tlb - - - - ..\..\ntpdate;..\..\..\..\ntpdate;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - @@ -242,39 +134,12 @@ - + - - - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - - + {400fbfcb-462e-40d0-b06b-3b74e3fffd00} @@ -282,6 +147,4 @@ - - \ No newline at end of file diff --git a/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj.filters b/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj.filters index 8eea86e57..fb5da88b4 100644 --- a/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj.filters +++ b/ports/winnt/vs2015/ntpdate/ntpdate.vcxproj.filters @@ -62,7 +62,7 @@ Header Files - + Header Files diff --git a/ports/winnt/vs2015/ntpdc/ntpdc.vcxproj b/ports/winnt/vs2015/ntpdc/ntpdc.vcxproj index 5575b1bee..4a9fcf8f0 100644 --- a/ports/winnt/vs2015/ntpdc/ntpdc.vcxproj +++ b/ports/winnt/vs2015/ntpdc/ntpdc.vcxproj @@ -30,89 +30,61 @@ {8011C820-B3D5-4034-86EA-FFC30AE6764B} - + + Application - v140 - false - MultiByte - - - Application - v140_xp false MultiByte - - Application + v140 - false - MultiByte - - Application + v140_xp - false - MultiByte - - Application + v140 - false - MultiByte - - Application - v140 - false - MultiByte + + v140_xp - - + - - + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - + $(IntDir)ntpdc.tlb - ..\..\ntpdc;..\..\..\..\ntpdc;%(AdditionalIncludeDirectories) - NDEBUG;%(PreprocessorDefinitions) 0x0409 @@ -123,109 +95,30 @@ $(IntDir)$(ProjectName).bsc - + - $(IntDir)ntpdc.tlb - - + X64 - - ..\..\ntpdc;..\..\..\..\ntpdc;%(AdditionalIncludeDirectories) - + + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntpdc.tlb - - - - ..\..\ntpdc;..\..\..\..\ntpdc;%(AdditionalIncludeDirectories) - + - _DEBUG;%(PreprocessorDefinitions) - 0x0409 + NDEBUG;%(PreprocessorDefinitions) - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntpdc.tlb - - - - - ..\..\ntpdc;..\..\..\..\ntpdc;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - X64 - $(IntDir)ntpdc.tlb - - - - ..\..\ntpdc;..\..\..\..\ntpdc;%(AdditionalIncludeDirectories) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - - X64 - $(IntDir)ntpdc.tlb - - - - ..\..\ntpdc;..\..\..\..\ntpdc;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - @@ -238,34 +131,7 @@ - - - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - - + {400fbfcb-462e-40d0-b06b-3b74e3fffd00} @@ -273,6 +139,4 @@ - - \ No newline at end of file diff --git a/ports/winnt/vs2015/ntpq/ntpq.vcxproj b/ports/winnt/vs2015/ntpq/ntpq.vcxproj index 14d8b8b0e..a1308ea8e 100644 --- a/ports/winnt/vs2015/ntpq/ntpq.vcxproj +++ b/ports/winnt/vs2015/ntpq/ntpq.vcxproj @@ -30,89 +30,60 @@ {6A92BF14-8931-48B1-A571-DEBE9F190616} - + Application - v140 - false - MultiByte - - - Application - v140_xp false MultiByte - - Application + v140 - false - MultiByte - - Application + v140_xp - false - MultiByte - - Application + v140 - false - MultiByte - - Application - v140 - false - MultiByte + + v140_xp - - + - - + - - + - - + - - + - - + - - + - <_ProjectFileVersion>12.0.30501.0 - + $(IntDir)ntpq.tlb - ..\..\ntpq;..\..\..\..\ntpq;%(AdditionalIncludeDirectories) - NDEBUG;%(PreprocessorDefinitions) 0x0409 @@ -123,109 +94,30 @@ $(IntDir)$(ProjectName).bsc - + - $(IntDir)ntpq.tlb - - + X64 - - ..\..\ntpq;..\..\..\..\ntpq;%(AdditionalIncludeDirectories) - + + NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntpq.tlb - - - - ..\..\ntpq;..\..\..\..\ntpq;%(AdditionalIncludeDirectories) - + - _DEBUG;%(PreprocessorDefinitions) - 0x0409 + NDEBUG;%(PreprocessorDefinitions) - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - $(IntDir)ntpq.tlb - - - - - ..\..\ntpq;..\..\..\..\ntpq;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - X64 - $(IntDir)ntpq.tlb - - - - ..\..\ntpq;..\..\..\..\ntpq;%(AdditionalIncludeDirectories) - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - Console - - - true - $(IntDir)$(ProjectName).bsc - - - - - X64 - $(IntDir)ntpq.tlb - - - - ..\..\ntpq;..\..\..\..\ntpq;%(AdditionalIncludeDirectories) - + _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - Console - - - true - $(IntDir)$(ProjectName).bsc - @@ -237,34 +129,7 @@ - - - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - .\version.c;%(Outputs) - Using NT Shell Script to generate version.c - call ..\..\scripts\mkver.bat -P $(ProjectName) - - .\version.c;%(Outputs) - - + {400fbfcb-462e-40d0-b06b-3b74e3fffd00} @@ -272,6 +137,4 @@ - - \ No newline at end of file diff --git a/ports/winnt/vs2015/release-x64.props b/ports/winnt/vs2015/release-x64.props index 0122b1ee2..f1cf51de8 100644 --- a/ports/winnt/vs2015/release-x64.props +++ b/ports/winnt/vs2015/release-x64.props @@ -19,7 +19,10 @@ MachineX64 $(OPENSSL64_LIB) + UseLinkTimeCodeGeneration + + true + - \ No newline at end of file diff --git a/ports/winnt/vs2015/release.props b/ports/winnt/vs2015/release.props index 0e8e2babd..acd302110 100644 --- a/ports/winnt/vs2015/release.props +++ b/ports/winnt/vs2015/release.props @@ -1,8 +1,5 @@  - - - <_ProjectFileVersion>12.0.30501.0 <_PropertySheetDisplayName>release-x86 @@ -19,7 +16,10 @@ MachineX86 $(OPENSSL_LIB) + UseLinkTimeCodeGeneration + + true + - \ No newline at end of file