Try to allow building of packages without the GUI.
authorCarl Hetherington <cth@carlh.net>
Fri, 25 May 2018 22:05:01 +0000 (23:05 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 25 May 2018 22:05:01 +0000 (23:05 +0100)
cscript

diff --git a/cscript b/cscript
index e29168d6b76a171a51379524525e3fdf03a11f6b..887978c3fe7159ab24f12717989e78cb5c315443 100644 (file)
--- 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'