scons: builtin_glsl_function on windows needs bundled getopt.
diff --git a/SConstruct b/SConstruct
index 3908840..19d8b13 100644
--- a/SConstruct
+++ b/SConstruct
@@ -121,8 +121,6 @@
# for debugging
#print env.Dump()
-Export('env')
-
#######################################################################
# Invoke host SConscripts
@@ -149,13 +147,18 @@
host_env.Tool('gallium')
+ host_env['hostonly'] = True
+ assert host_env['crosscompile'] == False
+
+ Export(env = host_env)
+
SConscript(
- 'src/glsl/SConscript',
+ 'src/SConscript',
variant_dir = host_env['build_dir'],
duplicate = 0, # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
- exports={'env':host_env},
)
+Export('env')
#######################################################################
# Invoke SConscripts