diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-26 09:49:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-26 09:49:33 +0000 |
| commit | c9338a9960d363c86020dcb17fef7de40b72c061 (patch) | |
| tree | e8d4242508d3ce5dd86438c1b1bd09be2853aeed /wscript | |
| parent | 134683a552de13cd27c981bb79f30019914ff9b3 (diff) | |
Don't build examples from cscript, to avoid Debian unstable confusion with ImageMagick/GraphicsMagick.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -12,6 +12,7 @@ def options(opt): opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') opt.add_option('--static', action='store_true', default=False, help='build libdcp and in-tree dependencies statically, and link statically to openjpeg and cxml') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') + opt.add_option('--disable-examples', action='store_true', default=False, help='disable building of examples') def configure(conf): conf.load('compiler_cxx') @@ -22,6 +23,7 @@ def configure(conf): conf.env.TARGET_OSX = conf.options.target_osx conf.env.ENABLE_DEBUG = conf.options.enable_debug conf.env.DISABLE_TESTS = conf.options.disable_tests + conf.env.DISABLE_EXAMPLES = conf.options.disable_examples conf.env.STATIC = conf.options.static conf.env.API_VERSION = API_VERSION @@ -130,7 +132,8 @@ def build(bld): if not bld.env.DISABLE_TESTS: bld.recurse('test') bld.recurse('asdcplib') - bld.recurse('examples') + if not bld.env.DISABLE_EXAMPLES: + bld.recurse('examples') bld.add_post_fun(post) |
