From 9f4bff884f5cf3c60497bb93767d954d68438a4a Mon Sep 17 00:00:00 2001 From: canihavesomecoffee Date: Tue, 5 Jul 2016 18:01:47 +0200 Subject: [PATCH] Update build script for windows - --- windows/ccextractor.vcxproj | 4 ++-- windows/pre-build.bat | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/windows/ccextractor.vcxproj b/windows/ccextractor.vcxproj index 01765ce0..7860f847 100644 --- a/windows/ccextractor.vcxproj +++ b/windows/ccextractor.vcxproj @@ -344,7 +344,7 @@ xcopy /y $(ProjectDir)libs\tesseract\lib\libtesseract302.dll $(ProjectDir)$(OutD Disabled ../src/win_spec_incld;../src/gpacmp4;../src/libpng;../src/zlib;../src;../src/lib_ccx;../src/zvbi;%(AdditionalIncludeDirectories) - ENABLE_OCR;WIN32;NDEBUG;_CONSOLE;_FILE_OFFSET_BITS=64;%(PreprocessorDefinitions) + VERSION_FILE_PRESENT;ENABLE_OCR;WIN32;NDEBUG;_CONSOLE;_FILE_OFFSET_BITS=64;%(PreprocessorDefinitions) MultiThreadedDebugDLL Level3 @@ -366,7 +366,7 @@ xcopy /y $(ProjectDir)libs\tesseract\lib\libtesseract302.dll $(ProjectDir)$(OutD ../src/win_spec_incld;../src/lib_ccx;../src/lib_hash;../src/gpacmp4;../src/libpng;../src/zlib;../src/zvbi;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;_FILE_OFFSET_BITS=64;%(PreprocessorDefinitions) + VERSION_FILE_PRESENT;WIN32;NDEBUG;_CONSOLE;_FILE_OFFSET_BITS=64;%(PreprocessorDefinitions) MultiThreadedDLL Level3 diff --git a/windows/pre-build.bat b/windows/pre-build.bat index 16efcfff..d4a1c35b 100644 --- a/windows/pre-build.bat +++ b/windows/pre-build.bat @@ -37,11 +37,11 @@ set builddate=%ldt:~0,4%-%ldt:~4,2%-%ldt:~6,2% echo storing variables in file echo commit: %commit% echo date: %builddate% -echo #ifndef CCX_CCEXTRACTOR_COMPILE_H > ../src/lib_ccx/compile_info.h -echo #define CCX_CCEXTRACTOR_COMPILE_H >> ../src/lib_ccx/compile_info.h -echo #define GIT_COMMIT "%commit%" >> ../src/lib_ccx/compile_info.h -echo #define COMPILE_DATE "%builddate%" >> ../src/lib_ccx/compile_info.h -echo #endif >> ../src/lib_ccx/compile_info.h -echo stored all in compile_info.h +echo #ifndef CCX_CCEXTRACTOR_COMPILE_REAL_H > ../src/lib_ccx/compile_info_real.h +echo #define CCX_CCEXTRACTOR_COMPILE_REAL_H >> ../src/lib_ccx/compile_info_real.h +echo #define GIT_COMMIT "%commit%" >> ../src/lib_ccx/compile_info_real.h +echo #define COMPILE_DATE "%builddate%" >> ../src/lib_ccx/compile_info_real.h +echo #endif >> ../src/lib_ccx/compile_info_real.h +echo stored all in compile_info_real.h del temp.txt echo done \ No newline at end of file