summaryrefslogtreecommitdiff
path: root/src/tools/wscript
blob: 9c1ca7524ea65b1f6def3352ac78ebe70c933af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def build(bld):
    for t in ['makedcp', 'fixlengths', 'servomatic_cli']:
        obj = bld(features = 'cxx cxxprogram')
    	obj.uselib = 'BOOST_THREAD'
	obj.includes = ['..']
        obj.use    = ['libdvdomatic']
        obj.source = '%s.cc' % t
        obj.target = t

    if not bld.env.DISABLE_GUI:
        for t in ['dvdomatic', 'servomatic_gui']:
            obj = bld(features = 'cxx cxxprogram')
            obj.includes = ['..']
            obj.use    = ['libdvdomatic', 'libdvdomatic-wx']
            obj.source = '%s.cc' % t
            if bld.env.TARGET_WINDOWS:
                obj.source += ' ../../windows/dvdomatic.rc'
            obj.target = t