SConscript.game 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # -*- mode: python -*-
  2. # DOOM build script
  3. # TTimo <ttimo@idsoftware.com>
  4. # http://scons.sourceforge.net
  5. import sys, os
  6. import scons_utils
  7. Import( 'GLOBALS' )
  8. Import( GLOBALS )
  9. game_string = ' \
  10. AF.cpp \
  11. AFEntity.cpp \
  12. Actor.cpp \
  13. Camera.cpp \
  14. Entity.cpp \
  15. BrittleFracture.cpp \
  16. Fx.cpp \
  17. GameEdit.cpp \
  18. Game_local.cpp \
  19. Game_network.cpp \
  20. Item.cpp \
  21. IK.cpp \
  22. Light.cpp \
  23. Misc.cpp \
  24. Mover.cpp \
  25. Moveable.cpp \
  26. MultiplayerGame.cpp \
  27. Player.cpp \
  28. PlayerIcon.cpp \
  29. PlayerView.cpp \
  30. Projectile.cpp \
  31. Pvs.cpp \
  32. SecurityCamera.cpp \
  33. SmokeParticles.cpp \
  34. Sound.cpp \
  35. Target.cpp \
  36. Trigger.cpp \
  37. Weapon.cpp \
  38. WorldSpawn.cpp \
  39. ai/AAS.cpp \
  40. ai/AAS_debug.cpp \
  41. ai/AAS_pathing.cpp \
  42. ai/AAS_routing.cpp \
  43. ai/AI.cpp \
  44. ai/AI_events.cpp \
  45. ai/AI_pathing.cpp \
  46. ai/AI_Vagary.cpp \
  47. gamesys/DebugGraph.cpp \
  48. gamesys/Class.cpp \
  49. gamesys/Event.cpp \
  50. gamesys/SaveGame.cpp \
  51. gamesys/SysCmds.cpp \
  52. gamesys/SysCvar.cpp \
  53. gamesys/TypeInfo.cpp \
  54. anim/Anim.cpp \
  55. anim/Anim_Blend.cpp \
  56. anim/Anim_Import.cpp \
  57. anim/Anim_Testmodel.cpp \
  58. script/Script_Compiler.cpp \
  59. script/Script_Interpreter.cpp \
  60. script/Script_Program.cpp \
  61. script/Script_Thread.cpp \
  62. physics/Clip.cpp \
  63. physics/Force.cpp \
  64. physics/Force_Constant.cpp \
  65. physics/Force_Drag.cpp \
  66. physics/Force_Field.cpp \
  67. physics/Force_Spring.cpp \
  68. physics/Physics.cpp \
  69. physics/Physics_AF.cpp \
  70. physics/Physics_Actor.cpp \
  71. physics/Physics_Base.cpp \
  72. physics/Physics_Monster.cpp \
  73. physics/Physics_Parametric.cpp \
  74. physics/Physics_Player.cpp \
  75. physics/Physics_RigidBody.cpp \
  76. physics/Physics_Static.cpp \
  77. physics/Physics_StaticMulti.cpp \
  78. physics/Push.cpp'
  79. if ( local_d3xp ):
  80. game_string += ' \
  81. Grabber.cpp \
  82. physics/Force_Grab.cpp'
  83. game_list = scons_utils.BuildList( 'd3xp', game_string )
  84. else:
  85. game_list = scons_utils.BuildList( 'game', game_string )
  86. for i in range( len( game_list ) ):
  87. game_list[ i ] = '../../' + game_list[ i ]
  88. local_env = g_game_env.Clone()
  89. if ( local_d3xp ):
  90. local_env.Append( CPPDEFINES = [ '_D3XP', 'CTF' ] )
  91. if ( local_demo == 1 ):
  92. local_env.Append( CPPDEFINES = [ 'ID_DEMO_BUILD' ] )
  93. if ( local_gamedll == 1 ):
  94. local_env.Append( CPPDEFINES = [ 'GAME_DLL' ] )
  95. ret = local_env.SharedLibrarySafe( local_env, 'game', game_list + idlib_objects )
  96. Return( 'ret' )
  97. else:
  98. ret_list = []
  99. for i in game_list:
  100. ret_list += local_env.StaticObject( source = i )
  101. Return( 'ret_list' )