forked from DaemonEngine/Daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
src.cmake
368 lines (352 loc) · 13.3 KB
/
src.cmake
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
set(SHAREDLIST
${MOUNT_DIR}/shared/CommandBufferClient.cpp
${MOUNT_DIR}/shared/CommandBufferClient.h
${MOUNT_DIR}/shared/CommonProxies.cpp
${MOUNT_DIR}/shared/CommonProxies.h
${MOUNT_DIR}/shared/VMMain.cpp
${MOUNT_DIR}/shared/VMMain.h
PARENT_SCOPE
)
set(SHAREDLIST_cgame
${MOUNT_DIR}/shared/client/cg_api.cpp ${MOUNT_DIR}/shared/client/cg_api.h
PARENT_SCOPE
)
set(SHAREDLIST_sgame
${MOUNT_DIR}/shared/server/sg_api.cpp ${MOUNT_DIR}/shared/server/sg_api.h
PARENT_SCOPE
)
set(COMMONLIST
${COMMON_DIR}/Color.h
${COMMON_DIR}/Color.cpp
${COMMON_DIR}/Command.cpp
${COMMON_DIR}/Command.h
${COMMON_DIR}/Common.h
${COMMON_DIR}/Compiler.h
${COMMON_DIR}/Cvar.cpp
${COMMON_DIR}/Cvar.h
${COMMON_DIR}/Debugger.cpp
${COMMON_DIR}/Defs.h
${COMMON_DIR}/DisjointSets.h
${COMMON_DIR}/Endian.h
${COMMON_DIR}/FileSystem.cpp
${COMMON_DIR}/FileSystem.h
${COMMON_DIR}/IPC/Channel.h
${COMMON_DIR}/IPC/CommandBuffer.cpp
${COMMON_DIR}/IPC/CommandBuffer.h
${COMMON_DIR}/IPC/Common.h
${COMMON_DIR}/IPC/CommonSyscalls.h
${COMMON_DIR}/IPC/Primitives.cpp
${COMMON_DIR}/IPC/Primitives.h
${COMMON_DIR}/LineEditData.cpp
${COMMON_DIR}/LineEditData.h
${COMMON_DIR}/Log.cpp
${COMMON_DIR}/Log.h
${COMMON_DIR}/Math.h
${COMMON_DIR}/Optional.h
${COMMON_DIR}/Platform.h
${COMMON_DIR}/Serialize.h
${COMMON_DIR}/String.cpp
${COMMON_DIR}/String.h
${COMMON_DIR}/System.cpp
${COMMON_DIR}/System.h
${COMMON_DIR}/Util.h
${COMMON_DIR}/cm/cm_load.cpp
${COMMON_DIR}/cm/cm_local.h
${COMMON_DIR}/cm/cm_patch.cpp
${COMMON_DIR}/cm/cm_patch.h
${COMMON_DIR}/cm/cm_plane.cpp
${COMMON_DIR}/cm/cm_polylib.cpp
${COMMON_DIR}/cm/cm_polylib.h
${COMMON_DIR}/cm/cm_public.h
${COMMON_DIR}/cm/cm_test.cpp
${COMMON_DIR}/cm/cm_trace.cpp
${COMMON_DIR}/cm/cm_trisoup.cpp
${COMMON_DIR}/math/Vector.h
${ENGINE_DIR}/qcommon/logging.h
${ENGINE_DIR}/qcommon/q_math.cpp
${ENGINE_DIR}/qcommon/q_shared.cpp
${ENGINE_DIR}/qcommon/q_shared.h
${ENGINE_DIR}/qcommon/q_unicode.cpp
${ENGINE_DIR}/qcommon/q_unicode.h
${ENGINE_DIR}/qcommon/unicode_data.h
)
set(COMMONLIST ${COMMONLIST} PARENT_SCOPE)
set(RENDERERLIST
${ENGINE_DIR}/renderer/gl_shader.cpp
${ENGINE_DIR}/renderer/gl_shader.h
${ENGINE_DIR}/renderer/iqm.h
${ENGINE_DIR}/renderer/shaders.cpp
${ENGINE_DIR}/renderer/tr_animation.cpp
${ENGINE_DIR}/renderer/tr_backend.cpp
${ENGINE_DIR}/renderer/tr_bsp.cpp
${ENGINE_DIR}/renderer/tr_cmds.cpp
${ENGINE_DIR}/renderer/tr_curve.cpp
${ENGINE_DIR}/renderer/tr_decals.cpp
${ENGINE_DIR}/renderer/tr_fbo.cpp
${ENGINE_DIR}/renderer/tr_flares.cpp
${ENGINE_DIR}/renderer/tr_font.cpp
${ENGINE_DIR}/renderer/tr_image.cpp
${ENGINE_DIR}/renderer/tr_image.h
${ENGINE_DIR}/renderer/tr_image_crn.cpp
${ENGINE_DIR}/renderer/tr_image_dds.cpp
${ENGINE_DIR}/renderer/tr_image_exr.cpp
${ENGINE_DIR}/renderer/tr_image_jpg.cpp
${ENGINE_DIR}/renderer/tr_image_ktx.cpp
${ENGINE_DIR}/renderer/tr_image_png.cpp
${ENGINE_DIR}/renderer/tr_image_tga.cpp
${ENGINE_DIR}/renderer/tr_image_webp.cpp
${ENGINE_DIR}/renderer/tr_init.cpp
${ENGINE_DIR}/renderer/tr_light.cpp
${ENGINE_DIR}/renderer/tr_local.h
${ENGINE_DIR}/renderer/tr_main.cpp
${ENGINE_DIR}/renderer/tr_marks.cpp
${ENGINE_DIR}/renderer/tr_mesh.cpp
${ENGINE_DIR}/renderer/tr_model.cpp
${ENGINE_DIR}/renderer/tr_model_iqm.cpp
${ENGINE_DIR}/renderer/tr_model_md3.cpp
${ENGINE_DIR}/renderer/tr_model_md5.cpp
${ENGINE_DIR}/renderer/tr_model_skel.cpp
${ENGINE_DIR}/renderer/tr_model_skel.h
${ENGINE_DIR}/renderer/tr_noise.cpp
${ENGINE_DIR}/renderer/tr_public.h
${ENGINE_DIR}/renderer/tr_scene.cpp
${ENGINE_DIR}/renderer/tr_shade.cpp
${ENGINE_DIR}/renderer/tr_shader.cpp
${ENGINE_DIR}/renderer/tr_shade_calc.cpp
${ENGINE_DIR}/renderer/tr_skin.cpp
${ENGINE_DIR}/renderer/tr_sky.cpp
${ENGINE_DIR}/renderer/tr_surface.cpp
${ENGINE_DIR}/renderer/tr_types.h
${ENGINE_DIR}/renderer/tr_vbo.cpp
${ENGINE_DIR}/renderer/tr_world.cpp
${ENGINE_DIR}/sys/sdl_glimp.cpp
${ENGINE_DIR}/sys/sdl_icon.h
)
set(GLSLSOURCELIST
${ENGINE_DIR}/renderer/glsl_source/skybox_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/ssao_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/ssao_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexAnimation_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexLighting_DBS_entity_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexLighting_DBS_entity_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexLighting_DBS_world_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexLighting_DBS_world_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexSimple_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexSkinning_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/vertexSprite_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/volumetricFog_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/volumetricFog_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/blurX_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/blurX_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/blurY_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/blurY_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/cameraEffects_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/cameraEffects_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/contrast_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/contrast_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/debugShadowMap_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/debugShadowMap_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/deformVertexes_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/depthtile1_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/depthtile1_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/depthtile2_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/depthtile2_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/depthToColor_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/depthToColor_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/dispersion_C_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/dispersion_C_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/fogGlobal_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/fogGlobal_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/fogQuake3_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/fogQuake3_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/forwardLighting_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/forwardLighting_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/fxaa_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/fxaa_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/fxaa3_11_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/generic_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/generic_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/heatHaze_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/heatHaze_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/lightMapping_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/lightMapping_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/lighttile_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/lighttile_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/lightVolume_omni_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/lightVolume_omni_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/liquid_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/liquid_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/motionblur_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/motionblur_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/portal_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/portal_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/reflection_CB_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/reflection_CB_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/refraction_C_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/refraction_C_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/reliefMapping_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/screen_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/screen_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/shadowFill_fp.glsl
${ENGINE_DIR}/renderer/glsl_source/shadowFill_vp.glsl
${ENGINE_DIR}/renderer/glsl_source/skybox_fp.glsl
)
set(GLSLINCLUDELIST "")
foreach(res ${GLSLSOURCELIST})
set(in ${res})
set(working_dir ${ENGINE_DIR}/renderer/glsl)
get_filename_component(filename_no_ext ${in} NAME_WE)
set(outpath ${working_dir}/${filename_no_ext}.h)
list(APPEND GLSLINCLUDELIST ${outpath})
endforeach()
set(SERVERLIST
${ENGINE_DIR}/botlib/bot_api.h
${ENGINE_DIR}/botlib/bot_convert.cpp
${ENGINE_DIR}/botlib/bot_load.cpp
${ENGINE_DIR}/botlib/bot_local.cpp
${ENGINE_DIR}/botlib/bot_nav.cpp
${ENGINE_DIR}/botlib/bot_navdraw.h
${ENGINE_DIR}/botlib/bot_types.h
${ENGINE_DIR}/botlib/nav.h
${ENGINE_DIR}/server/server.h
${ENGINE_DIR}/server/sg_api.h
${ENGINE_DIR}/server/sg_msgdef.h
${ENGINE_DIR}/server/sv_bot.cpp
${ENGINE_DIR}/server/sv_ccmds.cpp
${ENGINE_DIR}/server/sv_client.cpp
${ENGINE_DIR}/server/sv_init.cpp
${ENGINE_DIR}/server/sv_main.cpp
${ENGINE_DIR}/server/sv_net_chan.cpp
${ENGINE_DIR}/server/sv_sgame.cpp
${ENGINE_DIR}/server/sv_snapshot.cpp
${ENGINE_DIR}/server/CryptoChallenge.cpp
${ENGINE_DIR}/server/CryptoChallenge.h
)
set(ENGINELIST
${ENGINE_DIR}/framework/Application.cpp
${ENGINE_DIR}/framework/BaseCommands.cpp
${ENGINE_DIR}/framework/BaseCommands.h
${ENGINE_DIR}/framework/CommandBufferHost.cpp
${ENGINE_DIR}/framework/CommandBufferHost.h
${ENGINE_DIR}/framework/CommandSystem.cpp
${ENGINE_DIR}/framework/CommandSystem.h
${ENGINE_DIR}/framework/CommonVMServices.cpp
${ENGINE_DIR}/framework/CommonVMServices.h
${ENGINE_DIR}/framework/ConsoleField.cpp
${ENGINE_DIR}/framework/ConsoleField.h
${ENGINE_DIR}/framework/ConsoleHistory.cpp
${ENGINE_DIR}/framework/ConsoleHistory.h
${ENGINE_DIR}/framework/CrashDump.h
${ENGINE_DIR}/framework/CrashDump.cpp
${ENGINE_DIR}/framework/CvarSystem.cpp
${ENGINE_DIR}/framework/CvarSystem.h
${ENGINE_DIR}/framework/LogSystem.cpp
${ENGINE_DIR}/framework/LogSystem.h
${ENGINE_DIR}/framework/Resource.cpp
${ENGINE_DIR}/framework/Resource.h
${ENGINE_DIR}/framework/System.cpp
${ENGINE_DIR}/framework/System.h
${ENGINE_DIR}/framework/VirtualMachine.cpp
${ENGINE_DIR}/framework/VirtualMachine.h
${ENGINE_DIR}/framework/Crypto.cpp
${ENGINE_DIR}/framework/Crypto.h
${ENGINE_DIR}/framework/Rcon.cpp
${ENGINE_DIR}/framework/Rcon.h
${ENGINE_DIR}/framework/Network.h
${ENGINE_DIR}/framework/Network.cpp
${ENGINE_DIR}/qcommon/md5.cpp
${ENGINE_DIR}/sys/con_common.h
${ENGINE_DIR}/sys/con_common.cpp
${ENGINE_DIR}/sys/con_log.cpp
)
if (WIN32)
set(ENGINELIST ${ENGINELIST}
${ENGINE_DIR}/sys/con_passive.cpp
)
else()
set(ENGINELIST ${ENGINELIST}
${ENGINE_DIR}/sys/con_tty.cpp
)
endif()
set(QCOMMONLIST
${ENGINE_DIR}/qcommon/cmd.cpp
${ENGINE_DIR}/qcommon/common.cpp
${ENGINE_DIR}/qcommon/crypto.cpp
${ENGINE_DIR}/qcommon/crypto.h
${ENGINE_DIR}/qcommon/cvar.cpp
${ENGINE_DIR}/qcommon/cvar.h
${ENGINE_DIR}/qcommon/files.cpp
${ENGINE_DIR}/qcommon/huffman.cpp
${ENGINE_DIR}/qcommon/msg.cpp
${ENGINE_DIR}/qcommon/net_chan.cpp
${ENGINE_DIR}/qcommon/net_ip.cpp
${ENGINE_DIR}/qcommon/parse.cpp
${ENGINE_DIR}/qcommon/print_translated.h
${ENGINE_DIR}/qcommon/qcommon.h
${ENGINE_DIR}/qcommon/qfiles.h
${ENGINE_DIR}/qcommon/surfaceflags.h
${ENGINE_DIR}/qcommon/translation.cpp
${ENGINE_DIR}/sys/con_log.cpp
${ENGINE_DIR}/sys/con_common.h
${ENGINE_DIR}/sys/con_common.cpp
)
if (USE_CURSES)
set(ENGINELIST ${ENGINELIST}
${ENGINE_DIR}/sys/con_curses.cpp
)
endif()
set(CLIENTBASELIST
${ENGINE_DIR}/botlib/bot_debug.cpp
${ENGINE_DIR}/botlib/bot_nav_edit.cpp
${ENGINE_DIR}/client/cg_api.h
${ENGINE_DIR}/client/cg_msgdef.h
${ENGINE_DIR}/client/cin_ogm.cpp
${ENGINE_DIR}/client/client.h
${ENGINE_DIR}/client/cl_avi.cpp
${ENGINE_DIR}/client/cl_cgame.cpp
${ENGINE_DIR}/client/cl_cin.cpp
${ENGINE_DIR}/client/cl_console.cpp
${ENGINE_DIR}/client/cl_input.cpp
${ENGINE_DIR}/client/cl_irc.cpp
${ENGINE_DIR}/client/cl_keys.cpp
${ENGINE_DIR}/client/cl_main.cpp
${ENGINE_DIR}/client/cl_parse.cpp
${ENGINE_DIR}/client/cl_scrn.cpp
${ENGINE_DIR}/client/dl_main.cpp
${ENGINE_DIR}/client/keycodes.h
${ENGINE_DIR}/client/keys.h
${ENGINE_DIR}/client/ClientApplication.cpp
)
set(CLIENTLIST
${ENGINE_DIR}/audio/ALObjects.cpp
${ENGINE_DIR}/audio/ALObjects.h
${ENGINE_DIR}/audio/Audio.cpp
${ENGINE_DIR}/audio/Audio.h
${ENGINE_DIR}/audio/AudioData.h
${ENGINE_DIR}/audio/AudioPrivate.h
${ENGINE_DIR}/audio/Emitter.cpp
${ENGINE_DIR}/audio/Emitter.h
${ENGINE_DIR}/audio/OggCodec.cpp
${ENGINE_DIR}/audio/OpusCodec.cpp
${ENGINE_DIR}/audio/Sample.cpp
${ENGINE_DIR}/audio/Sample.h
${ENGINE_DIR}/audio/Sound.cpp
${ENGINE_DIR}/audio/Sound.h
${ENGINE_DIR}/audio/SoundCodec.cpp
${ENGINE_DIR}/audio/SoundCodec.h
${ENGINE_DIR}/audio/WavCodec.cpp
${ENGINE_DIR}/sys/sdl_input.cpp
${RENDERERLIST}
${GLSLINCLUDELIST}
)
set(TTYCLIENTLIST
${ENGINE_DIR}/null/NullAudio.cpp
${ENGINE_DIR}/null/null_input.cpp
${ENGINE_DIR}/null/null_renderer.cpp
)
set(DEDSERVERLIST
${ENGINE_DIR}/null/null_client.cpp
${ENGINE_DIR}/null/null_input.cpp
${ENGINE_DIR}/server/ServerApplication.cpp
)
set(WIN_RC ${ENGINE_DIR}/sys/daemon.rc)