Debian Codegraph @

editor/CMakeLists.txt

raw
1 set(HEADERS
2 ../descent3/aiambient.h
3 ../descent3/AIGoal.h
4 ../descent3/AIMain.h
5 ../descent3/aipath.h
6 ../descent3/aistruct.h
7 ../descent3/aistruct_external.h
8 ../descent3/aiterrain.h
9 ../descent3/ambient.h
10 ../descent3/args.h
11 ../descent3/attach.h
12 ../descent3/audiotaunts.h
13 ../descent3/bnode.h
14 ../descent3/BOA.h
15 ../descent3/Briefing.h
16 ../descent3/BriefingParse.h
17 ../descent3/bsp.h
18 ../descent3/buddymenu.h
19 ../descent3/cinematics.h
20 ../descent3/cockpit.h
21 ../descent3/config.h
22 ../descent3/ConfigItem.h
23 ../descent3/controls.h
24 ../descent3/credits.h
25 ../descent3/CtlCfgElem.h
26 ../descent3/ctlconfig.h
27 ../descent3/ctlconfigtxt.h
28 ../descent3/D3ForceFeedback.h
29 ../descent3/d3serial.h
30 ../descent3/damage.h
31 ../descent3/damage_external.h
32 ../descent3/DeathInfo.h
33 ../descent3/deathinfo_external.h
34 ../descent3/debuggraph.h
35 ../descent3/descent.h
36 ../descent3/difficulty.h
37 ../descent3/difficulty_external.h
38 ../descent3/DllWrappers.h
39 ../descent3/door.h
40 ../descent3/doorway.h
41 ../descent3/fireball.h
42 ../descent3/fireball_external.h
43 ../descent3/game.h
44 ../descent3/gamecinematics.h
45 ../descent3/gamecinematics_external.h
46 ../descent3/gameevent.h
47 ../descent3/gamefile.h
48 ../descent3/gamefont.h
49 ../descent3/gameloop.h
50 ../descent3/gamepath.h
51 ../descent3/gamesave.h
52 ../descent3/gamesequence.h
53 ../descent3/gametexture.h
54 ../descent3/gauges.h
55 ../descent3/help.h
56 ../descent3/hotspotmap.h
57 ../descent3/hud.h
58 ../descent3/init.h
59 ../descent3/Inventory.h
60 ../descent3/levelgoal.h
61 ../descent3/levelgoal_external.h
62 ../descent3/lighting.h
63 ../descent3/lightmap_info.h
64 ../descent3/list.h
65 ../descent3/LoadLevel.h
66 ../descent3/localization.h
67 ../descent3/marker.h
68 ../descent3/matcen.h
69 ../descent3/matcen_external.h
70 ../descent3/menu.h
71 ../descent3/Mission.h
72 ../descent3/mission_download.h
73 ../descent3/mmItem.h
74 ../descent3/multi.h
75 ../descent3/multisafe.h
76 ../descent3/multi_client.h
77 ../descent3/multi_dll_mgr.h
78 ../descent3/multi_external.h
79 ../descent3/multi_save_settings.h
80 ../descent3/multi_server.h
81 ../descent3/multi_ui.h
82 ../descent3/multi_world_state.h
83 ../descent3/NewPyroGauges.h
84 ../descent3/newui.h
85 ../descent3/newui_core.h
86 ../descent3/object.h
87 ../descent3/object_external.h
88 ../descent3/object_lighting.h
89 ../descent3/objinfo.h
90 ../descent3/objinit.h
91 ../descent3/ObjScript.h
92 ../descent3/osiris_dll.h
93 ../descent3/osiris_predefs.h
94 ../descent3/osiris_share.h
95 ../descent3/pilot.h
96 ../descent3/PilotPicsAPI.h
97 ../descent3/pilot_class.h
98 ../descent3/player.h
99 ../descent3/player_external.h
100 ../descent3/player_external_struct.h
101 ../descent3/postrender.h
102 ../descent3/powerup.h
103 ../descent3/procedurals.h
104 ../descent3/program.h
105 ../descent3/render.h
106 ../descent3/renderobject.h
107 ../descent3/resource.h
108 ../descent3/robot.h
109 ../descent3/robotfire.h
110 ../descent3/room.h
111 ../descent3/room_external.h
112 ../descent3/scorch.h
113 ../descent3/screens.h
114 ../descent3/ship.h
115 ../descent3/slew.h
116 ../descent3/SmallViews.h
117 ../descent3/soar.h
118 ../descent3/soar_helpers.h
119 ../descent3/sounds.h
120 ../descent3/special_face.h
121 ../descent3/spew.h
122 ../descent3/splinter.h
123 ../descent3/stringtable.h
124 ../descent3/subtitles.h
125 ../descent3/TelCom.h
126 ../descent3/TelComAutoMap.h
127 ../descent3/TelComCargo.h
128 ../descent3/TelComEffects.h
129 ../descent3/TelComEfxStructs.h
130 ../descent3/TelComGoals.h
131 ../descent3/terrain.h
132 ../descent3/trigger.h
133 ../descent3/vclip.h
134 ../descent3/viseffect.h
135 ../descent3/viseffect_external.h
136 ../descent3/voice.h
137 ../descent3/weapon.h
138 ../descent3/weapon_external.h
139 ../descent3/weather.h
140 AddScriptDialog.h
141 AISettingsDlg.h
142 AmbientSoundElement.h
143 AmbientSoundPattern.h
144 AnimStatesDialog.h
145 BriefBitmapEdit.h
146 BriefButtonEdit.h
147 BriefEdit.h
148 BriefManage.h
149 BriefMissionFlagsDlg.h
150 BriefMovieEdit.h
151 BriefScreenEdit.h
152 BriefSoundEdit.h
153 BriefTextEdit.h
154 CreateNewScriptDlg.h
155 CustDefaultScriptSelect.h
156 CustomObjectDialog.h
157 d3edit.h
158 D3Splash.h
159 D3XStringEditor.h
160 DallasFlagDlg.h
161 DallasGenericPromptDlg.h
162 DallasImportDlg.h
163 DallasMainDlg.h
164 DallasSoundDlg.h
165 DallasStrmAudioDlg.h
166 DallasTextureDlg.h
167 DallasUserTypesDlg.h
168 DallasUtilities.h
169 DallasVectorPromptDialog.h
170 DeathDialog.h
171 DoorwayDialog.h
172 drawworld.h
173 ebnode.h
174 EditLineDialog.h
175 editor.h
176 editorDoc.h
177 editorView.h
178 editor_lighting.h
179 edoors.h
180 EPath.h
181 Erooms.h
182 FilePageAddDlg.h
183 FilePageDialog.h
184 FloatingKeypadDialog.h
185 GenericDeathDialog.h
186 GenericLightDialog.h
187 GrFontDialog.h
188 GrListBox.h
189 group.h
190 GrWnd.h
191 hemicube.h
192 HFile.h
193 HObject.h
194 HogDialog.h
195 HRoom.h
196 HTexture.h
197 HView.h
198 IpFrame.h
199 KeypadDialog.h
200 LevelDialog.h
201 LevelInfoDialog.h
202 levelkeypad.h
203 LightingDialog.h
204 LightingStatus.h
205 MainFrm.h
206 ManageCheckin.h
207 matcenkeypad.h
208 MegacellDialog.h
209 MegacellKeypad.h
210 mfc_compatibility.h
211 moveworld.h
212 ObjCScript.h
213 ObjectClipboard.h
214 ObjectDialog.h
215 ObjectListCombo.h
216 ObjectListDialog.h
217 ObjectPropertiesDialog.h
218 ObjMoveManager.h
219 OrphanRemoveDlg.h
220 OsirisStatusDlg.h
221 PathPadDialog.h
222 PhysicsDlg.h
223 PictListBox.h
224 PlayerWeaponsDialog.h
225 PowerupPropDialog.h
226 PreferencesDialog.h
227 ProceduralDialog.h
228 ProgressWnd.h
229 PropertyAIDlg.h
230 PropertyPhysicsDlg.h
231 QuickCompile.h
232 radiosity.h
233 radscan_leftedge.h
234 radscan_rightedge.h
235 rad_cast.h
236 read3ds.h
237 resource.h
238 RobotEditWeaponsDialog.h
239 roomkeypaddialog.h
240 RoomListCombo.h
241 RoomUVs.h
242 rotateroom.h
243 ScriptCompilerAPI.h
244 ScriptEditorDlg.h
245 ScriptLevelInterface.h
246 ScriptMassCompile.h
247 ScriptParmDialog.h
248 ScriptSelect.h
249 ScriptStudio.h
250 ScriptSyncDialog.h
251 ScriptWizard.h
252 selectedroom.h
253 SelectRangeDialog.h
254 SelManager.h
255 SoundListCombo.h
256 SoundSourceDialog.h
257 SrvrItem.h
258 StatusDlg.h
259 StdAfx.h
260 TableFileEdit.h
261 TableFileFilter.h
262 TableFileFilterAddDlg.h
263 TableFileFilterMng.h
264 TableManage.h
265 TerrainDialog.h
266 TerrainSoundDialog.h
267 TextureDialog.h
268 TextureGrWnd.h
269 TriggerDialog.h
270 TriggerListCombo.h
271 ViewerPropDlg.h
272 VirtualCompilerConfig.h
273 WaterProceduralDialog.h
274 WireframeGrWnd.h
275 WorldObjectsDoorDialog.h
276 WorldObjectsGenericDialog.h
277 WorldObjectsLightDialog.h
278 WorldObjectsPlayerDialog.h
279 WorldObjectsPowerupDialog.h
280 WorldObjectsRobotDialog.h
281 WorldSoundsDialog.h
282 WorldTexturesDialog.h
283 WorldWeaponsDialog.h
284 d3x.h
285 )
286
287 set(SOURCE
288 ../descent3/aiambient.cpp
289 ../descent3/AIGoal.cpp
290 ../descent3/AImain.cpp
291 ../descent3/aipath.cpp
292 ../descent3/aiterrain.cpp
293 ../descent3/ambient.cpp
294 ../descent3/args.cpp
295 ../descent3/attach.cpp
296 ../descent3/audiotaunts.cpp
297 ../descent3/bnode.cpp
298 ../descent3/BOA.cpp
299 ../descent3/Briefing.cpp
300 ../descent3/BriefingParse.cpp
301 ../descent3/bsp.cpp
302 ../descent3/buddymenu.cpp
303 ../descent3/cinematics.cpp
304 ../descent3/cockpit.cpp
305 ../descent3/config.cpp
306 ../descent3/ConfigItem.cpp
307 ../descent3/Controls.cpp
308 ../descent3/credits.cpp
309 ../descent3/CtlCfgElem.cpp
310 ../descent3/ctlconfig.cpp
311 ../descent3/D3ForceFeedback.cpp
312 ../Descent3/d3movie.cpp
313 ../Descent3/d3music.cpp
314 ../descent3/d3serial.cpp
315 ../descent3/damage.cpp
316 ../descent3/debuggraph.cpp
317 ../descent3/dedicated_server.cpp
318 ../descent3/demofile.cpp
319 ../descent3/descent.cpp
320 ../descent3/difficulty.cpp
321 ../descent3/DllWrappers.cpp
322 ../descent3/door.cpp
323 ../descent3/doorway.cpp
324 ../descent3/fireball.cpp
325 ../descent3/game.cpp
326 ../descent3/Game2DLL.cpp
327 ../descent3/GameCheat.cpp
328 ../descent3/gamecinematics.cpp
329 ../descent3/gameevent.cpp
330 ../descent3/gamefile.cpp
331 ../descent3/gamefont.cpp
332 ../descent3/GameLoop.cpp
333 ../descent3/gamepath.cpp
334 ../descent3/gamesave.cpp
335 ../descent3/gamesequence.cpp
336 ../descent3/gametexture.cpp
337 ../descent3/gauges.cpp
338 ../descent3/help.cpp
339 ../descent3/hotspotmap.cpp
340 ../descent3/hud.cpp
341 ../descent3/huddisplay.cpp
342 ../descent3/hudmessage.cpp
343 ../descent3/init.cpp
344 ../descent3/Inventory.cpp
345 ../descent3/levelgoal.cpp
346 ../descent3/lighting.cpp
347 ../descent3/lightmap_info.cpp
348 ../descent3/list.cpp
349 ../descent3/LoadLevel.cpp
350 ../descent3/loadstate.cpp
351 ../descent3/localization.cpp
352 ../descent3/marker.cpp
353 ../descent3/matcen.cpp
354 ../descent3/megacell.cpp
355 ../descent3/menu.cpp
356 ../descent3/Mission.cpp
357 ../descent3/mission_download.cpp
358 ../descent3/mmItem.cpp
359 ../descent3/multi.cpp
360 ../descent3/multisafe.cpp
361 ../descent3/multisafe_server.cpp
362 ../descent3/multi_client.cpp
363 ../descent3/multi_connect.cpp
364 ../descent3/multi_dll_mgr.cpp
365 ../descent3/multi_save_setting.cpp
366 ../descent3/multi_server.cpp
367 ../descent3/multi_ui.cpp
368 ../descent3/NewPyroGauges.cpp
369 ../descent3/newui.cpp
370 ../descent3/newui_core.cpp
371 ../descent3/newui_filedlg.cpp
372 ../descent3/object.cpp
373 ../descent3/object_lighting.cpp
374 ../descent3/objinfo.cpp
375 ../descent3/ObjInit.cpp
376 ../descent3/ObjScript.cpp
377 ../descent3/OsirisLoadandBind.cpp
378 ../descent3/osiris_predefs.cpp
379 ../descent3/pilot.cpp
380 ../descent3/PilotPicsAPI.cpp
381 ../descent3/pilot_class.cpp
382 ../descent3/Player.cpp
383 ../descent3/postrender.cpp
384 ../descent3/procedurals.cpp
385 ../descent3/program.cpp
386 ../descent3/render.cpp
387 ../descent3/renderobject.cpp
388 ../descent3/robotfire.cpp
389 ../descent3/room.cpp
390 ../descent3/scorch.cpp
391 ../descent3/screens.cpp
392 ../descent3/ship.cpp
393 ../descent3/SLEW.cpp
394 ../descent3/SmallViews.cpp
395 ../descent3/soar.cpp
396 ../descent3/soar_helpers.cpp
397 ../descent3/special_face.cpp
398 ../descent3/spew.cpp
399 ../descent3/splinter.cpp
400 ../descent3/subtitles.cpp
401 ../descent3/TelCom.cpp
402 ../descent3/TelComAutoMap.cpp
403 ../descent3/TelComCargo.cpp
404 ../descent3/TelComEffects.cpp
405 ../descent3/TelcomEffectsRender.cpp
406 ../descent3/TelComGoals.cpp
407 ../descent3/terrain.cpp
408 ../descent3/terrainrender.cpp
409 ../descent3/TerrainSearch.cpp
410 ../descent3/trigger.cpp
411 ../descent3/vclip.cpp
412 ../descent3/viseffect.cpp
413 ../descent3/voice.cpp
414 ../descent3/weapon.cpp
415 ../descent3/WeaponFire.cpp
416 ../descent3/weather.cpp
417 AddScriptDialog.cpp
418 AISettingsDlg.cpp
419 AmbientSoundElement.cpp
420 AmbientSoundPattern.cpp
421 AnimStatesDialog.cpp
422 BriefBitmapEdit.cpp
423 BriefButtonEdit.cpp
424 BriefEdit.cpp
425 BriefManage.cpp
426 BriefMissionFlagsDlg.cpp
427 BriefMovieEdit.cpp
428 BriefScreenEdit.cpp
429 BriefSoundEdit.cpp
430 BriefTextEdit.cpp
431 christest.cpp
432 CreateNewScriptDlg.cpp
433 CustDefaultScriptSelect.cpp
434 CustomObjectDialog.cpp
435 D3Splash.cpp
436 D3XStringEditor.cpp
437 DallasFlagDlg.cpp
438 DallasGenericPromptDlg.cpp
439 DallasImportDlg.cpp
440 DallasMainDlg.cpp
441 DallasSoundDlg.cpp
442 DallasStrmAudioDlg.cpp
443 DallasTextureDlg.cpp
444 DallasUserTypesDlg.cpp
445 DallasUtilities.cpp
446 DallasVectorPromptDialog.cpp
447 DeathDialog.cpp
448 DoorwayDialog.cpp
449 drawworld.cpp
450 ebnode.cpp
451 EditLineDialog.cpp
452 editor.cpp
453 editorDoc.cpp
454 editorView.cpp
455 editor_lighting.cpp
456 editor_object_lighting.cpp
457 edoors.cpp
458 EDVARS.cpp
459 EPath.cpp
460 Erooms.cpp
461 FilePageAddDlg.cpp
462 FilePageDialog.cpp
463 FloatingKeypadDialog.cpp
464 gameeditor.cpp
465 GenericDeathDialog.cpp
466 GenericLightDialog.cpp
467 GrFontDialog.cpp
468 GrListBox.cpp
469 Group.cpp
470 GrWnd.cpp
471 HFile.cpp
472 HObject.cpp
473 HogDialog.cpp
474 HRoom.cpp
475 HTexture.cpp
476 HView.cpp
477 IpFrame.cpp
478 KeypadDialog.cpp
479 LevelDialog.cpp
480 LevelInfoDialog.cpp
481 levelkeypad.cpp
482 LightingDialog.cpp
483 LightingStatus.cpp
484 MainFrm.cpp
485 ManageCheckin.cpp
486 matcenkeypad.cpp
487 MegacellDialog.cpp
488 MegacellKeypad.cpp
489 moveworld.cpp
490 ObjCScript.cpp
491 ObjectClipboard.cpp
492 ObjectDialog.cpp
493 ObjectListCombo.cpp
494 ObjectListDialog.cpp
495 ObjectPropertiesDialog.cpp
496 ObjMoveManager.cpp
497 OrphanRemoveDlg.cpp
498 OsirisStatusDlg.cpp
499 PathPadDialog.cpp
500 PhysicsDlg.cpp
501 PictListBox.cpp
502 PlayerWeaponsDialog.cpp
503 PowerupPropDialog.cpp
504 PreferencesDialog.cpp
505 ProceduralDialog.cpp
506 ProgressWnd.cpp
507 PropertyAIDlg.cpp
508 PropertyPhysicsDlg.cpp
509 QuickCompile.cpp
510 rad_cast.cpp
511 rad_init.cpp
512 rad_hemicube.cpp
513 Read3ds.cpp
514 RobotEditWeaponsDialog.cpp
515 roomkeypaddialog.cpp
516 RoomListCombo.cpp
517 RoomUVs.cpp
518 rotateroom.cpp
519 ScriptCompilerAPI.cpp
520 ScriptEditorDlg.cpp
521 ScriptLevelInterface.cpp
522 ScriptMassCompile.cpp
523 ScriptParmDialog.cpp
524 ScriptSelect.cpp
525 ScriptStudio.cpp
526 ScriptSyncDialog.cpp
527 ScriptWizard.cpp
528 selectedroom.cpp
529 SelectRangeDialog.cpp
530 SelManager.cpp
531 SoundListCombo.cpp
532 SoundSourceDialog.cpp
533 SrvrItem.cpp
534 StatusDlg.cpp
535 StdAfx.cpp
536 TableFileEdit.cpp
537 TableFileFilter.cpp
538 TableFileFilterAddDlg.cpp
539 TableFileFilterMng.cpp
540 TableManage.cpp
541 TerrainDialog.cpp
542 TerrainSoundDialog.cpp
543 TextureDialog.cpp
544 TextureGrWnd.cpp
545 TriggerDialog.cpp
546 TriggerListCombo.cpp
547 ViewerPropDlg.cpp
548 VirtualCompilerConfig.cpp
549 WaterProceduralDialog.cpp
550 WireframeGrWnd.cpp
551 WorldObjectsDoorDialog.cpp
552 WorldObjectsGenericDialog.cpp
553 WorldObjectsLightDialog.cpp
554 WorldObjectsPlayerDialog.cpp
555 WorldObjectsPowerupDialog.cpp
556 WorldObjectsRobotDialog.cpp
557 WorldSoundsDialog.cpp
558 WorldTexturesDialog.cpp
559 WorldWeaponsDialog.cpp
560 editor.rc
561 ../Descent3/sdlmain.cpp
562 )
563
564 # Editor only works in Windows, because of MFC and DirectX dependencies
565 set(PLATFORM_LIBS linux wsock32.lib winmm.lib dd_grwin32 win32 SDL2::SDL2)
566 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:LIBC")
567
568 add_executable(Descent3Editor WIN32 ${HEADERS} ${SOURCE})
569
570 target_include_directories(Descent3Editor PRIVATE ../lib ../ ../manage/ ${PROJECT_BINARY_DIR}/lib)
571 target_compile_definitions(Descent3Editor PUBLIC _AFXDLL EDITOR)
572 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_STANDARD} /Zc:forScope-")
573
574 target_link_libraries(Descent3Editor PRIVATE
575 2dlib AudioEncode bitmap cfile dd_video ddebug ddio libmve libacm
576 fix grtext manage mem misc model module stream_audio
577 music networking physics renderer rtperformance sndlib ui unzip vecmat md5
578 ${PLATFORM_LIBS})
579 target_link_options(Descent3Editor PRIVATE $<$<PLATFORM_ID:Windows>:/DEBUG:FULL>)
580
581 add_dependencies(Descent3Editor get_git_hash)
582
583 # FIXME: enable installation again when the editor is stable/usable
584 # install(TARGETS Descent3Editor RUNTIME)
585 # if(MSVC)
586 # install(FILES $<TARGET_PDB_FILE:Descent3Editor> DESTINATION ${CMAKE_INSTALL_BINDIR})
587 # endif()
588