forked from wxFormBuilder/wxFormBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_build_files5.bat
executable file
·138 lines (119 loc) · 3.88 KB
/
create_build_files5.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@ECHO OFF
REM Clear output
CLS
REM Set Defaults
SET shared=
SET monolithic=
SET wxroot=%WXWIN%
SET wxver=3.0
SET compiler=gcc
SET compilerversion=
SET architecture=
SET usewxconfig=
REM Handle parameters
:Loop
REM Show help and exit
IF [%1]==[-h] GOTO Help
IF [%1]==[--help] GOTO Help
IF [%1]==[--compiler] GOTO Compiler
IF [%1]==[--compiler-version] GOTO CompilerVersion
IF [%1]==[--architecture] GOTO Architecture
IF [%1]==[--disable-mediactrl] GOTO Mediactrl
IF [%1]==[--disable-shared] GOTO Shared
IF [%1]==[--disable-monolithic] GOTO Monolithic
IF [%1]==[--wx-root] GOTO Root
IF [%1]==[--wx-version] GOTO Version
IF [%1]==[--force-wx-config] GOTO WXConfig
GOTO Premake
:Help
ECHO.
ECHO Available options:
ECHO.
ECHO --compiler Specify compiler used
ECHO Example: --compiler=vc if you use MSVC
ECHO Current: %compiler%
ECHO.
ECHO --compiler-version Specifies the version of the compiler used
ECHO Example: 48 for GCC 4.8 or 120 for VS2013
ECHO.
ECHO --architecture Specifies the architecture to build for
ECHO Example: x86_64 for 64 Bit
ECHO Default: Unset (use System Default)
ECHO.
ECHO --disable-mediactrl Disable wxMediaCtrl / wxMedia library
ECHO Default: wxMediaCtrl enabled
ECHO.
ECHO --disable-shared Disable usage of wxWidgets DLL and use Static Library
ECHO Default: DLL enabled
ECHO.
ECHO --disable-monolithic Disable usage of Monolithic wxWidgets and use Components
ECHO Default: Use Monolithic
ECHO.
ECHO --wx-root Specify the wxWidgets build path,
ECHO useful for wxWidgets builds not installed
ECHO in your system (alternate/custom builds)
ECHO Example: --wx-root=D:\Devel\wxWidgets\3.0
ECHO Current: %WXWIN%
ECHO.
ECHO --wx-version Specify the wxWidgets version
ECHO Example: --wx-version=2.9
ECHO Default: %wxver%
ECHO.
ECHO --force-wx-config Force wx-config for the configuration
ECHO even under MS Windows (usefull when CodeLite IDE
ECHO is used for the building)
ECHO Default: Don't use wx-config under MS Windows
ECHO.
GOTO End
:Compiler
SET compiler=%2
SHIFT
SHIFT
GOTO Loop
:CompilerVersion
SET compilerversion=--compiler-version=%2
SHIFT
SHIFT
GOTO Loop
:Architecture
SET architecture=--architecture=%2
SHIFT
SHIFT
GOTO Loop
:Mediactrl
SET mediactrl=%1
SHIFT
GOTO Loop
:Root
SET wxroot=%2
SHIFT
SHIFT
GOTO Loop
:Shared
SET shared=%1
SHIFT
GOTO Loop
:Monolithic
SET monolithic=%1
SHIFT
GOTO Loop
:WXConfig
SET usewxconfig=%1
SHIFT
GOTO Loop
:Version
SET wxver=%2
SHIFT
SHIFT
GOTO Loop
:Premake
build\premake\5.0\bin\release\premake5.exe --file=build/premake/solution.lua --wx-root=%wxroot% --wx-version=%wxver% --compiler=%compiler% %compilerversion% %architecture% %shared% %monolithic% %mediactrl% %usewxconfig% codelite
ECHO.
build\premake\5.0\bin\release\premake5.exe --file=build/premake/solution.lua --wx-root=%wxroot% --wx-version=%wxver% --compiler=%compiler% %compilerversion% %architecture% %shared% %monolithic% %mediactrl% %usewxconfig% gmake2
ECHO.
build\premake\5.0\bin\release\premake5.exe --file=build/premake/solution.lua --wx-root=%wxroot% --wx-version=%wxver% --compiler=%compiler% %compilerversion% %architecture% %shared% %monolithic% %mediactrl% %usewxconfig% vs2017
ECHO.
build\premake\5.0\bin\release\premake5.exe --file=build/premake/solution.lua --wx-root=%wxroot% --wx-version=%wxver% --compiler=%compiler% %compilerversion% %architecture% %shared% %monolithic% %mediactrl% %usewxconfig% vs2019
ECHO.
ECHO Done generating all project files for wxFormBuilder.
:End