summaryrefslogtreecommitdiff
path: root/cscript
blob: 9cc47606927d950278cd6e7d60a061d7a3338845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

def build(env, target):
    cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
    if target.platform == 'linux':
        cmd += ' --static-libdcp --static-openjpeg'
    elif target.platform == 'windows':
        cmd += ' --target-windows'
    env.command(cmd)
    env.command('./waf build install')

def make_doxygen(env):
    try:
        os.makedirs('build/doc')
    except:
        pass
    env.command('pwd')
    env.command('doxygen')
    return os.path.abspath('build/doc/html')