targets/egl: Add SConscript for egl_gdi_swrast.
authorChia-I Wu <olv@lunarg.com>
Mon, 31 May 2010 04:17:27 +0000 (12:17 +0800)
committerChia-I Wu <olv@lunarg.com>
Mon, 31 May 2010 05:27:46 +0000 (13:27 +0800)
egl_gdi_swrast uses st/egl/gdi and winsys/sw/gdi to provide an EGL
driver for Windows.

src/gallium/targets/SConscript
src/gallium/targets/egl-swrast/SConscript [new file with mode: 0644]
src/gallium/targets/egl-swrast/swrast_glue.c

index 519dbff7fd3347cf09d2447943e3c123cc31ebb2..bae839a772f8ac98a2a91a02d147a0c98e888eec 100644 (file)
@@ -30,6 +30,11 @@ if 'xorg' in env['statetrackers']:
                        'xorg-vmwgfx/SConscript',
                ])
 
+if 'egl' in env['statetrackers']:
+       SConscript([
+               'egl-swrast/SConscript',
+       ])
+
 # Ideally all non-target directories would produce convenience
 # libraries, and the actual shared libraries and other installables
 # would be finally assembled in the targets subtree:
diff --git a/src/gallium/targets/egl-swrast/SConscript b/src/gallium/targets/egl-swrast/SConscript
new file mode 100644 (file)
index 0000000..213e5b3
--- /dev/null
@@ -0,0 +1,30 @@
+#######################################################################
+# SConscript for egl-swrast target
+
+Import('*')
+
+if env['platform'] == 'windows':
+
+    env = env.Clone()
+
+    env.Append(LIBS = [
+        'gdi32',
+        'user32',
+        'kernel32',
+        'ws2_32',
+    ])
+
+    drivers = [softpipe]
+    if env['llvm']:
+        drivers += [llvmpipe]
+    drivers += [identity, trace, rbug]
+
+    env['no_import_lib'] = 1
+
+    egl_gdi_swrast = env.SharedLibrary(
+        target ='egl_gdi_swrast',
+       source = 'swrast_glue.c',
+        LIBS = st_egl_gdi + ws_gdi + drivers + gallium + egl + env['LIBS'],
+    )
+
+    env.InstallSharedLibrary(egl_gdi_swrast)
index 9db8089a6667c496960ddca24456e98034f7f624..defd11c6878daac248cc9d41b23d7b7ab3365b68 100644 (file)
@@ -1,14 +1,8 @@
 #include "state_tracker/drm_api.h"
 
-static struct drm_api swrast_drm_api =
-{
-   .name = "swrast",
-};
-
 struct drm_api *
 drm_api_create()
 {
-   (void) swrast_drm_api;
    return NULL;
 }