diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-02 22:30:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-02 22:30:06 +0100 |
| commit | 27e74ac5cf717233914fd017eb9ca67ee7c4af96 (patch) | |
| tree | 2c4c4d4de70cac2dd10778edcad0e995e8a97191 /wscript | |
| parent | 52528d511935d95b1a2f0dbf62bcd2af3a6288ad (diff) | |
| parent | e6e329c27b5b48c4341860810dea4616cdc8e7b0 (diff) | |
Merge master.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2,21 +2,23 @@ import subprocess import os APPNAME = 'libdcp' -VERSION = '0.51pre' +VERSION = '0.53pre' def options(opt): opt.load('compiler_cxx') opt.add_option('--target-windows', action='store_true', default = False, help = 'set up to do a cross-compile to Windows') + opt.add_option('--osx', action='store_true', default = False, help = 'set up to build on OS X') 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') def configure(conf): conf.load('compiler_cxx') - conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-Wno-unused-result', '-O2', '-D_FILE_OFFSET_BITS=64']) + conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-O2', '-D_FILE_OFFSET_BITS=64']) conf.env.append_value('CXXFLAGS', ['-DLIBDCP_VERSION="%s"' % VERSION]) conf.env.TARGET_WINDOWS = conf.options.target_windows conf.env.STATIC = conf.options.static + conf.env.OSX = conf.options.osx conf.env.ENABLE_DEBUG = conf.options.enable_debug if conf.options.target_windows: @@ -24,6 +26,9 @@ def configure(conf): else: conf.env.append_value('CXXFLAGS', '-DLIBDCP_POSIX') + if not conf.options.osx: + conf.env.append_value('CXXFLAGS', ['-Wno-unused-result']) + conf.check_cfg(package = 'openssl', args = '--cflags --libs', uselib_store = 'OPENSSL', mandatory = True) conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'LIBXML++', mandatory = True) if conf.options.static: |
