-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildwxWidgets_Custom_MinGW.bat
67 lines (55 loc) · 3.76 KB
/
buildwxWidgets_Custom_MinGW.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@rem This batch will build the wxWidgets library after the installation.
echo dummy > readme.txt
call watcomenv.bat exit
@rem Override WXDIR from this point on. wxWidgets uses Windows backslash for path separators.
set WXDIR=%DEVLW%\lbDMF\Develop\wxwin\wx
set MINGWBIN=%DEVLW%\%BASE%\Tools\mingw\bin
@rem Get an explicite version that always ensures to build the code
set MINGW_STICKON_VERSION=4.7.*
set MINGW_STICKON_WIN32_VERSION=4.0.3-*
set Path=%SystemRoot%\system32
set Path=%Path%;%MINGWBIN%
rem set Path=%Path%;Q:\develop\Tools\Bakefile\src
echo del readme.txt > doBuildWx.bat
echo set DRIVE=%DEVLW% >> doBuildWx.bat
echo set WXDIR=%DEVLW%\lbDMF\Develop\wxwin\wx >> doBuildWx.bat
echo %DEVLW% >> doBuildWx.bat
echo IF NOT EXIST %DEVLW%\lbDMF\Develop\Projects\lbdmf\vendor\libxslt-1.1.34.tar.gz ( >> doBuildWx.bat
echo curl -k -L -o %DEVLW%\lbDMF\Develop\Projects\lbdmf\vendor\libxslt-1.1.34.tar.gz ftp://xmlsoft.org/libxml2/libxslt-1.1.34.tar.gz >> doBuildWx.bat
echo ) >> doBuildWx.bat
echo IF NOT EXIST %DEVLW%\lbDMF\Develop\Tools\MinGW\bin\gcc.exe ( >> doBuildWx.bat
@REM echo call installMinGW.bat %MINGW_STICKON_VERSION% %MINGW_STICKON_WIN32_VERSION% >> doBuildWx.bat
echo curl -k -L -o lbDMF-MinGW-Repackaged-1.3.2.exe https://sourceforge.net/projects/lbdmf/files/lbdmf/lbDMF-1.3.2/lbDMF-MinGW-Repackaged-1.3.2.exe/download >> doBuildWx.bat
echo lbDMF-MinGW-Repackaged-1.3.2.exe /VERYSILENT /SP- /DIR=%DEVLW%\lbDMF >> doBuildWx.bat
rem echo copy /Y %DEVLW%\lbDMF\commctrl-wxWidgets-patch.h Develop\Tools\MinGW\include\commctrl.h >> doBuildWx.bat
rem echo copy /Y %DEVLW%\lbDMF\w32api-Wcpp-patch.h Develop\Tools\MinGW\include\w32api.h >> doBuildWx.bat
echo ) >> doBuildWx.bat
echo IF NOT EXIST %DEVLW%\lbDMF\Develop\Projects\bin\bison.exe ( >> doBuildWx.bat
echo curl -k -L -o lbDMF-BinbuildTools-1.3.3-vc.exe http://sourceforge.net/projects/lbdmf/files/lbdmf/lbDMF-1.3.3/lbDMF-BinbuildTools-1.3.3-vc.exe/download >> doBuildWx.bat
echo lbDMF-BinbuildTools-1.3.3-vc.exe /VERYSILENT /SP- /DIR=%DEVLW%\lbDMF >> doBuildWx.bat
echo ) >> doBuildWx.bat
echo IF NOT EXIST %WXDIR%\build\msw ( >> doBuildWx.bat
echo curl -k -L -o wxMSW-2.8.12-Setup.exe http://sourceforge.net/projects/wxwindows/files/2.8.12/wxMSW-2.8.12-Setup.exe/download >> doBuildWx.bat
echo wxMSW-2.8.12-Setup.exe /VERYSILENT /SP- /DIR=%WXDIR% >> doBuildWx.bat
echo ) >> doBuildWx.bat
echo cd %WXDIR%\build\msw >> doBuildWx.bat
echo copy /Y %WXDIR%\include\wx\msw\setup.h %WXDIR%\include\wx >> doBuildWx.bat
echo copy /Y %DEVLW%\lbDMF\wxWidgets-config.gcc %WXDIR%\build\msw\config.gcc >> doBuildWx.bat
rem echo mingw32-make -f makefile.gcc clean >> doBuildWx.bat
echo set Path=%SystemRoot%\system32 >> doBuildWx.bat
echo set MINGWBIN=%DEVLW%\%BASE%\Tools\mingw\bin >> doBuildWx.bat
echo set Path=%Path%;%MINGWBIN% >> doBuildWx.bat
echo mingw32-make -f makefile.gcc all >> doBuildWx.bat
echo copy %WXDIR%\lib\gcc_dll\*.dll %DEVLW%\%BASE%\Projects\dll >> doBuildWx.bat
echo IF NOT EXIST %DEVLW%\lbDMF\XSLT ( >> doBuildWx.bat
echo xcopy %DEVLW%\lbDMF\Develop\Projects\lbdmf\AppDevelopmentDemo\DynamicApp\XSLT_Templates %DEVLW%\lbDMF >> doBuildWx.bat
echo move %DEVLW%\lbDMF\XSLT_Templates %DEVLW%\lbDMF\XSLT >> doBuildWx.bat
echo ) >> doBuildWx.bat
echo IF NOT EXIST %DEVLW%\lbDMF\UMLSamples ( >> doBuildWx.bat
echo xcopy %DEVLW%\lbDMF\Develop\Projects\lbdmf\AppDevelopmentDemo\DynamicApp\UMLSamples %DEVLW%\lbDMF >> doBuildWx.bat
echo ) >> doBuildWx.bat
@rem After installing msys, bunzip2 is available and watcomenv.bat sets up PATH
echo IF EXIST %DEVLW%\lbDMF\GetACE.txt ( call %DEVLW%\lbDMF\InstallACE.bat ) >> doBuildWx.bat
echo IF EXIST %DEVLW%\lbDMF\GetDoUMLBin.txt ( call %DEVLW%\lbDMF\InstallDoUMLBin.bat ) >> doBuildWx.bat
echo IF EXIST %DEVLW%\lbDMF\GetDoUMLSrc.txt ( call %DEVLW%\lbDMF\InstallDoUMLSrc.bat ) >> doBuildWx.bat
call watcomenv.bat doBuildWx.bat