diff options
Diffstat (limited to 'src/gallium/targets/egl-swrast')
-rw-r--r-- | src/gallium/targets/egl-swrast/SConscript | 30 | ||||
-rw-r--r-- | src/gallium/targets/egl-swrast/swrast_glue.c | 6 |
2 files changed, 30 insertions, 6 deletions
diff --git a/src/gallium/targets/egl-swrast/SConscript b/src/gallium/targets/egl-swrast/SConscript new file mode 100644 index 00000000000..213e5b3e6ce --- /dev/null +++ b/src/gallium/targets/egl-swrast/SConscript @@ -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) diff --git a/src/gallium/targets/egl-swrast/swrast_glue.c b/src/gallium/targets/egl-swrast/swrast_glue.c index 9db8089a666..defd11c6878 100644 --- a/src/gallium/targets/egl-swrast/swrast_glue.c +++ b/src/gallium/targets/egl-swrast/swrast_glue.c @@ -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; } |