diff options
| author | Vlad Vissoultchev <wqweto@gmail.com> | 2017-02-09 13:25:26 +0200 |
|---|---|---|
| committer | Vlad Vissoultchev <wqweto@gmail.com> | 2017-02-09 13:31:12 +0200 |
| commit | 910a6bc8595b4259a8d97571e13fb6e2867ce43f (patch) | |
| tree | 7a9b53b5fd55889b689ec93114770e5ba62cc728 /win32/vs2015/PreBuild.bat | |
| parent | 5efa75d9b87e88287cf3c56db706f5a32a384072 (diff) | |
| download | tinycc-910a6bc8595b4259a8d97571e13fb6e2867ce43f.tar.gz tinycc-910a6bc8595b4259a8d97571e13fb6e2867ce43f.tar.bz2 | |
Add pre-build step in VS2015 projects to generate config.h from VERSION
Diffstat (limited to 'win32/vs2015/PreBuild.bat')
| -rw-r--r-- | win32/vs2015/PreBuild.bat | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/vs2015/PreBuild.bat b/win32/vs2015/PreBuild.bat new file mode 100644 index 0000000..9d2f8b1 --- /dev/null +++ b/win32/vs2015/PreBuild.bat @@ -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 |
