scons: MacOSX build fixes.
This commit is contained in:
@@ -208,12 +208,10 @@ def pkg_use_modules(env, names):
|
|||||||
prefix = name + '_'
|
prefix = name + '_'
|
||||||
|
|
||||||
if not 'HAVE_' + name in env:
|
if not 'HAVE_' + name in env:
|
||||||
print 'Attempt to use unknown module %s' % name
|
raise Exception('Attempt to use unknown module %s' % name)
|
||||||
env.Exit(1)
|
|
||||||
|
|
||||||
if not env['HAVE_' + name]:
|
if not env['HAVE_' + name]:
|
||||||
print 'Attempt to use unavailable module %s' % name
|
raise Exception('Attempt to use unavailable module %s' % name)
|
||||||
env.Exit(1)
|
|
||||||
|
|
||||||
flags = {}
|
flags = {}
|
||||||
for flag_name, flag_value in env.Dictionary().iteritems():
|
for flag_name, flag_value in env.Dictionary().iteritems():
|
||||||
|
@@ -22,9 +22,10 @@ SConscript('mesa/SConscript')
|
|||||||
SConscript('mapi/vgapi/SConscript')
|
SConscript('mapi/vgapi/SConscript')
|
||||||
|
|
||||||
if not env['embedded']:
|
if not env['embedded']:
|
||||||
SConscript('glx/SConscript')
|
if env['platform'] not in ['windows', 'darwin']:
|
||||||
SConscript('egl/main/SConscript')
|
SConscript('glx/SConscript')
|
||||||
SConscript('glu/sgi/SConscript')
|
SConscript('egl/main/SConscript')
|
||||||
|
SConscript('glu/sgi/SConscript')
|
||||||
|
|
||||||
if env['gles']:
|
if env['gles']:
|
||||||
SConscript('mapi/shared-glapi/SConscript')
|
SConscript('mapi/shared-glapi/SConscript')
|
||||||
|
@@ -55,7 +55,8 @@ SConscript('winsys/sw/null/SConscript')
|
|||||||
|
|
||||||
if not env['embedded']:
|
if not env['embedded']:
|
||||||
SConscript('state_trackers/vega/SConscript')
|
SConscript('state_trackers/vega/SConscript')
|
||||||
SConscript('state_trackers/egl/SConscript')
|
if env['platform'] not in ['darwin']:
|
||||||
|
SConscript('state_trackers/egl/SConscript')
|
||||||
|
|
||||||
if env['x11']:
|
if env['x11']:
|
||||||
SConscript('state_trackers/glx/xlib/SConscript')
|
SConscript('state_trackers/glx/xlib/SConscript')
|
||||||
@@ -84,9 +85,10 @@ SConscript([
|
|||||||
])
|
])
|
||||||
|
|
||||||
if not env['embedded']:
|
if not env['embedded']:
|
||||||
SConscript([
|
if env['platform'] not in ['darwin']:
|
||||||
'targets/egl-static/SConscript'
|
SConscript([
|
||||||
])
|
'targets/egl-static/SConscript'
|
||||||
|
])
|
||||||
|
|
||||||
if env['x11']:
|
if env['x11']:
|
||||||
SConscript([
|
SConscript([
|
||||||
|
@@ -1,8 +1,5 @@
|
|||||||
Import('*')
|
Import('*')
|
||||||
|
|
||||||
if env['platform'] == 'windows':
|
|
||||||
Return()
|
|
||||||
|
|
||||||
env = env.Clone()
|
env = env.Clone()
|
||||||
|
|
||||||
env.Prepend(CPPPATH = [
|
env.Prepend(CPPPATH = [
|
||||||
|
Reference in New Issue
Block a user