-
Notifications
You must be signed in to change notification settings - Fork 31
/
sources.py
513 lines (501 loc) · 29.9 KB
/
sources.py
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
"""
Lists the source code files that make up Mario Kart Wii.
"""
from dataclasses import dataclass
from itertools import chain
HOSTSYS_OPTS = ' -ipa file -rostr -str noreuse -use_lmw_stmw=on'
RVL_OPTS = ' -lang=c99 -ipa file'
MSL_LIBC_OPTS = ' -lang=c99 -ipa file'
NW4R_OPTS = ' -lang=c99 -ipa file -inline auto -O4,p -pragma \"legacy_struct_alignment on\"'
SPY_OPTS = RVL_OPTS + " -w nounusedexpr -w nounusedarg"
RFL_OPTS = RVL_OPTS + " -O4,p"
EGG_OPTS = ' -lang=c99 -use_lmw_stmw=on -ipa function -rostr'
REL_OPTS = HOSTSYS_OPTS + " -sdata 0 -sdata2 0 -lang=c++ -pragma \"legacy_struct_alignment on\" -DREL"
REL_GEKKO_OPTS = REL_OPTS + " -DGEKKO"
@dataclass
class Source:
src: str
cc: str
opts: str
#
# main.dol
#
SOURCES_HOSTSYS = [
Source(src="source/game/host_system/SystemResource.cpp", cc='4201_127', opts=HOSTSYS_OPTS),
Source(src="source/game/host_system/RKSystem.cpp", cc='4201_127', opts=HOSTSYS_OPTS),
]
SOURCES_TRK = [
Source(src="source/runtime/__mem.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/runtime/__start.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/runtime/__ppc_eabi_init.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_MSL_LIBC = [
Source(src="source/platform/ansi_files.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/ansi_fp.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/float.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/mem.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/mem_cpy.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/printf.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/qsort.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/rand.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/scanf.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/wchar.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/ExceptionPPC.cpp", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/__init_cpp_exceptions.cpp", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/va_arg.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/eabi.c", cc='4201_127', opts=MSL_LIBC_OPTS),
Source(src="source/platform/global_destructor_chain.c", cc='4201_127', opts=MSL_LIBC_OPTS),
]
SOURCES_RVL_ARC = [
Source(src="source/rvl/arc/rvlArchive.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_AX = [
Source(src="source/rvl/ax/rvlAx.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxAlloc.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxAux.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxCl.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxComp.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxDspCode.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxOut.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxSpb.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxVpb.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ax/rvlAxProf.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_AXFX = [
Source(src="source/rvl/axfx/rvlAxFxReverbHi.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/axfx/rvlAxFxReverbHiExp.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/axfx/rvlAxFxReverbHiExpDpl2.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/axfx/rvlAxFxReverbStdExp.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/axfx/rvlAxFx.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_BASE = [
Source(src="source/rvl/base/ppcArch.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_BTE = [
Source(src="source/rvl/bte/gki_buffer.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/gki_time.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/gki_ppc.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hcisu_h2.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/uusb_ppc.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bte_hcisu.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bte_init.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bte_logmsg.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bte_main.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bte_task1.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bd.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_sys.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/ptim.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/utl.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_dm_int.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_dm_main.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_dm_pm.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_hh_act.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_hh_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_hh_main.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/bta_hh_utils.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_acl.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_dev.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_devctl.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_discovery.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_inq.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_main.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_pm.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_sco.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btm_sec.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btu_hcif.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/btu_init.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/wbt_ext.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/gap_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/gap_conn.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/gap_utils.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hcicmds.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hidd_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hidd_conn.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hidd_mgmt.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hidd_pm.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hidh_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/hidh_conn.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/l2c_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/l2c_csm.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/l2c_link.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/l2c_main.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/l2c_utils.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/port_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/port_rfc.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/port_utils.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/rfc_l2cap_if.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/rfc_mx_fsm.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/rfc_port_fsm.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/rfc_port_if.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/rfc_ts_frames.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/rfc_utils.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/sdp_api.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/sdp_db.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/sdp_discovery.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/sdp_main.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/sdp_server.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/bte/sdp_utils.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_CNT = [
Source(src="source/rvl/cnt/cnt.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_CX = [
Source(src="source/rvl/cx/cxStreamingUncompression.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/cx/cxUncompression.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_DARCH = [
Source(src="source/rvl/darch/darch.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_DB = [
Source(src="source/rvl/db/db.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/db/dbPrintf.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_DSP = [
Source(src="source/rvl/dsp/dsp.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dsp/dspPrintf.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dsp/dspTask.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_DVD = [
Source(src="source/rvl/dvd/dvdFs.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dvd/dvdMain.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dvd/dvdQueue.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dvd/dvdError.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dvd/dvdUtils.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dvd/dvdFatal.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dvd/dvdDeviceError.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/dvd/dvdBroadway.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_ENC = [
Source(src="source/rvl/enc/encUtility.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_ESP = [
Source(src="source/rvl/esp/esp.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_EUART = [
Source(src="source/rvl/euart/euart.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_EXI = [
Source(src="source/rvl/exi/exiBios.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/exi/exiUart.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/exi/exiCommon.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_FS = [
Source(src="source/rvl/fs/fs.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_GX = [
Source(src="source/rvl/gx/gxInit.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxFifo.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxAttr.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxMisc.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxGeometry.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxFrameBuf.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxLight.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxTexture.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxBump.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxTev.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxPixel.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxDraw.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxDisplayList.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxTransform.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/gx/gxPerf.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_IPC = [
Source(src="source/rvl/ipc/ipcclt.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/ipc/ipcMain.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_KPAD = [
Source(src="source/rvl/kpad/rvlKpad.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_MEM = [
Source(src="source/rvl/mem/rvlMemHeap.cpp", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mem/rvlMemExpHeap.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mem/rvlMemFrmHeap.cpp", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mem/rvlMemUnitHeap.cpp", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mem/rvlMemAllocator.cpp", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mem/rvlMemList.cpp", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_MTX = [
Source(src="source/rvl/mtx/rvlMtx.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mtx/rvlMtx2.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mtx/rvlVec.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/mtx/rvlQuat.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_NAND = [
Source(src="source/rvl/nand/rvlNand1.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/nand/rvlNand2.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/nand/rvlNand3.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_OS = [
Source(src="source/rvl/os/osAlarm.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osAlloc.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osArena.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osAudio.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osCache.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osContext.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osError.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osFatal.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osFont.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osInterrupt.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osLink.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osMemory.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osMessage.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osMutex.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osReboot.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osReset.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osRtc.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osSync.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/os/osThread.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_PAD = [
Source(src="source/rvl/pad/rvlPadClamp.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/pad/rvlPad.c", cc='4199_60831', opts=RVL_OPTS + " -inline on,noauto "),
]
SOURCES_RVL_SI = [
Source(src="source/rvl/si/siBios.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_TPL = [
Source(src="source/rvl/tpl/tpl.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_SO = [
Source(src="source/rvl/so/soCommon.c", cc='4199_60831', opts=RVL_OPTS),
Source(src="source/rvl/so/soBasic.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_RVL_DWC = [
Source(src="source/dwc/common/dwc_error.c", cc='4199_60831', opts=RVL_OPTS),
]
SOURCES_SPY = [
Source(src="source/gamespy/darray.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/hashtable.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/md5c.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/common/revolution/gsSocketRevolution.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/common/gsAvailable.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/common/revolution/gsUtilRevolution.c", cc='4199_60831', opts=SPY_OPTS),
# Source(src="source/gamespy/common/gsPlatformUtil.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/common/gsCore.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/common/gsUdpEngine.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/common/gsXML.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gp.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpi.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiBuddy.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiBuffer.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiCallback.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiConnect.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiInfo.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiKeys.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiOperation.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiPeer.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiProfile.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiSearch.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiTransfer.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiUnique.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/GP/gpiUtility.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gt2/gt2Auth.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gt2/gt2Buffer.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gt2/gt2Callback.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gt2/gt2Connection.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gt2/gt2Main.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gt2/gt2Socket.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gt2/gt2Utility.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/qr2/qr2.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/qr2/qr2regkeys.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpBuffer.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpCallbacks.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpCommon.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpConnection.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpEncryption.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpMain.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpPost.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/ghttp/ghttpProcess.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gstats/gbucket.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/gstats/gstats.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/serverbrowsing/sb_crypt.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/serverbrowsing/sb_queryengine.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/serverbrowsing/sb_server.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/serverbrowsing/sb_serverlist.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/serverbrowsing/sb_serverbrowsing.c", cc='4199_60831', opts=SPY_OPTS),
Source(src="source/gamespy/sake/sakeMain.c", cc='4199_60831', opts=SPY_OPTS),
]
SOURCES_NW4R_MATH = [
Source(src="source/nw4r/math/mathTriangular.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/math/mathTypes.cpp", cc='4201_127', opts=NW4R_OPTS),
]
SOURCES_NW4R_G3D = [
Source(src="source/nw4r/g3d/g3d_camera.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/g3d/g3d_fog.cpp", cc='4201_127', opts=NW4R_OPTS),
]
SOURCES_NW4R_LYT = [
Source(src="source/nw4r/lyt/lyt_init.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/lyt/lyt_textBox.cpp", cc='4201_127', opts=NW4R_OPTS), # placeholder
]
SOURCES_NW4R_SND = [
Source(src="source/nw4r/snd/snd_dvdSoundArchive.cpp", cc='4201_127', opts=NW4R_OPTS + " -func_align 16 "),
]
SOURCES_NW4R_UT = [
Source(src="source/nw4r/ut/utList.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_LinkList.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_binaryFileFormat.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_CharStrmReader.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_charWriter.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_IOStream.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_fileStream.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_dvdFileStream.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_dvdLockedFileStream.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_nandFileStream.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_lockedCache.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_font.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_romFont.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_resFontBase.cpp", cc='4201_127', opts=NW4R_OPTS),
Source(src="source/nw4r/ut/ut_resFont.cpp", cc='4201_127', opts=NW4R_OPTS),
]
SOURCES_RFL = [
Source(src="source/rfl/rfl_init.c", cc='4201_127', opts=RFL_OPTS),
Source(src="source/rfl/rfl_icon.c", cc='4201_127', opts=RFL_OPTS),
]
SOURCES_EGG_CORE = [
Source(src="source/egg/core/eggAllocator.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggArchive.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggAsyncDisplay.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/util/eggCntFile.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggCompress.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggDecomp.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggDisplay.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggDisposer.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggDvdFile.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggDvdRipper.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggExpHeap.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/util/eggEffect.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/util/eggEffectCreator.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/gfx/eggFog.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/gfx/eggFogManager.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggGraphicsFifo.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggHeap.cpp", cc='4201_127', opts=EGG_OPTS + " -ipa file "),
Source(src="source/egg/gfx/eggIScnProc.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/gfx/eggLightManager.cpp", cc='4201_127', opts=EGG_OPTS),
# Source(src="source/egg/gfx/eggLightObject.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggProcessMeter.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/util/eggSaveBanner.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggScene.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggSceneManager.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/gfx/eggScnRenderer.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/util/eggStream.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggStreamDecomp.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggSystem.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggTextureBuffer.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggTaskThread.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggThread.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggUnitHeap.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggVideo.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggViewport.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggXfb.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/eggXfbManager.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/core/g3d_scnrfl.cpp", cc='4201_127', opts=EGG_OPTS),
]
SOURCES_EGG_AUDIO = [
Source(src="source/egg/audio/eggAudioArcPlayerMgr.cpp", cc='4201_127', opts=EGG_OPTS),
]
SOURCES_EGG_MATH = [
Source(src="source/egg/math/eggQuat.cpp", cc='4201_127', opts=EGG_OPTS),
Source(src="source/egg/math/eggVector.cpp", cc='4201_127', opts=EGG_OPTS),
]
SOURCES_DOL = list(chain(
SOURCES_HOSTSYS,
SOURCES_TRK,
SOURCES_MSL_LIBC,
SOURCES_RVL_ARC,
SOURCES_RVL_AX,
SOURCES_RVL_AXFX,
SOURCES_RVL_BASE,
SOURCES_RVL_BTE,
SOURCES_RVL_CNT,
SOURCES_RVL_CX,
SOURCES_RVL_DARCH,
SOURCES_RVL_DB,
SOURCES_RVL_DSP,
SOURCES_RVL_DVD,
SOURCES_RVL_ENC,
SOURCES_RVL_ESP,
SOURCES_RVL_EUART,
SOURCES_RVL_EXI,
SOURCES_RVL_FS,
SOURCES_RVL_GX,
SOURCES_RVL_IPC,
SOURCES_RVL_KPAD,
SOURCES_RVL_MEM,
SOURCES_RVL_MTX,
SOURCES_RVL_NAND,
SOURCES_RVL_OS,
SOURCES_RVL_PAD,
SOURCES_RVL_SI,
SOURCES_RVL_TPL,
SOURCES_RVL_SO,
SOURCES_RVL_DWC,
SOURCES_SPY,
SOURCES_NW4R_MATH,
SOURCES_NW4R_G3D,
SOURCES_NW4R_LYT,
SOURCES_NW4R_SND,
SOURCES_NW4R_UT,
SOURCES_RFL,
SOURCES_EGG_CORE,
SOURCES_EGG_AUDIO,
SOURCES_EGG_MATH,
))
#
# StaticR.rel
#
SOURCES_REL = [
Source(src="source/game/ui/MessageGroup.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/ui/ControlGroup.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/ui/UIControl.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/ui/Page.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/ui/Section.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/ui/SectionAutogens.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/ui/SectionDirector.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/CourseCheckpoints.cpp", cc='4201_127', opts=REL_OPTS),
# Source(src="source/game/system/CourseMap.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/DvdArchive.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/GhostFile.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/KPadController.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/KPadDirector.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/Mii.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/LocalizedArchive.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/MultiDvdArchive.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/NandUtil.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/Rating.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/RaceConfig.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/RaceManager.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/ResourceManager.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/system/ResourceManagerUnk80542868.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/util/ModuleSymbols.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/util/Random.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartCollide.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartMove.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartObjectProxy.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartSettings.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartState.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartSus.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartWheelPhysics.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartPhysics.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/KartPhysicsInstance.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/kart/RKGeom.cpp", cc='4201_127', opts=REL_OPTS),
# Source(src="source/game/kart/KartDynamics.cpp", cc='4201_127', opts=REL_OPTS),
# Source(src="source/game/kart/KartHitbox.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjKoopaFigure64.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjKuribo.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjFloat.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjOilSFC.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/MapObjSniper.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjSound.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjSunDS.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjSunDSManager.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/ObjTaimatsu.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/BoxColManager.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/geo/BoxColUnit.cpp", cc='4201_127', opts=REL_OPTS),
Source(src="source/game/field/CourseModel.cpp", cc='4201_127', opts=REL_GEKKO_OPTS),
Source(src="source/game/field/CollisionEntries.cpp", cc='4201_127', opts=REL_GEKKO_OPTS),
Source(src="source/game/field/RKGndCol.cpp", cc='4201_127', opts=REL_GEKKO_OPTS),
Source(src="source/game/field/CourseColManager.cpp", cc='4201_127', opts=REL_GEKKO_OPTS),
Source(src="source/game/field/ObjColManager.cpp", cc='4201_127', opts=REL_GEKKO_OPTS),
Source(src="source/game/geo2/ObjDrivableManager.cpp", cc='4201_127', opts=REL_OPTS),
]