summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 368ad83..a2c2047 100644
--- a/SConstruct
+++ b/SConstruct
@@ -56,6 +56,12 @@ else:
Help(opts.GenerateHelpText(env))
+# fail early for a common error on windows
+if env['gles']:
+ try:
+ import libxml2
+ except ImportError:
+ raise SCons.Errors.UserError, "GLES requires libxml2-python to build"
#######################################################################
# Environment setup