summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-01-08 22:22:01 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 22:22:01 +0100
commit579d18cb7770efe2da03afaf6a33faaf624119e3 (patch)
treecc303d8c74e64fff8eb5a663941cac4455154ae9 /wscript
parentdde431cafbb20ed3356ad5592be56af1d4458f46 (diff)
parent23590dc430e4ef2351209e30a26ba04fecca2872 (diff)
Merge a set of changes which run the OpenGL video updates in a separatev2.15.40
thread, hopefully making things more elegant and robust.
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index 9f45778e9..c61b86782 100644
--- a/wscript
+++ b/wscript
@@ -73,6 +73,7 @@ def options(opt):
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 (swaroop-studio, swaroop-theater)', choices=['swaroop-studio', 'swaroop-theater'])
+ opt.add_option('--enable-player-stress-test', action='store_true', default=False, help='build the player with stress testing enabled')
opt.add_option('--use-lld', action='store_true', default=False, help='use lld linker')
def configure(conf):
@@ -133,6 +134,9 @@ def configure(conf):
if conf.options.variant.startswith('swaroop-'):
conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_VARIANT_SWAROOP')
+ if conf.options.enable_player_stress_test:
+ conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_PLAYER_STRESS_TEST')
+
if conf.options.use_lld:
try:
conf.find_program('ld.lld')
@@ -444,6 +448,9 @@ def configure(conf):
conf.env['CXXFLAGS_AVCODEC'] = []
conf.env['CXXFLAGS_AVUTIL'] = []
+ if conf.env.TARGET_LINUX:
+ conf.env.LIB_X11 = ['X11']
+
# Boost
if conf.options.static_boost:
conf.env.STLIB_BOOST_THREAD = ['boost_thread']