Move things round a bit.
[dcpomatic.git] / src / tools / wscript
1 def build(bld):
2     for t in ['makedcp', 'servomatic', 'servomatictest', 'fixlengths']:
3         obj = bld(features = 'cxx cxxprogram')
4         obj.uselib = 'BOOST_THREAD'
5         obj.includes = ['..']
6         obj.use    = ['libdvdomatic']
7         obj.source = '%s.cc' % t
8         obj.target = t
9
10     if not bld.env.DISABLE_GUI:
11         for t in ['dvdomatic', 'playomatic', 'alignomatic']:
12             obj = bld(features = 'cxx cxxprogram')
13             obj.uselib = 'BOOST_THREAD GTKMM'
14             obj.includes = ['..']
15             obj.use    = ['libdvdomatic', 'libdvdomatic-gtk']
16             obj.source = '%s.cc' % t
17             obj.target = t