summaryrefslogtreecommitdiffstats
path: root/src/mesa/SConscript
diff options
context:
space:
mode:
authorImre Deak <[email protected]>2012-09-12 19:46:05 +0300
committerOliver McFadden <[email protected]>2012-10-10 12:43:16 +0300
commit6678125eaee1bbf231d997971cde30f22ba4e013 (patch)
tree3f69e38ac2e19ce327b246410e0e5b4c871f9d3f /src/mesa/SConscript
parentea637c5b64c1e72f6099a967fb57c8da155414dd (diff)
scons/android: add flag to check for enabled GL APIs
Needed by the next patch. Signed-off-by: Imre Deak <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Oliver McFadden <[email protected]>
Diffstat (limited to 'src/mesa/SConscript')
-rw-r--r--src/mesa/SConscript9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/SConscript b/src/mesa/SConscript
index 9819082177f..7d7d5193014 100644
--- a/src/mesa/SConscript
+++ b/src/mesa/SConscript
@@ -16,9 +16,8 @@ env.Append(CPPPATH = [
'#/src/mesa',
])
-env.Append(CPPDEFINES = [
- 'FEATURE_GL=1',
-])
+enabled_apis = []
+enabled_apis += ['GL']
if env['platform'] == 'windows':
env.Append(CPPDEFINES = [
@@ -335,7 +334,7 @@ GLAPI = '#src/mapi/glapi/'
if env['gles']:
- env.Append(CPPDEFINES = ['FEATURE_ES1=1', 'FEATURE_ES2=1'])
+ enabled_apis += ['ES1', 'ES2']
# generate GLES sources
gles_sources = ['main/es1_conversion.c',]
@@ -368,6 +367,8 @@ if env['gles']:
mesa_sources += gles_sources
+env.Append(CPPDEFINES = ["FEATURE_%s=1" % api for api in enabled_apis])
+
#
# Assembly sources
#