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'])
+ opt.add_option('--variant', help='build variant (swaroop-studio, swaroop-theater)', choices=['swaroop-studio', 'swaroop-theater'])
def configure(conf):
conf.load('compiler_cxx')
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())
+ if conf.options.variant.startswith('swaroop-'):
+ conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_VARIANT_SWAROOP')
#
# Windows/Linux/OS X specific
if (r >> 8) == 0:
r = os.system('curl -s -f https://dcpomatic.com/subscribers.cc?%s > src/wx/subscribers.cc' % urlencode({"until": last_date.strip()}))
if (r >> 8) != 0 and can_fail:
- raise Exception("Could not download supporters lists")
+ raise Exception("Could not download supporters lists (%d)" % (r >> 8))
def build(bld):
create_version_cc(VERSION, bld.env.CXXFLAGS)