import os 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): os.makedirs('build/doc') env.command('doxygen') return os.path.abspath('build/doc/html')