blob: ba87eff652354b7a1e522f6b47077dc121b59d03 (
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', 'QtSql'], debug = False)
env.Uic4(Glob('gui/*.ui'))
env.Program('ongaku', Glob('*.cpp') + Glob('gui/*.cpp'))
# vim: syn=python
|