summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-06-17 14:48:28 +0100
committerJosé Fonseca <[email protected]>2011-06-17 14:50:37 +0100
commit41750107496858a047afa8d81d20fe903f285a78 (patch)
treeae050f8f2788a0aab8713bc3f7b83b62cf9d7588 /scons
parentfc8c4a3a7b92a1134cd3a9312063abba9e14b0fe (diff)
scons: make embedding orthogonal to the platform
To enable embedding in platforms other than linux.
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index a94bf736480..57acfe032f2 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -247,6 +247,8 @@ def generate(env):
# configuration. See also http://www.scons.org/wiki/AdvancedBuildExample
build_topdir = 'build'
build_subdir = env['platform']
+ if env['embedded']:
+ build_subdir = 'embedded-' + build_subdir
if env['machine'] != 'generic':
build_subdir += '-' + env['machine']
if env['build'] != 'release':
@@ -349,8 +351,8 @@ def generate(env):
if platform == 'wince':
cppdefines += ['PIPE_SUBSYSTEM_WINDOWS_CE']
cppdefines += ['PIPE_SUBSYSTEM_WINDOWS_CE_OGL']
- if platform == 'embedded':
- cppdefines += ['PIPE_OS_EMBEDDED']
+ if env['embedded']:
+ cppdefines += ['PIPE_SUBSYSTEM_EMBEDDED']
env.Append(CPPDEFINES = cppdefines)
# C compiler options