diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-18 21:40:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-18 21:40:15 +0100 |
| commit | 160d55ae1f3fe8d84ade777154c673d350e3c02c (patch) | |
| tree | e49fbbd36df6330e68216f0c1248f244cd2be1a8 /cbuild | |
| parent | 178fadde4c7b4c0816f06ead30030fa29e7d13c7 (diff) | |
cdist bits.
Diffstat (limited to 'cbuild')
| -rwxr-xr-x | cbuild | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,6 +6,7 @@ import os parser = argparse.ArgumentParser() parser.add_argument('command') parser.add_argument('-p', '--prefix', help='prefix', required=True) +parser.add_argument('-s', '--static', help='build statically', action='store_true') args = parser.parse_args() def command(c): @@ -13,4 +14,8 @@ def command(c): os.system(c) if args.command == 'build': - command('./waf configure --prefix=%s build install' % args.prefix) + cmd = './waf configure --prefix=%s' % args.prefix + if args.static: + cmd += ' --static-libdcp --static-openjpeg' + cmd += ' build install' + command(cmd) |
