summaryrefslogtreecommitdiffstats
path: root/src/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-02-11 17:38:54 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-02-11 20:09:26 +0000
commit982609f4cf2afc4e0afd450aa24907986bca41ab (patch)
tree93babf6ada7e9cc085a9f89bc5cb7368834a59b3 /src/SConscript
parentae760279f142244590c8aa76e3139529ca42952f (diff)
downloadexternal_mesa3d-982609f4cf2afc4e0afd450aa24907986bca41ab.zip
external_mesa3d-982609f4cf2afc4e0afd450aa24907986bca41ab.tar.gz
external_mesa3d-982609f4cf2afc4e0afd450aa24907986bca41ab.tar.bz2
scons: builtin_glsl_function on windows needs bundled getopt.
Diffstat (limited to 'src/SConscript')
-rw-r--r--src/SConscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
index d5cde1c..f11894f 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -1,9 +1,17 @@
Import('*')
+
if env['platform'] == 'windows':
SConscript('getopt/SConscript')
SConscript('glsl/SConscript')
+
+if env['hostonly']:
+ # We are just compiling the things necessary on the host for cross
+ # compilation
+ Return()
+
+
# When env['gles'] is set, the targets defined in mapi/glapi/SConscript are not
# used. libgl-xlib and libgl-gdi adapt themselves to use the targets defined
# in mapi/glapi-shared/SConscript. mesa/SConscript also adapts itself to