Add pre-build step in VS2015 projects to generate config.h from VERSION
This commit is contained in:
9
win32/vs2015/PreBuild.bat
Normal file
9
win32/vs2015/PreBuild.bat
Normal file
@ -0,0 +1,9 @@
|
||||
set /p VERSION= < %~dp0..\..\VERSION
|
||||
|
||||
:config.h
|
||||
echo> .\config.h #define TCC_VERSION "%VERSION%"
|
||||
echo>> .\config.h #ifdef TCC_TARGET_X86_64
|
||||
echo>> .\config.h #define CONFIG_TCC_LIBPATHS "{B}/lib/64;{B}/lib"
|
||||
echo>> .\config.h #else
|
||||
echo>> .\config.h #define CONFIG_TCC_LIBPATHS "{B}/lib/32;{B}/lib"
|
||||
echo>> .\config.h #endif
|
||||
Reference in New Issue
Block a user