Add pre-build step in VS2015 projects to generate config.h from VERSION

This commit is contained in:
Vlad Vissoultchev
2017-02-09 13:25:26 +02:00
parent 5efa75d9b8
commit 910a6bc859
3 changed files with 61 additions and 0 deletions

View 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