forked from rjpcomputing/wxpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wxBuild_Bakefile.bat
21 lines (15 loc) · 1.13 KB
/
wxBuild_Bakefile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
if (%WXBUILD_3RD_PARTY%) == () goto END
if not exist "%WXBUILD_3RD_PARTY%\include\jpeg-turbo\%COMPILER_NAME%" goto END
cd ..\bakefiles
set BAKE_LIB_SUFFIX=%COMPILER_ARCH%
if (%COMPILER_ARCH%) == (32) set BAKE_LIB_SUFFIX=
echo baking new makefiles for external 3rd party libs...
bakefile -f %BAKE_FORMAT% ^
-DwxUSE_LIBJPEG=sys -DLIB_JPEG="%WXBUILD_3RD_PARTY%\lib%BAKE_LIB_SUFFIX%\%COMPILER_NAME%\link-static\runtime-dynamic\%1\jpeg-static" -DINC_JPEG="%WXBUILD_3RD_PARTY%\include\jpeg-turbo\%COMPILER_NAME%\%1\runtime-static\x%COMPILER_ARCH%" ^
-DwxUSE_LIBPNG=sys -DLIB_PNG="%WXBUILD_3RD_PARTY%\lib%BAKE_LIB_SUFFIX%\%COMPILER_NAME%\link-static\runtime-dynamic\%1\png" -DINC_PNG="%WXBUILD_3RD_PARTY%\include\png" ^
-DwxUSE_LIBTIFF=sys -DLIB_TIFF="%WXBUILD_3RD_PARTY%\lib%BAKE_LIB_SUFFIX%\%COMPILER_NAME%\link-static\runtime-dynamic\%1\tiff" -DINC_TIFF="%WXBUILD_3RD_PARTY%\include\tiff" ^
-DwxUSE_ZLIB=sys -DLIB_ZLIB="%WXBUILD_3RD_PARTY%\lib%BAKE_LIB_SUFFIX%\%COMPILER_NAME%\link-static\runtime-dynamic\%1\z" -DINC_ZLIB="%WXBUILD_3RD_PARTY%\include\zlib" ^
-o../msw/%MAKEFILE% -DOPTIONS_FILE=%BAKE_OPTIONS_FILE% wx_no_3rd_party.bkl
echo baked
cd ..\msw
:END