@@ -4,24 +4,30 @@ workspace("microarmy")
4
4
5
5
configurations {" Debug" , " Release" }
6
6
7
+ defines {
8
+ " GLM_FORCE_RADIANS" ,
9
+ " GLM_ENABLE_EXPERIMENTAL" ,
10
+ " GLM_FORCE_CTOR_INIT" ,
11
+ " NOMINMAX" ,
12
+ " QOR_NO_PYTHON" ,
13
+ " QOR_NO_CAIRO" ,
14
+ " QOR_NO_PHYSICS" ,
15
+ -- "QOR_NO_NET",
16
+ }
17
+
7
18
-- Debug Config
8
19
configuration " Debug"
9
-
10
- defines {
11
- " GLM_FORCE_CTOR_INIT" ,
12
- " GLM_ENABLE_EXPERIMENTAL" ,
13
- " GLM_FORCE_RADIANS" ,
14
- " NOMINMAX"
15
- }
16
-
20
+ defines { " DEBUG" }
17
21
symbols " On"
18
- links {
19
- " z" ,
20
- " bfd" ,
21
- " iberty"
22
- }
23
22
linkoptions { }
24
23
24
+ configuration " linux"
25
+ links {
26
+ " z" ,
27
+ " bfd" ,
28
+ " iberty"
29
+ }
30
+
25
31
-- Release Config
26
32
configuration " Release"
27
33
defines { " NDEBUG" }
@@ -32,169 +38,196 @@ workspace("microarmy")
32
38
-- gmake Config
33
39
configuration " gmake"
34
40
buildoptions { " -std=c++11" }
35
- -- Uncomment the following line to get in depth debugging
36
41
-- buildoptions { "-std=c++11", "-pedantic", "-Wall", "-Wextra", '-v', '-fsyntax-only'}
42
+ links {
43
+ " pthread" ,
44
+ " SDL2_ttf" ,
45
+ " SDL2" ,
46
+ " GLEW" ,
47
+ " assimp" ,
48
+ " freeimage" ,
49
+ " openal" ,
50
+ " alut" ,
51
+ " ogg" ,
52
+ " vorbis" ,
53
+ " vorbisfile" ,
54
+ " boost_system" ,
55
+ " boost_filesystem" ,
56
+ " boost_coroutine" ,
57
+ " boost_python" ,
58
+ " boost_regex" ,
59
+ " boost_chrono" ,
60
+ " jsoncpp" ,
61
+ " raknet" ,
62
+ -- "BulletSoftBody",
63
+ -- "BulletDynamics",
64
+ -- "BulletCollision",
65
+ -- "LinearMath",
66
+ }
67
+ includedirs {
68
+ " lib/Qor/" ,
69
+ " lib/Qor/lib/kit" ,
70
+ " /usr/local/include/" ,
71
+ " /usr/include/bullet/" ,
72
+ " /usr/include/rapidxml/" ,
73
+ " /usr/include/raknet/DependentExtensions"
74
+ }
37
75
38
- -- OS X Config
39
- configuration " macosx"
40
- buildoptions { " -U__STRICT_ANSI__" , " -stdlib=libc++" }
41
- linkoptions { " -stdlib=libc++" }
42
-
43
-
44
- project " microarmy"
45
- kind " WindowedApp"
46
- language " C++"
47
- links {
48
- " pthread" ,
49
- " GL" ,
50
- " GLU" ,
51
- " SDL2" ,
52
- " SDL2_ttf" ,
53
- " GLEW" ,
54
- " assimp" ,
55
- " freeimage" ,
56
- " openal" ,
57
- " alut" ,
58
- " ogg" ,
59
- " vorbis" ,
60
- " vorbisfile" ,
61
- " boost_system" ,
62
- " boost_thread" ,
63
- " boost_filesystem" ,
64
- " boost_python" ,
65
- " boost_coroutine" ,
66
- " boost_regex" ,
67
- " jsoncpp" ,
68
- " BulletSoftBody" ,
69
- " BulletDynamics" ,
70
- " BulletCollision" ,
71
- " LinearMath" ,
72
- " z" ,
73
- " raknet" ,
74
- }
76
+ libdirs {
77
+ " /usr/local/lib"
78
+ }
79
+
80
+ buildoptions {
81
+ " `python2-config --includes`" ,
82
+ -- "`pkg-config --cflags cairomm-1.0 pangomm-1.4`"
83
+ }
75
84
76
- -- Project Files
77
- files {
78
- " src/**.h" ,
79
- " src/**.cpp" ,
80
- " lib/Qor/Qor/**.h" ,
81
- " lib/Qor/Qor/**.cpp" ,
82
- " lib/Qor/lib/kit/**.h" ,
83
- " lib/Qor/lib/kit/**.cpp"
84
- }
85
+ linkoptions {
86
+ " `python2-config --libs`" ,
87
+ -- "`pkg-config --libs cairomm-1.0 pangomm-1.4`"
88
+ }
89
+
90
+ configuration " macosx"
91
+ links {
92
+ " boost_thread-mt" ,
93
+ }
94
+ buildoptions { " -framework OpenGL" }
95
+ linkoptions { " -framework OpenGL" }
96
+ -- buildoptions { "-U__STRICT_ANSI__", "-stdlib=libc++" }
97
+ -- linkoptions { "-stdlib=libc++" }
85
98
86
- -- Exluding Files
87
- excludes {
88
- " lib/Qor/Qor/Main.cpp" ,
89
- " lib/Qor/Qor/Info.cpp" ,
90
- " lib/Qor/Qor/DemoState.*" ,
91
- " lib/Qor/Qor/tests/**" ,
92
- " lib/Qor/Qor/scripts/**" ,
93
- " lib/Qor/Qor/addons/**" ,
94
- " lib/Qor/lib/kit/tests/**" ,
95
- " lib/Qor/lib/kit/toys/**"
96
- }
99
+ configuration " linux"
100
+ links {
101
+ " GL" ,
102
+ " boost_thread" ,
103
+ }
97
104
98
- includedirs {
99
- " lib/Qor/" ,
100
- " lib/Qor/lib/kit" ,
101
- " /usr/local/include/" ,
102
- " /usr/include/bullet/" ,
103
- " /usr/include/rapidxml/" ,
104
- " /usr/include/raknet/DependentExtensions"
105
- }
105
+ configuration " windows"
106
+ toolset " v141"
107
+ flags { " MultiProcessorCompile" }
106
108
107
- libdirs {
108
- " /usr/local/lib" ,
109
- " /usr/local/lib64/" ,
110
- }
111
-
112
- buildoptions {
113
- " `python2-config --includes`" ,
114
- " `pkg-config --cflags cairomm-1.0 pangomm-1.4`"
115
- }
109
+ defines {
110
+ " _WINSOCKAPI_"
111
+ }
112
+ links {
113
+ " ws2_32" ,
114
+ -- "glibmm.dll.lib",
115
+ -- "cairomm.dll.lib",
116
+ -- "pangomm.dll.lib",
117
+ " SDL2main" ,
118
+ " OpenGL32" ,
119
+ " GLU32" ,
120
+ " SDL2" ,
121
+ " SDL2_ttf" ,
122
+ " GLEW32" ,
123
+ " assimp" ,
124
+ " freeimage" ,
125
+ " OpenAL32" ,
126
+ " alut" ,
127
+ " libogg" ,
128
+ " libvorbis" ,
129
+ " libvorbisfile" ,
130
+ -- "boost_system-vc141-mt-1_67",
131
+ -- "boost_filesystem-vc141-mt-1_67",
132
+ -- "boost_thread-vc141-mt-1_67",
133
+ " python27" ,
134
+ -- "boost_python-vc141-mt-1_67",
135
+ -- "boost_coroutine-vc141-mt-1_67",
136
+ -- "boost_regex-vc141-mt-1_67",
137
+ " lib_json" ,
138
+ }
116
139
117
- linkoptions {
118
- " `python2-config --libs`" ,
119
- " `pkg-config --libs cairomm-1.0 pangomm-1.4`"
120
- }
140
+ includedirs {
141
+ -- "c:/Python27/include",
142
+ -- "c:/gtkmm/lib/pangomm/include",
143
+ -- "c:/gtkmm/lib/sigc++/include",
144
+ -- "c:/gtkmm/lib/cairomm/include",
145
+ -- "c:/gtkmm/include/pango",
146
+ -- "c:/gtkmm/include/pangomm",
147
+ -- "c:/gtkmm/include/sigc++",
148
+ -- "c:/gtkmm/include",
149
+ -- "c:/gtkmm/include/cairo",
150
+ -- "c:/gtkmm/lib/glib/include",
151
+ -- "c:/gtkmm/include/glib",
152
+ -- "c:/gtkmm/lib/glibmm/include",
153
+ -- "c:/gtkmm/include/glibmm",
154
+ -- "c:/gtkmm/include/cairomm",
155
+ -- "c:/gtkmm/include",
156
+ " c:/local/boost_1_67_0" ,
157
+ " c:/Program Files (x86)/OpenAL 1.1 SDK/include" ,
158
+ " c:/msvc/include" ,
159
+ }
160
+ configuration { " windows" , " Debug" }
161
+ libdirs {
162
+ " c:/msvc/lib32/debug"
163
+ }
164
+ configuration " windows"
165
+ includedirs {
166
+ " C:/Python27/include" ,
167
+ }
168
+ libdirs {
169
+ " c:/Program Files (x86)/OpenAL 1.1 SDK/libs/Win32" ,
170
+ " c:/msvc/lib32" ,
171
+ -- "c:/gtkmm/lib",
172
+ " C:/local/boost_1_67_0/lib32-msvc-14.1" ,
173
+ " C:/Python27/libs" ,
174
+ }
175
+
176
+ configuration { " windows" , " Debug" }
177
+ links {
178
+ " RakNet_VS2008_LibStatic_Debug_Win32" ,
179
+ -- "BulletSoftBody_vs2010",
180
+ -- "BulletDynamics_vs2010_debug",
181
+ -- "BulletCollision_vs2010_debug",
182
+ -- "LinearMath_vs2010_debug",
183
+ }
184
+ configuration {}
185
+ configuration { " windows" , " Release" }
186
+ links {
187
+ " RakNet_VS2008_LibStatic_Release_Win32" ,
188
+ -- "BulletSoftBody_vs2010",
189
+ -- "BulletDynamics_vs2010",
190
+ -- "BulletCollision_vs2010",
191
+ -- "LinearMath_vs2010",
192
+ }
121
193
122
- project " test "
194
+ project " microarmy "
123
195
kind " ConsoleApp"
124
196
language " C++"
125
- links {
126
- " pthread" ,
127
- " GL" ,
128
- " GLU" ,
129
- " SDL2" ,
130
- " GLEW" ,
131
- " assimp" ,
132
- " freeimage" ,
133
- " openal" ,
134
- " alut" ,
135
- " ogg" ,
136
- " vorbis" ,
137
- " vorbisfile" ,
138
- " boost_system" ,
139
- " boost_thread" ,
140
- " boost_filesystem" ,
141
- " boost_python" ,
142
- " boost_coroutine" ,
143
- " boost_regex" ,
144
- " jsoncpp" ,
145
- " BulletSoftBody" ,
146
- " BulletDynamics" ,
147
- " BulletCollision" ,
148
- " LinearMath" ,
149
- " z" ,
150
- " RakNetDLL" ,
151
- }
152
197
153
198
-- Project Files
154
199
files {
155
200
" src/**.h" ,
156
201
" src/**.cpp" ,
157
- " lib/Qor/Qor/ **.h" ,
158
- " lib/Qor/Qor/ **.cpp" ,
202
+ " lib/Qor/**.h" ,
203
+ " lib/Qor/**.cpp" ,
159
204
" lib/Qor/lib/kit/**.h" ,
160
205
" lib/Qor/lib/kit/**.cpp"
161
206
}
162
207
163
208
-- Exluding Files
164
209
excludes {
165
- " src/Main.cpp " , -- run test suite instead
166
-
210
+ " lib/*~/** " ,
211
+ " lib/Qor/lib/*~/** " ,
167
212
" lib/Qor/Qor/Main.cpp" ,
168
213
" lib/Qor/Qor/Info.cpp" ,
169
214
" lib/Qor/Qor/DemoState.*" ,
170
- -- "lib/Qor/Qor/tests/**", -- don't exclude test suite
171
- " lib/Qor/Qor/scripts/**" ,
172
215
" lib/Qor/Qor/addons/**" ,
216
+ " lib/Qor/Qor/tests/**" ,
217
+ " lib/Qor/gui/**" ,
218
+ " lib/Qor/scripts/**" ,
219
+ " lib/Qor/templates/**" ,
173
220
" lib/Qor/lib/kit/tests/**" ,
174
- " lib/Qor/lib/kit/toys/**"
221
+ " lib/Qor/lib/kit/toys/**" ,
222
+ " lib/Qor/lib/kit/kit/net/**"
175
223
}
176
-
224
+
177
225
includedirs {
178
- " lib/Qor/ " ,
226
+ " lib/Qor" ,
179
227
" lib/Qor/lib/kit" ,
180
228
" /usr/local/include/" ,
181
229
" /usr/include/bullet/" ,
182
230
" /usr/include/rapidxml/" ,
183
231
" /usr/include/raknet/DependentExtensions"
184
232
}
185
233
186
- libdirs {
187
- " /usr/local/lib" ,
188
- " /usr/local/lib64/" ,
189
- }
190
-
191
- buildoptions {
192
- " `python2-config --includes`" ,
193
- " `pkg-config --cflags cairomm-1.0 pangomm-1.4`"
194
- }
195
-
196
- linkoptions {
197
- " `python2-config --libs`" ,
198
- " `pkg-config --libs cairomm-1.0 pangomm-1.4`"
199
- }
200
-
0 commit comments