File: SConstruct

package info (click to toggle)
balder2d 1.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 12,552 kB
  • ctags: 1,226
  • sloc: cpp: 8,623; xml: 398; python: 364; ansic: 214; makefile: 79; sh: 9
file content (18 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SConstruct for building balder2d with scons
includepath = ['/usr/include/python2.4','include']
env = Environment(CPPPATH=includepath)
#avoid leaving .sconsign files all over the place, put all signatures in:
env.SConsignFile("scons-signatures")

debug = ARGUMENTS.get('debug', 0)
if int(debug):
    env.Append(CCFLAGS = '-g')

import glob
files = glob.glob("src/*.cpp") + glob.glob("src/*/*.cpp") + glob.glob("src/menu/*/*.cpp")+ glob.glob("src/*/*.c")
libs = Split('guichan_sdl guichan SDL_image SDL_mixer SDL_gfx python2.4 physfs')

env.ParseConfig('sdl-config --cflags --libs')
env.Program('bin/balder2d',files, LIBS=libs)

SConscript('bin/scripts/test/SConscript')