forked from yavl/teeworlds-infclassR
-
Notifications
You must be signed in to change notification settings - Fork 3
/
bam.lua
544 lines (472 loc) · 20.6 KB
/
bam.lua
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
CheckVersion("0.4")
Import("configure.lua")
Import("other/mysql/mysql.lua")
--- Setup Config -------
config = NewConfig()
config:Add(OptCCompiler("compiler"))
config:Add(OptTestCompileC("stackprotector", "int main(){return 0;}", "-fstack-protector -fstack-protector-all"))
config:Add(OptTestCompileC("minmacosxsdk", "int main(){return 0;}", "-mmacosx-version-min=10.7 -isysroot /Developer/SDKs/MacOSX10.7.sdk"))
config:Add(OptTestCompileC("macosxppc", "int main(){return 0;}", "-arch ppc"))
config:Add(OptLibrary("zlib", "zlib.h", false))
config:Add(Mysql.OptFind("mysql", false))
config:Add(OptToggle("nogeolocation", false))
config:Finalize("config.lua")
-- data compiler
function Script(name)
if family == "windows" then
return str_replace(name, "/", "\\")
end
return "python " .. name
end
function CHash(output, ...)
local inputs = TableFlatten({...})
output = Path(output)
-- compile all the files
local cmd = Script("scripts/cmd5.py") .. " "
for index, inname in ipairs(inputs) do
cmd = cmd .. Path(inname) .. " "
end
cmd = cmd .. " > " .. output
AddJob(output, "cmd5 " .. output, cmd)
for index, inname in ipairs(inputs) do
AddDependency(output, inname)
end
AddDependency(output, "scripts/cmd5.py")
return output
end
--[[
function DuplicateDirectoryStructure(orgpath, srcpath, dstpath)
for _,v in pairs(CollectDirs(srcpath .. "/")) do
MakeDirectory(dstpath .. "/" .. string.sub(v, string.len(orgpath)+2))
DuplicateDirectoryStructure(orgpath, v, dstpath)
end
end
DuplicateDirectoryStructure("src", "src", "objs")
]]
function ResCompile(scriptfile)
scriptfile = Path(scriptfile)
if config.compiler.driver == "cl" then
output = PathBase(scriptfile) .. ".res"
AddJob(output, "rc " .. scriptfile, "rc /fo " .. output .. " " .. scriptfile)
elseif config.compiler.driver == "gcc" then
output = PathBase(scriptfile) .. ".coff"
AddJob(output, "windres " .. scriptfile, "windres -i " .. scriptfile .. " -o " .. output)
end
AddDependency(output, scriptfile)
return output
end
function Dat2c(datafile, sourcefile, arrayname)
datafile = Path(datafile)
sourcefile = Path(sourcefile)
AddJob(
sourcefile,
"dat2c " .. PathFilename(sourcefile) .. " = " .. PathFilename(datafile),
Script("scripts/dat2c.py").. "\" " .. sourcefile .. " " .. datafile .. " " .. arrayname
)
AddDependency(sourcefile, datafile)
return sourcefile
end
function ContentCompile(action, output)
output = Path(output)
AddJob(
output,
action .. " > " .. output,
--Script("datasrc/compile.py") .. "\" ".. Path(output) .. " " .. action
Script("datasrc/compile.py") .. " " .. action .. " > " .. Path(output)
)
AddDependency(output, Path("datasrc/content.py")) -- do this more proper
AddDependency(output, Path("datasrc/network.py"))
AddDependency(output, Path("datasrc/compile.py"))
AddDependency(output, Path("datasrc/datatypes.py"))
return output
end
-- Content Compile
network_source = ContentCompile("network_source", "src/game/generated/protocol.cpp")
network_header = ContentCompile("network_header", "src/game/generated/protocol.h")
server_content_source = ContentCompile("server_content_source", "src/game/generated/server_data.cpp")
server_content_header = ContentCompile("server_content_header", "src/game/generated/server_data.h")
AddDependency(network_source, network_header)
AddDependency(server_content_source, server_content_header)
nethash = CHash("src/game/generated/nethash.cpp", "src/engine/shared/protocol.h", "src/game/generated/protocol.h", "src/game/tuning.h", "src/game/gamecore.cpp", network_header)
icu_depends = {}
server_link_other = {}
server_sql_depends = {}
if family == "windows" then
if platform == "win32" then
-- Add ICU because its a HAVE to
if config.compiler.driver == "cl" then
table.insert(icu_depends, CopyToDirectory(".", "other/icu/vc/lib32/icudt53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/vc/lib32/icuin53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/vc/lib32/icuuc53.dll"))
elseif config.compiler.driver == "gcc" then
table.insert(icu_depends, CopyToDirectory(".", "other/icu/gcc/lib32/icudt53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/gcc/lib32/icuin53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/gcc/lib32/icuuc53.dll"))
end
else
-- Add ICU because its a HAVE to
if config.compiler.driver == "cl" then
table.insert(icu_depends, CopyToDirectory(".", "other/icu/vc/lib64/icudt53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/vc/lib64/icuin53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/vc/lib64/icuuc53.dll"))
elseif config.compiler.driver == "gcc" then
table.insert(icu_depends, CopyToDirectory(".", "other/icu/gcc/lib64/icudt53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/gcc/lib64/icuin53.dll"))
table.insert(icu_depends, CopyToDirectory(".", "other/icu/gcc/lib64/icuuc53.dll"))
end
end
table.insert(server_sql_depends, CopyToDirectory(".", "other/mysql/vc2005libs/mysqlcppconn.dll"))
table.insert(server_sql_depends, CopyToDirectory(".", "other/mysql/vc2005libs/libmysql.dll"))
if config.compiler.driver == "cl" then
server_link_other = {ResCompile("other/icons/teeworlds_srv_cl.rc")}
elseif config.compiler.driver == "gcc" then
server_link_other = {ResCompile("other/icons/teeworlds_srv_gcc.rc")}
end
end
function Intermediate_Output(settings, input)
return "objs/" .. string.sub(PathBase(input), string.len("src/")+1) .. settings.config_ext
end
function build(settings)
-- apply compiler settings
config.compiler:Apply(settings)
--settings.objdir = Path("objs")
settings.cc.Output = Intermediate_Output
if config.compiler.driver == "cl" then
settings.cc.flags:Add("/wd4244")
else
settings.cc.flags:Add("-Wall")
settings.cc.flags_cxx:Add("-std=c++11")
settings.cc.flags:Add("-Werror=format -fstack-protector-all -D_FORTIFY_SOURCE=1 -fPIE -pie")
if family == "windows" then
-- disable visibility attribute support for gcc on windows
settings.cc.defines:Add("NO_VIZ")
if config.stackprotector.value then
settings.cc.flags:Add("-fstack-protector", "-fstack-protector-all")
settings.link.flags:Add("-fstack-protector", "-fstack-protector-all")
end
elseif platform == "macosx" then
settings.cc.flags:Add("-mmacosx-version-min=10.7")
settings.link.flags:Add("-mmacosx-version-min=10.7")
if config.minmacosxsdk.value == 1 then
settings.cc.flags:Add("-isysroot /Developer/SDKs/MacOSX10.7.sdk")
settings.link.flags:Add("-isysroot /Developer/SDKs/MacOSX10.7.sdk")
end
elseif config.stackprotector.value == 1 then
settings.cc.flags:Add("-fstack-protector", "-fstack-protector-all")
settings.link.flags:Add("-fstack-protector", "-fstack-protector-all")
end
end
-- set some platform specific settings
settings.cc.includes:Add("src")
if family == "unix" then
if platform == "macosx" then
settings.cc.flags_cxx:Add("-stdlib=libc++")
settings.cc.includes:Add("/usr/local/opt/icu4c/include")
settings.link.libs:Add("icui18n")
settings.link.libs:Add("icuuc")
settings.link.libs:Add("c++")
settings.link.libpath:Add("/usr/local/opt/icu4c/lib")
settings.link.frameworks:Add("Carbon")
settings.link.frameworks:Add("AppKit")
else
settings.link.libs:Add("pthread")
-- add ICU for linux
if ExecuteSilent("pkg-config icu-uc icu-i18n") == 0 then
end
settings.cc.flags:Add("`pkg-config --cflags icu-uc icu-i18n`")
settings.link.flags:Add("`pkg-config --libs icu-uc icu-i18n`")
end
if not config.nogeolocation.value then
settings.link.libs:Add("maxminddb") -- for ip geolocation
end
if platform == "solaris" then
settings.link.flags:Add("-lsocket")
settings.link.flags:Add("-lnsl")
end
elseif family == "windows" then
settings.link.libs:Add("gdi32")
settings.link.libs:Add("user32")
settings.link.libs:Add("ws2_32")
settings.link.libs:Add("ole32")
settings.link.libs:Add("shell32")
settings.link.libs:Add("advapi32")
-- add ICU also here
settings.cc.includes:Add("other\\icu\\include")
end
-- compile zlib if needed
if config.zlib.value == 1 then
settings.link.libs:Add("z")
if config.zlib.include_path then
settings.cc.includes:Add(config.zlib.include_path)
end
zlib = {}
else
zlib = Compile(settings, Collect("src/engine/external/zlib/*.c"))
settings.cc.includes:Add("src/engine/external/zlib")
end
-- build the small libraries
wavpack = Compile(settings, Collect("src/engine/external/wavpack/*.c"))
pnglite = Compile(settings, Collect("src/engine/external/pnglite/*.c"))
md5 = Compile(settings, "src/engine/external/md5/md5.c")
json = Compile(settings, "src/engine/external/json-parser/json.c")
-- build game components
engine_settings = settings:Copy()
server_settings = engine_settings:Copy()
launcher_settings = engine_settings:Copy()
if family == "unix" then
if platform == "macosx" then
launcher_settings.link.frameworks:Add("Cocoa")
end
if string.find(settings.config_name, "sql") then
server_settings.link.libs:Add("ssl")
server_settings.link.libs:Add("crypto")
end
elseif family == "windows" then
server_settings.link.libpath:Add("other/mysql/vc2005libs")
if string.find(settings.config_name, "sql") then
server_settings.link.libpath:Add("other/mysql/vc2005libs")
server_settings.link.libs:Add("mysqlcppconn")
end
-- Add ICU because its a HAVE to
if platform == "win32" then
if config.compiler.driver == "cl" then
server_settings.link.libpath:Add("other/icu/vc/lib32")
elseif config.compiler.driver == "gcc" then
server_settings.link.libpath:Add("other/icu/gcc/lib32")
end
server_settings.link.libs:Add("icudt")
server_settings.link.libs:Add("icuin")
server_settings.link.libs:Add("icuuc")
else
if config.compiler.driver == "cl" then
server_settings.link.libpath:Add("other/icu/vc/lib64")
elseif config.compiler.driver == "gcc" then
server_settings.link.libpath:Add("other/icu/gcc/lib64")
end
server_settings.link.libs:Add("icudt")
server_settings.link.libs:Add("icuin")
server_settings.link.libs:Add("icuuc")
end
end
engine = Compile(engine_settings, Collect("src/engine/shared/*.cpp", "src/base/*.cpp", "src/base/*.c"))
server = Compile(server_settings, Collect("src/engine/server/*.cpp"))
teeuniverses = Compile(server_settings, Collect("src/teeuniverses/*.cpp", "src/teeuniverses/components/*.cpp", "src/teeuniverses/system/*.cpp"))
versionserver = Compile(settings, Collect("src/versionsrv/*.cpp"))
masterserver = Compile(settings, Collect("src/mastersrv/*.cpp"))
game_shared = Compile(settings, Collect("src/game/*.cpp"), nethash, network_source)
game_server = Compile(settings, CollectRecursive("src/game/server/*.cpp"), server_content_source)
if not config.nogeolocation.value then
infclassr = Compile(settings, Collect("src/infclassr/*.cpp", "src/infclassr/GeoLite2PP/*.cpp"))
end
-- build tools (TODO: fix this so we don't get double _d_d stuff)
tools_src = Collect("src/tools/*.cpp", "src/tools/*.c")
server_osxlaunch = {}
if platform == "macosx" then
server_osxlaunch = Compile(launcher_settings, "src/osxlaunch/server.m")
end
tools = {}
for i,v in ipairs(tools_src) do
toolname = PathFilename(PathBase(v))
tools[i] = Link(settings, toolname, Compile(settings, v), engine, zlib, pnglite, md5)
end
-- build server, version server and master server
server_exe = Link(server_settings, "bin/server", engine, server,
game_shared, game_server, infclassr, teeuniverses, zlib, server_link_other, md5, json)
serverlaunch = {}
if platform == "macosx" then
serverlaunch = Link(launcher_settings, "serverlaunch", server_osxlaunch)
end
versionserver_exe = Link(server_settings, "versionsrv", versionserver,
engine, zlib, md5)
masterserver_exe = Link(server_settings, "mastersrv", masterserver,
engine, zlib, md5)
-- make targets
if string.find(settings.config_name, "sql") then
s = PseudoTarget("server".."_"..settings.config_name, server_exe, serverlaunch, server_sql_depends, icu_depends)
else
s = PseudoTarget("server".."_"..settings.config_name, server_exe, serverlaunch, icu_depends)
end
v = PseudoTarget("versionserver".."_"..settings.config_name, versionserver_exe)
m = PseudoTarget("masterserver".."_"..settings.config_name, masterserver_exe)
t = PseudoTarget("tools".."_"..settings.config_name, tools)
all = PseudoTarget(settings.config_name, c, s, v, m, t)
return all
end
debug_settings = NewSettings()
debug_settings.config_name = "debug"
debug_settings.config_ext = "_d"
debug_settings.debug = 1
debug_settings.optimize = 0
debug_settings.cc.defines:Add("CONF_DEBUG")
debug_sql_settings = NewSettings()
debug_sql_settings.config_name = "sql_debug"
debug_sql_settings.config_ext = "_sql_d"
debug_sql_settings.debug = 1
debug_sql_settings.optimize = 0
debug_sql_settings.cc.defines:Add("CONF_DEBUG", "CONF_SQL")
release_settings = NewSettings()
release_settings.config_name = "release"
release_settings.config_ext = ""
release_settings.debug = 0
release_settings.optimize = 1
release_settings.cc.defines:Add("CONF_RELEASE")
release_sql_settings = NewSettings()
release_sql_settings.config_name = "sql_release"
release_sql_settings.config_ext = "_sql"
release_sql_settings.debug = 0
release_sql_settings.optimize = 1
release_sql_settings.cc.defines:Add("CONF_RELEASE", "CONF_SQL")
config.mysql:Apply(debug_sql_settings)
config.mysql:Apply(release_sql_settings)
if config.nogeolocation.value then
debug_settings.cc.defines:Add("CONF_NOGEOLOCATION")
debug_sql_settings.cc.defines:Add("CONF_NOGEOLOCATION")
release_settings.cc.defines:Add("CONF_NOGEOLOCATION")
release_sql_settings.cc.defines:Add("CONF_NOGEOLOCATION")
end
if platform == "macosx" then
debug_settings_ppc = debug_settings:Copy()
debug_settings_ppc.config_name = "debug_ppc"
debug_settings_ppc.config_ext = "_ppc_d"
debug_settings_ppc.cc.flags:Add("-arch ppc")
debug_settings_ppc.link.flags:Add("-arch ppc")
debug_settings_ppc.cc.defines:Add("CONF_DEBUG")
debug_sql_settings_ppc = debug_settings:Copy()
debug_sql_settings_ppc.config_name = "sql_debug_ppc"
debug_sql_settings_ppc.config_ext = "_sql_ppc_d"
debug_sql_settings_ppc.cc.flags:Add("-arch ppc")
debug_sql_settings_ppc.link.flags:Add("-arch ppc")
debug_sql_settings_ppc.cc.defines:Add("CONF_DEBUG", "CONF_SQL")
release_settings_ppc = release_settings:Copy()
release_settings_ppc.config_name = "release_ppc"
release_settings_ppc.config_ext = "_ppc"
release_settings_ppc.cc.flags:Add("-arch ppc")
release_settings_ppc.link.flags:Add("-arch ppc")
release_settings_ppc.cc.defines:Add("CONF_RELEASE")
release_sql_settings_ppc = release_settings:Copy()
release_sql_settings_ppc.config_name = "sql_release_ppc"
release_sql_settings_ppc.config_ext = "_sql_ppc"
release_sql_settings_ppc.cc.flags:Add("-arch ppc")
release_sql_settings_ppc.link.flags:Add("-arch ppc")
release_sql_settings_ppc.cc.defines:Add("CONF_RELEASE", "CONF_SQL")
ppc_d = build(debug_settings_ppc)
ppc_r = build(release_settings_ppc)
sql_ppc_d = build(debug_sql_settings_ppc)
sql_ppc_r = build(release_sql_settings_ppc)
if arch == "ia32" or arch == "amd64" then
debug_settings_x86 = debug_settings:Copy()
debug_settings_x86.config_name = "debug_x86"
debug_settings_x86.config_ext = "_x86_d"
debug_settings_x86.cc.flags:Add("-arch i386")
debug_settings_x86.link.flags:Add("-arch i386")
debug_settings_x86.cc.defines:Add("CONF_DEBUG")
debug_sql_settings_x86 = debug_settings:Copy()
debug_sql_settings_x86.config_name = "sql_debug_x86"
debug_sql_settings_x86.config_ext = "_sql_x86_d"
debug_sql_settings_x86.cc.flags:Add("-arch i386")
debug_sql_settings_x86.link.flags:Add("-arch i386")
debug_sql_settings_x86.cc.defines:Add("CONF_DEBUG", "CONF_SQL")
release_settings_x86 = release_settings:Copy()
release_settings_x86.config_name = "release_x86"
release_settings_x86.config_ext = "_x86"
release_settings_x86.cc.flags:Add("-arch i386")
release_settings_x86.link.flags:Add("-arch i386")
release_settings_x86.cc.defines:Add("CONF_RELEASE")
release_sql_settings_x86 = release_settings:Copy()
release_sql_settings_x86.config_name = "sql_release_x86"
release_sql_settings_x86.config_ext = "_sql_x86"
release_sql_settings_x86.cc.flags:Add("-arch i386")
release_sql_settings_x86.link.flags:Add("-arch i386")
release_sql_settings_x86.cc.defines:Add("CONF_RELEASE", "CONF_SQL")
x86_d = build(debug_settings_x86)
x86_r = build(release_settings_x86)
sql_x86_d = build(debug_sql_settings_x86)
sql_x86_r = build(release_sql_settings_x86)
end
if arch == "amd64" then
debug_settings_x86_64 = debug_settings:Copy()
debug_settings_x86_64.config_name = "debug_x86_64"
debug_settings_x86_64.config_ext = "_x86_64_d"
debug_settings_x86_64.cc.flags:Add("-arch x86_64")
debug_settings_x86_64.link.flags:Add("-arch x86_64")
debug_settings_x86_64.cc.defines:Add("CONF_DEBUG")
debug_sql_settings_x86_64 = debug_settings:Copy()
debug_sql_settings_x86_64.config_name = "debug_sql_x86_64"
debug_sql_settings_x86_64.config_ext = "_sql_x86_64_d"
debug_sql_settings_x86_64.cc.flags:Add("-arch x86_64")
debug_sql_settings_x86_64.link.flags:Add("-arch x86_64")
debug_sql_settings_x86_64.cc.defines:Add("CONF_DEBUG", "CONF_SQL")
release_settings_x86_64 = release_settings:Copy()
release_settings_x86_64.config_name = "release_x86_64"
release_settings_x86_64.config_ext = "_x86_64"
release_settings_x86_64.cc.flags:Add("-arch x86_64")
release_settings_x86_64.link.flags:Add("-arch x86_64")
release_settings_x86_64.cc.defines:Add("CONF_RELEASE")
release_sql_settings_x86_64 = release_settings:Copy()
release_sql_settings_x86_64.config_name = "release_sql_x86_64"
release_sql_settings_x86_64.config_ext = "_sql_x86_64"
release_sql_settings_x86_64.cc.flags:Add("-arch x86_64")
release_sql_settings_x86_64.link.flags:Add("-arch x86_64")
release_sql_settings_x86_64.cc.defines:Add("CONF_RELEASE", "CONF_SQL")
x86_64_d = build(debug_settings_x86_64)
x86_64_r = build(release_settings_x86_64)
sql_x86_64_d = build(debug_sql_settings_x86_64)
sql_x86_64_r = build(release_sql_settings_x86_64)
end
if config.macosxppc.value == 1 then
if arch == "ia32" then
PseudoTarget("release", ppc_r, x86_r)
PseudoTarget("debug", ppc_d, x86_d)
PseudoTarget("server_release", "server_release_ppc", "server_release_x86")
PseudoTarget("server_debug", "server_debug_ppc", "server_debug_x86")
PseudoTarget("sql_release", sql_ppc_r, sql_x86_r)
PseudoTarget("sql_debug", sql_ppc_d, sql_x86_d)
PseudoTarget("server_sql_release", "server_sql_release_ppc", "server_sql_release_x86")
PseudoTarget("server_sql_debug", "server_sql_debug_ppc", "server_sql_debug_x86")
elseif arch == "amd64" then
PseudoTarget("release", ppc_r, x86_r, x86_64_r)
PseudoTarget("debug", ppc_d, x86_d, x86_64_d)
PseudoTarget("server_release", "server_release_ppc", "server_release_x86", "server_release_x86_64")
PseudoTarget("server_debug", "server_debug_ppc", "server_debug_x86", "server_debug_x86_64")
PseudoTarget("sql_release", sql_ppc_r, sql_x86_r, sql_x86_64_r)
PseudoTarget("sql_debug", sql_ppc_d, sql_x86_d, sql_x86_64_d)
PseudoTarget("server_sql_release", "server_sql_release_ppc", "server_sql_release_x86", "server_sql_release_x86_64")
PseudoTarget("server_sql_debug", "server_sql_debug_ppc", "server_sql_debug_x86", "server_sql_debug_x86_64")
else
PseudoTarget("release", ppc_r)
PseudoTarget("debug", ppc_d)
PseudoTarget("server_release", "server_release_ppc")
PseudoTarget("server_debug", "server_debug_ppc")
PseudoTarget("sql_release", sql_ppc_r)
PseudoTarget("sql_debug", sql_ppc_d)
PseudoTarget("server_sql_release", "server_sql_release_ppc")
PseudoTarget("server_sql_debug", "server_sql_debug_ppc")
end
else
if arch == "ia32" then
PseudoTarget("release", x86_r)
PseudoTarget("debug", x86_d)
PseudoTarget("server_release", "server_release_x86")
PseudoTarget("server_debug", "server_debug_x86")
PseudoTarget("sql_release", sql_x86_r)
PseudoTarget("sql_debug", sql_x86_d)
PseudoTarget("server_sql_release", "server_sql_release_x86")
PseudoTarget("server_sql_debug", "server_sql_debug_x86")
elseif arch == "amd64" then
PseudoTarget("release", x86_r, x86_64_r)
PseudoTarget("debug", x86_d, x86_64_d)
PseudoTarget("server_release", "server_release_x86", "server_release_x86_64")
PseudoTarget("server_debug", "server_debug_x86", "server_debug_x86_64")
PseudoTarget("sql_release", sql_x86_r, sql_x86_64_r)
PseudoTarget("sql_debug", sql_x86_d, sql_x86_64_d)
PseudoTarget("server_sql_release", "server_sql_release_x86", "server_sql_release_x86_64")
PseudoTarget("server_sql_debug", "server_sql_debug_x86", "server_sql_debug_x86_64")
end
end
else
build(debug_settings)
build(release_settings)
build(debug_sql_settings)
build(release_sql_settings)
DefaultTarget("server_debug")
end