summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-10-21 09:29:23 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-10-24 18:33:50 +0000
commit54053bc8d0dad89a38e2179050831f64a02ea4ec (patch)
tree1bc1f097993619b6d8f6073f680c088369a9b046 /SConstruct
parent79e73887e7c9a0c2759e7e66a0e1a90c884ceacb (diff)
scons: Print a deprecation warning about using scons on not windows
At this point meson should be able to handle all of the non-windows platforms just fine; we'd like to be able to stop maintaining scons for those platforms sooner than later. Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct14
1 files changed, 14 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 207794c3eb3..aeb1309d464 100644
--- a/SConstruct
+++ b/SConstruct
@@ -67,6 +67,20 @@ else:
Help(opts.GenerateHelpText(env))
+
+#######################################################################
+# Print a deprecation warning for using scons on non-windows
+
+if common.host_platform != 'windows':
+ force = ARGUMENTS['force_scons']
+ if force.lower() not in {'false', 'off', 'none', '0', 'n'}:
+ print("WARNING: Scons is deprecated for non-windows platforms (including cygwin) "
+ "please use meson instead.", file=sys.stderr)
+ else:
+ print("ERROR: Scons is deprecated for non-windows platforms (including cygwin) "
+ "please use meson instead. If you really need to use scons you "
+ "can add `force_scons=1` to the scons command line.", file=sys.stderr)
+ sys.exit(1)
#######################################################################
# Environment setup