summaryrefslogtreecommitdiff
path: root/src/gallium/targets/egl-gdi/SConscript
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-06-30 13:15:18 +0800
committerChia-I Wu <olv@lunarg.com>2010-06-30 14:00:43 +0800
commit8977879ec91b21572abd9bb95dcd0e72ba49f753 (patch)
treeec35ec8b2a70b1bc124728c8cd39b9f664bbf36b /src/gallium/targets/egl-gdi/SConscript
parent2f0b01826dbae60fed60c0d744d42a1a4cde4a84 (diff)
st/egl: Add egl-gdi target.
The target supports OpenVG on Windows with software rasterizer. The egl_g3d_loader defined by the target supports arbitrary client APIs and window systems. It is the SConscript that limits the support to OpenVG and GDI. This commit also fixes a typo in gdi backend.
Diffstat (limited to 'src/gallium/targets/egl-gdi/SConscript')
-rw-r--r--src/gallium/targets/egl-gdi/SConscript47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/gallium/targets/egl-gdi/SConscript b/src/gallium/targets/egl-gdi/SConscript
new file mode 100644
index 0000000000..8f8b28ef67
--- /dev/null
+++ b/src/gallium/targets/egl-gdi/SConscript
@@ -0,0 +1,47 @@
+#######################################################################
+# SConscript for egl-gdi target
+
+Import('*')
+
+if env['platform'] == 'windows':
+
+ env = env.Clone()
+
+ env.Append(CPPPATH = [
+ '#/src/gallium/state_trackers/egl',
+ '#/src/gallium/state_trackers/vega',
+ '#/src/egl/main',
+ '#/src/mesa',
+ ])
+
+ env.Append(CPPDEFINES = [
+ 'FEATURE_VG=1',
+ 'GALLIUM_SOFTPIPE',
+ 'GALLIUM_RBUG',
+ 'GALLIUM_TRACE',
+ ])
+
+ env.Append(LIBS = [
+ 'gdi32',
+ 'user32',
+ 'kernel32',
+ 'ws2_32',
+ ])
+
+ env['no_import_lib'] = 1
+
+ drivers = [softpipe]
+ if env['llvm']:
+ env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
+ drivers += [llvmpipe]
+ drivers += [identity, trace, rbug]
+
+ apis = [vgapi, st_vega]
+
+ egl_gallium = env.SharedLibrary(
+ target ='egl_gallium',
+ source = 'egl-static.c',
+ LIBS = st_egl_gdi + ws_gdi + drivers + apis + gallium + egl + env['LIBS'],
+ )
+
+ env.InstallSharedLibrary(egl_gallium)