X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=wscript;h=92a79bb9b031413d250c554eda913e767fa19880;hb=c4ac1ba47652884a647103ec49b2de4c0b6e60a9;hp=c4102733687ef0dd3250d970b63b2489fc8cc97f;hpb=287b8f505251d09c37d3089220fbdf2f9586d9c8;p=dcpomatic.git diff --git a/wscript b/wscript index c41027336..92a79bb9b 100644 --- a/wscript +++ b/wscript @@ -48,7 +48,6 @@ def options(opt): opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') opt.add_option('--disable-gui', action='store_true', default=False, help='disable building of GUI tools') - opt.add_option('--player-only', action='store_true', default=False, help='just build the player; no other tools') opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests') opt.add_option('--install-prefix', default=None, help='prefix of where DCP-o-matic will be installed') opt.add_option('--target-windows', action='store_true', default=False, help='set up to do a cross-compile to make a Windows package') @@ -65,6 +64,7 @@ def options(opt): opt.add_option('--static-curl', action='store_true', default=False, help='link statically to libcurl') opt.add_option('--workaround-gssapi', action='store_true', default=False, help='link to gssapi_krb5') opt.add_option('--force-cpp11', action='store_true', default=False, help='force use of C++11') + opt.add_option('--variant', help='build variant', choices=['swaroop']) def configure(conf): conf.load('compiler_cxx') @@ -74,7 +74,6 @@ def configure(conf): # Save conf.options that we need elsewhere in conf.env conf.env.DISABLE_GUI = conf.options.disable_gui - conf.env.PLAYER_ONLY = conf.options.player_only conf.env.DISABLE_TESTS = conf.options.disable_tests conf.env.TARGET_WINDOWS = conf.options.target_windows conf.env.TARGET_OSX = sys.platform == 'darwin' @@ -115,6 +114,10 @@ def configure(conf): else: conf.env.append_value('CXXFLAGS', '-O2') + if conf.options.variant is not None: + conf.env.VARIANT = conf.options.variant + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_VARIANT_%s' % conf.options.variant.upper()) + # # Windows/Linux/OS X specific #