summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-09-20 20:40:05 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-09-20 20:41:57 +0100
commitf8aeb1c990b6e127497da1e46e0e4cdcb67ce9b3 (patch)
treef648d31b41a73fd1ec41c3a18ac525475faaf0c2
parent6da8c21124152c68fb968b196895f2c881a24280 (diff)
scons: MacOSX build fixes.
-rw-r--r--scons/custom.py6
-rw-r--r--src/SConscript7
-rw-r--r--src/gallium/SConscript10
-rw-r--r--src/glx/SConscript3
4 files changed, 12 insertions, 14 deletions
diff --git a/scons/custom.py b/scons/custom.py
index b6d716cf437..08073162e74 100644
--- a/scons/custom.py
+++ b/scons/custom.py
@@ -208,12 +208,10 @@ def pkg_use_modules(env, names):
prefix = name + '_'
if not 'HAVE_' + name in env:
- print 'Attempt to use unknown module %s' % name
- env.Exit(1)
+ raise Exception('Attempt to use unknown module %s' % name)
if not env['HAVE_' + name]:
- print 'Attempt to use unavailable module %s' % name
- env.Exit(1)
+ raise Exception('Attempt to use unavailable module %s' % name)
flags = {}
for flag_name, flag_value in env.Dictionary().iteritems():
diff --git a/src/SConscript b/src/SConscript
index 1eee8761adb..91d1253adfd 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -22,9 +22,10 @@ SConscript('mesa/SConscript')
SConscript('mapi/vgapi/SConscript')
if not env['embedded']:
- SConscript('glx/SConscript')
- SConscript('egl/main/SConscript')
- SConscript('glu/sgi/SConscript')
+ if env['platform'] not in ['windows', 'darwin']:
+ SConscript('glx/SConscript')
+ SConscript('egl/main/SConscript')
+ SConscript('glu/sgi/SConscript')
if env['gles']:
SConscript('mapi/shared-glapi/SConscript')
diff --git a/src/gallium/SConscript b/src/gallium/SConscript
index 3072ee936f2..3c063a2025c 100644
--- a/src/gallium/SConscript
+++ b/src/gallium/SConscript
@@ -55,7 +55,8 @@ SConscript('winsys/sw/null/SConscript')
if not env['embedded']:
SConscript('state_trackers/vega/SConscript')
- SConscript('state_trackers/egl/SConscript')
+ if env['platform'] not in ['darwin']:
+ SConscript('state_trackers/egl/SConscript')
if env['x11']:
SConscript('state_trackers/glx/xlib/SConscript')
@@ -84,9 +85,10 @@ SConscript([
])
if not env['embedded']:
- SConscript([
- 'targets/egl-static/SConscript'
- ])
+ if env['platform'] not in ['darwin']:
+ SConscript([
+ 'targets/egl-static/SConscript'
+ ])
if env['x11']:
SConscript([
diff --git a/src/glx/SConscript b/src/glx/SConscript
index afef33727df..fc8ad771b1c 100644
--- a/src/glx/SConscript
+++ b/src/glx/SConscript
@@ -1,8 +1,5 @@
Import('*')
-if env['platform'] == 'windows':
- Return()
-
env = env.Clone()
env.Prepend(CPPPATH = [