Removed that logo from this bramch aswell..
[dbw.git] / src / wscript
blob803c9a7e3c01ff1b9b819a54fe9ae7a4df2d3b74
1 #! /usr/bin/env python
2 # encoding: utf-8
3 # Copyright © 2007-2008 Kővágó Zoltán <DirtY.iCE.hu@gmail.com>
4 # Released under GNU GPL
6 blobobjects = [
7 "aquaBoss.cpp",
8 "bosses.cpp",
9 "bullets.cpp",
10 "CAudio.cpp",
11 "CBoss.cpp",
12 "CCollision.cpp",
13 "CData.cpp",
14 "CEffect.cpp",
15 "CEngine.cpp",
16 "CEntity.cpp",
17 "CGame.cpp",
18 "CGameData.cpp",
19 "CGameObject.cpp",
20 "CGraphics.cpp",
21 "CHub.cpp",
22 "CJoystick.cpp",
23 "CKeyboard.cpp",
24 "CLineDef.cpp",
25 "CList.cpp",
26 "CMap.cpp",
27 "CMath.cpp",
28 "CObjective.cpp",
29 "CParticle.cpp",
30 "CPersistant.cpp",
31 "CPersistData.cpp",
32 "CRadarBlip.cpp",
33 "CTeleporter.cpp",
34 "CTrain.cpp",
35 "CTrap.cpp",
36 "cutscene.cpp",
37 "CWeapon.cpp",
38 "CWidget.cpp",
39 "CSpawnPoint.cpp",
40 "CSprite.cpp",
41 "CSwitch.cpp",
42 "droidBoss.cpp",
43 "effects.cpp",
44 "enemies.cpp",
45 "entities.cpp",
46 "explosions.cpp",
47 "finalBattle.cpp",
48 "galdov.cpp",
49 "game.cpp",
50 "graphics.cpp",
51 "hub.cpp",
52 "info.cpp",
53 "init.cpp",
54 "intro.cpp",
55 "items.cpp",
56 "lineDefs.cpp",
57 "loadSave.cpp",
58 "map.cpp",
59 "mapData.cpp",
60 "mias.cpp",
61 "mission.cpp",
62 "objectives.cpp",
63 "obstacles.cpp",
64 "options.cpp",
65 "particles.cpp",
66 "player.cpp",
67 "resources.cpp",
68 "spawnPoints.cpp",
69 "switches.cpp",
70 "tankBoss.cpp",
71 "teleporters.cpp",
72 "title.cpp",
73 "trains.cpp",
74 "traps.cpp",
75 "triggers.cpp",
76 "weapons.cpp",
77 "widgets.cpp",
80 dirs = 'babyxml console font lisp physfs protectstr screens tinygettext video'
81 # prefix them to prevent collision with system libraries
82 # (especially for physfs)
83 uselibs = 'dbw_console dbw_fontengine dbw_lisp dbw_physfs dbw_protectstr dbw_screens dbw_tinygettext dbw_video dbw_babyxml'
85 def build(bld):
86 import Params
87 env = bld.env_of_name("default")
89 bld.add_subdirs(dirs)
91 # the base of the game
92 obj = bld.create_obj('cpp', 'staticlib')
93 obj.source = blobobjects
94 obj.includes = '. ' + dirs
95 obj.target = 'dbw_gamebase'
96 obj.name = 'dbw_gamebase'
97 obj.uselib = 'SDL'
99 # the game
100 obj = bld.create_obj('cpp', 'program')
101 obj.source = ['main.cpp']
102 obj.includes = '. ' + dirs
103 obj.target = 'dirtyblobwars'
104 obj.uselib = 'SDL SDL_IMAGE SDL_MIXER SDL_TTF PHYSFS ICONV'
105 obj.uselib_local = 'dbw_gamebase ' + uselibs
107 # level editor
108 if env['MAPEDIT']:
109 obj = bld.create_obj('cpp', 'program')
110 obj.source = ['mapEditor.cpp']
111 obj.includes = '. ' + dirs
112 obj.target = 'dirtyblobwars-mapeditor'
113 obj.uselib = 'SDL SDL_IMAGE SDL_MIXER SDL_TTF PHYSFS ICONV'
114 obj.uselib_local = 'dbw_gamebase ' + uselibs
116 pass
118 def set_options(opt):
119 pass
121 def configure(conf):
122 pass