summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-05-25 23:05:01 +0100
committerCarl Hetherington <cth@carlh.net>2018-05-25 23:05:01 +0100
commit2edfdac78b19d9472a87ee61aa250e5426d80151 (patch)
treea4b9354adb186c778bea098bc67ef5a9c95398d6 /cscript
parent67e67ea42fcfd2a0805fd96f44a2435992a3320e (diff)
Try to allow building of packages without the GUI.
Diffstat (limited to 'cscript')
-rw-r--r--cscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/cscript b/cscript
index e29168d6b..887978c3f 100644
--- a/cscript
+++ b/cscript
@@ -336,6 +336,9 @@ def configure_options(target):
# a better solution.
opt += ' --force-cpp11'
+ if hasattr(target, 'gui') and target.gui == 'no':
+ opt += ' --disable-gui'
+
# Build Windows debug versions with static linking as I think gdb works better then
if target.debug and target.platform == 'windows':
opt += ' --static-dcpomatic'