summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/SConscript
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-05-10 03:41:44 +0100
committerEmil Velikov <[email protected]>2014-05-25 23:21:46 +0100
commitb52a530ce2aada1967bc8fefa83ab53e6a737dae (patch)
treeb80e97672d2409299621c319295bb4b8b6757038 /src/gallium/state_trackers/egl/SConscript
parenta9afdcc3a144f5fa4998891b2f63061e38db293a (diff)
gallium/egl: st_profiles are build time decision, treat them as such
The profiles are present depending on the defines at build time. Drop the extra functions and feed the defines directly into the state-tracker at build time. v2: Drop unused variable i. Acked-by: Chia-I Wu <[email protected]> (v1) Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/egl/SConscript')
-rw-r--r--src/gallium/state_trackers/egl/SConscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/egl/SConscript b/src/gallium/state_trackers/egl/SConscript
index 3ddf0bca489..3727fb2b047 100644
--- a/src/gallium/state_trackers/egl/SConscript
+++ b/src/gallium/state_trackers/egl/SConscript
@@ -14,6 +14,18 @@ env.Append(CPPPATH = [
sources = env.ParseSourceList('Makefile.sources', 'common_FILES')
+# OpenGL ES and OpenGL
+if env['gles']:
+ env.Append(CPPDEFINES = [
+ 'FEATURE_GL=1',
+ 'FEATURE_ES1=1',
+ 'FEATURE_ES2=1'
+ ])
+
+# OpenVG
+if True:
+ env.Append(CPPDEFINES = ['FEATURE_VG=1'])
+
if env['platform'] == 'windows':
env.Append(CPPDEFINES = ['HAVE_GDI_BACKEND'])
sources.append(env.ParseSourceList('Makefile.sources', 'gdi_FILES'))