scons: make embedding orthogonal to the platform

To enable embedding in platforms other than linux.
This commit is contained in:
José Fonseca
2011-06-17 14:48:28 +01:00
parent fc8c4a3a7b
commit 4175010749
13 changed files with 59 additions and 86 deletions

View File

@@ -102,7 +102,7 @@ if env['msvc']:
env.Prepend(CPPPATH = ['#/src/getopt'])
env.PrependUnique(LIBS = [getopt])
if env['crosscompile'] and env['platform'] != 'embedded':
if env['crosscompile'] and not env['embedded']:
Import('builtin_glsl_function')
else:
# Copy these files to avoid generation object files into src/mesa/program
@@ -156,7 +156,7 @@ Export('glsl')
# Skip building these programs as they will cause SCons error "Two environments
# with different actions were specified for the same target"
if env['crosscompile'] or env['platform'] == 'embedded':
if env['crosscompile'] or env['embedded']:
Return()
env = env.Clone()