diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-06-29 14:04:27 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-06-29 17:16:20 +0800 |
commit | d8e0e114567ec19fd59f974080a418dc959cc9b6 (patch) | |
tree | e4e435f5ad82ac3c521fc595bc51895ad4dfcc1b /src/gallium/targets/egl/SConscript | |
parent | ea05299ce54ea0463626277907cab8e849884740 (diff) |
st/egl: Reorganize targets.
Merge all targets into targets/egl/. The target produces
egl_gallium_<HW>.so for each pipe driver and st_<API>.so for each client
APIs. This enables us to further merge egl_gallium_<HW>.so into
egl_gallium.so later.
Diffstat (limited to 'src/gallium/targets/egl/SConscript')
-rw-r--r-- | src/gallium/targets/egl/SConscript | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/gallium/targets/egl/SConscript b/src/gallium/targets/egl/SConscript new file mode 100644 index 0000000000..c743c26cf6 --- /dev/null +++ b/src/gallium/targets/egl/SConscript @@ -0,0 +1,46 @@ +####################################################################### +# SConscript for egl-apis target + +Import('*') + +if env['platform'] == 'windows': + + env = env.Clone() + + env.Append(CPPPATH = [ + '#/src/gallium/state_trackers/vega', + ]) + + env.Append(LIBS = [ + 'gdi32', + 'user32', + 'kernel32', + 'ws2_32', + ]) + + env['no_import_lib'] = 1 + + drivers = [softpipe] + if env['llvm']: + drivers += [llvmpipe] + drivers += [identity, trace, rbug] + + egl_gallium_swrast = env.SharedLibrary( + target ='egl_gallium_swrast', + source = 'pipe_swrast.c', + LIBS = st_egl_gdi + ws_gdi + drivers + gallium + egl + env['LIBS'], + ) + + env.InstallSharedLibrary(egl_gallium_swrast) + + api_libs = { + 'OpenVG': vgapi + st_vega, + } + + for name in api_libs.keys(): + api = env.SharedLibrary( + target = 'st_' + name, + source = ['st_' + name + '.c'], + LIBS = api_libs[name] + gallium + env['LIBS'], + ) + env.InstallSharedLibrary(api) |