1
1
workspace (" microarmy" )
2
2
targetdir (" bin" )
3
+ debugdir (" bin" )
3
4
4
5
configurations {" Debug" , " Release" }
5
- defines {
6
- " GLM_FORCE_CTOR_INIT" ,
7
- " GLM_ENABLE_EXPERIMENTAL" ,
8
- " GLM_FORCE_RADIANS" ,
9
- " QOR_NO_PYTHON" ,
10
- " QOR_NO_CAIRO" ,
11
- " QOR_NO_PHYSICS" ,
12
- " NOMINMAX"
13
- }
14
-
6
+
15
7
-- Debug Config
16
8
configuration " Debug"
17
- defines { " DEBUG" , " BACKWARD_HAS_BFD=1" }
9
+
10
+ defines {
11
+ " GLM_FORCE_CTOR_INIT" ,
12
+ " GLM_ENABLE_EXPERIMENTAL" ,
13
+ " GLM_FORCE_RADIANS" ,
14
+ " NOMINMAX"
15
+ }
16
+
18
17
symbols " On"
18
+ links {
19
+ " z" ,
20
+ " bfd" ,
21
+ " iberty"
22
+ }
19
23
linkoptions { }
20
24
21
- configuration " gmake"
22
- links {
23
- " z" ,
24
- " bfd" ,
25
- " iberty"
26
- }
27
-
28
25
-- Release Config
29
26
configuration " Release"
30
27
defines { " NDEBUG" }
31
- flags { " OptimizeSpeed" }
28
+ optimize " Speed"
29
+ floatingpoint " Fast"
32
30
targetname (" microarmy_dist" )
33
31
34
32
-- gmake Config
35
33
configuration " gmake"
36
34
buildoptions { " -std=c++11" }
37
35
-- Uncomment the following line to get in depth debugging
38
36
-- buildoptions { "-std=c++11", "-pedantic", "-Wall", "-Wextra", '-v', '-fsyntax-only'}
39
- links {
40
- " pthread" ,
41
- " GL" ,
42
- " GLU" ,
43
- " SDL2_ttf" ,
44
- " SDL2" ,
45
- " GLEW" ,
46
- " assimp" ,
47
- " freeimage" ,
48
- " openal" ,
49
- " alut" ,
50
- " ogg" ,
51
- " vorbis" ,
52
- " vorbisfile" ,
53
- " boost_system" ,
54
- " boost_thread" ,
55
- " boost_filesystem" ,
56
- " boost_python" ,
57
- " boost_coroutine" ,
58
- " boost_regex" ,
59
- " jsoncpp" ,
60
- " z" ,
61
- " raknet" ,
62
- }
63
- includedirs {
64
- " lib/Qor/" ,
65
- " lib/Qor/lib/kit" ,
66
- " /usr/local/include/" ,
67
- " /usr/include/bullet/" ,
68
- " /usr/include/rapidxml/" ,
69
- " /usr/include/raknet/DependentExtensions"
70
- }
71
37
72
- libdirs {
73
- " /usr/local/lib" ,
74
- " /usr/local/lib64/" ,
75
- }
76
-
77
- buildoptions {
78
- " `python2-config --includes`" ,
79
- " `pkg-config --cflags cairomm-1.0 pangomm-1.4`"
80
- }
81
-
82
- linkoptions {
83
- " `python2-config --libs`" ,
84
- " `pkg-config --libs cairomm-1.0 pangomm-1.4`"
85
- }
86
38
-- OS X Config
87
39
configuration " macosx"
88
40
buildoptions { " -U__STRICT_ANSI__" , " -stdlib=libc++" }
89
41
linkoptions { " -stdlib=libc++" }
90
42
91
- configuration " windows"
92
- toolset " v141"
93
- flags { " MultiProcessorCompile" }
94
-
95
- links {
96
- " ws2_32" ,
97
- -- "glibmm.dll",
98
- -- "cairomm.dll",
99
- -- "pangomm.dll",
100
- " SDL2main" ,
101
- " OpenGL32" ,
102
- " GLU32" ,
103
- " SDL2_ttf" ,
104
- " SDL2" ,
105
- " GLEW32" ,
106
- " assimp" ,
107
- " freeimage" ,
108
- " openal32" ,
109
- " alut" ,
110
- " libogg" ,
111
- " libvorbis" ,
112
- " libvorbisfile" ,
113
- " lib_json" ,
114
- }
115
-
116
- includedirs {
117
- " c:/gtkmm/lib/pangomm/include" ,
118
- " c:/gtkmm/lib/sigc++/include" ,
119
- " c:/gtkmm/lib/cairomm/include" ,
120
- " c:/gtkmm/include/pango" ,
121
- " c:/gtkmm/include/pangomm" ,
122
- " c:/gtkmm/include/sigc++" ,
123
- " c:/gtkmm/include" ,
124
- " c:/gtkmm/include/cairo" ,
125
- " c:/gtkmm/lib/glib/include" ,
126
- " c:/gtkmm/include/glib" ,
127
- " c:/gtkmm/lib/glibmm/include" ,
128
- " c:/gtkmm/include/glibmm" ,
129
- " c:/gtkmm/include/cairomm" ,
130
- " c:/gtkmm/include" ,
131
-
132
- " c:/local/boost_1_64_0" ,
133
- " c:/Program Files (x86)/OpenAL 1.1 SDK/include" ,
134
- " c:/msvc/include" ,
135
- }
136
- configuration { " windows" , " Debug" }
137
- libdirs { " c:/msvc/lib32/debug" }
138
- links {
139
- " RakNet_VS2008_LibStatic_Debug_Win32" ,
140
- }
141
- configuration {}
142
- configuration { " windows" , " Release" }
143
- links {
144
- " RakNet_VS2008_LibStatic_Release_Win32" ,
145
- }
146
- configuration { " windows" }
147
-
148
- libdirs {
149
- " c:/Program Files (x86)/OpenAL 1.1 SDK/libs/Win32" ,
150
- " c:/msvc/lib32" ,
151
- " c:/gtkmm/lib" ,
152
- " c:/local/boost_1_64_0/lib32-msvc-14.1" ,
153
- }
154
- -- buildoptions {
155
- -- "/MP",
156
- -- "/Gm-",
157
- -- }
158
43
159
44
project " microarmy"
160
45
kind " WindowedApp"
161
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
+ }
162
75
163
76
-- Project Files
164
77
files {
@@ -181,11 +94,107 @@ workspace("microarmy")
181
94
" lib/Qor/lib/kit/tests/**" ,
182
95
" lib/Qor/lib/kit/toys/**"
183
96
}
97
+
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
+ }
106
+
107
+ libdirs {
108
+ " /usr/local/lib" ,
109
+ " /usr/local/lib64/" ,
110
+ }
184
111
112
+ buildoptions {
113
+ " `python2-config --includes`" ,
114
+ " `pkg-config --cflags cairomm-1.0 pangomm-1.4`"
115
+ }
116
+
117
+ linkoptions {
118
+ " `python2-config --libs`" ,
119
+ " `pkg-config --libs cairomm-1.0 pangomm-1.4`"
120
+ }
121
+
122
+ project " test"
123
+ kind " ConsoleApp"
124
+ 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
+
153
+ -- Project Files
154
+ files {
155
+ " src/**.h" ,
156
+ " src/**.cpp" ,
157
+ " lib/Qor/Qor/**.h" ,
158
+ " lib/Qor/Qor/**.cpp" ,
159
+ " lib/Qor/lib/kit/**.h" ,
160
+ " lib/Qor/lib/kit/**.cpp"
161
+ }
162
+
163
+ -- Exluding Files
164
+ excludes {
165
+ " src/Main.cpp" , -- run test suite instead
166
+
167
+ " lib/Qor/Qor/Main.cpp" ,
168
+ " lib/Qor/Qor/Info.cpp" ,
169
+ " lib/Qor/Qor/DemoState.*" ,
170
+ -- "lib/Qor/Qor/tests/**", -- don't exclude test suite
171
+ " lib/Qor/Qor/scripts/**" ,
172
+ " lib/Qor/Qor/addons/**" ,
173
+ " lib/Qor/lib/kit/tests/**" ,
174
+ " lib/Qor/lib/kit/toys/**"
175
+ }
176
+
185
177
includedirs {
186
178
" lib/Qor/" ,
187
179
" lib/Qor/lib/kit" ,
188
180
" /usr/local/include/" ,
189
181
" /usr/include/bullet/" ,
182
+ " /usr/include/rapidxml/" ,
190
183
" /usr/include/raknet/DependentExtensions"
191
184
}
185
+
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