diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-21 01:18:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-21 01:18:11 +0100 |
| commit | 48ac836c1adf20629d75592bc87bf64d18c54139 (patch) | |
| tree | 79c2cd46bf2fd9481a07dc460988b900dc64915c /wscript | |
| parent | 65e3ca1c4a31fdb73df295ef636301cd7435b755 (diff) | |
Add swaroop variant and use it to remove the screen options from the View menu.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -65,6 +65,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') @@ -115,6 +116,9 @@ def configure(conf): else: conf.env.append_value('CXXFLAGS', '-O2') + if conf.options.variant is not None: + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_VARIANT_%s' % conf.options.variant.upper()) + # # Windows/Linux/OS X specific # |
