st/egl: Reorganize targets.
[mesa.git] / src / gallium / targets / egl / SConscript
1 #######################################################################
2 # SConscript for egl-apis target
3
4 Import('*')
5
6 if env['platform'] == 'windows':
7
8 env = env.Clone()
9
10 env.Append(CPPPATH = [
11 '#/src/gallium/state_trackers/vega',
12 ])
13
14 env.Append(LIBS = [
15 'gdi32',
16 'user32',
17 'kernel32',
18 'ws2_32',
19 ])
20
21 env['no_import_lib'] = 1
22
23 drivers = [softpipe]
24 if env['llvm']:
25 drivers += [llvmpipe]
26 drivers += [identity, trace, rbug]
27
28 egl_gallium_swrast = env.SharedLibrary(
29 target ='egl_gallium_swrast',
30 source = 'pipe_swrast.c',
31 LIBS = st_egl_gdi + ws_gdi + drivers + gallium + egl + env['LIBS'],
32 )
33
34 env.InstallSharedLibrary(egl_gallium_swrast)
35
36 api_libs = {
37 'OpenVG': vgapi + st_vega,
38 }
39
40 for name in api_libs.keys():
41 api = env.SharedLibrary(
42 target = 'st_' + name,
43 source = ['st_' + name + '.c'],
44 LIBS = api_libs[name] + gallium + env['LIBS'],
45 )
46 env.InstallSharedLibrary(api)