summaryrefslogtreecommitdiff
path: root/SConstruct
blob: f05633e0ac55cc87434bead6ce55315afb5dea04 (plain)
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
import os

env = Environment(
	ENV = os.environ,
)

env.Tool('qt4', toolpath = '.')

AddOption('--release', action = 'store_true')
AddOption('--profiling', action = 'store_true')

if env['PLATFORM'] == 'darwin':
	env.Append(CPPFLAGS = '-m32')
	env.Append(LINKFLAGS = '-m32')
	env.Append(FRAMEWORKS = ['phonon'])
else:
	#env.Append(CPPPATH = [])
	env.Append(LIBS = ['phonon'])

if not GetOption('release'):
	env.Append(CPPFLAGS = ['-Wall', '-g'])

if GetOption('profiling'):
	env.Append(CPPFLAGS = ['-pg'])
	env.Append(LINKFLAGS = ['-pg'])

Export('env')

env.EnableQt4Modules(['QtCore', 'QtGui'], debug = False)

env.Uic4(Glob('gui/*.ui'))

env.Program('ongaku', Glob('*.cpp') + Glob('gui/*.cpp'))

# vim: syn=python