Merge remote branch 'origin/master' into glsl2
[mesa.git] / src / gallium / targets / egl-gdi / SConscript
1 #######################################################################
2 # SConscript for egl-gdi 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/egl',
12 '#/src/gallium/state_trackers/vega',
13 '#/src/egl/main',
14 '#/src/mesa',
15 ])
16
17 env.Append(CPPDEFINES = [
18 'FEATURE_VG=1',
19 'GALLIUM_SOFTPIPE',
20 'GALLIUM_RBUG',
21 'GALLIUM_TRACE',
22 ])
23
24 env.Append(LIBS = [
25 'gdi32',
26 'user32',
27 'kernel32',
28 'ws2_32',
29 ])
30
31 env['no_import_lib'] = 1
32
33 drivers = [softpipe]
34 if env['llvm']:
35 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
36 drivers += [llvmpipe]
37 drivers += [identity, trace, rbug]
38
39 apis = [vgapi, st_vega]
40
41 egl_gallium = env.SharedLibrary(
42 target ='egl_gallium',
43 source = 'egl-static.c',
44 LIBS = st_egl_gdi + ws_gdi + drivers + apis + gallium + egl + env['LIBS'],
45 )
46
47 env.InstallSharedLibrary(egl_gallium)