st/egl: One driver per hardware.
[mesa.git] / src / gallium / state_trackers / egl / SConscript
1 #######################################################################
2 # SConscript for egl state_tracker
3
4 Import('*')
5
6 if 'egl' in env['statetrackers']:
7
8 env = env.Clone()
9
10 env.Append(CPPPATH = [
11 '#/src/egl/main',
12 '#/src/gallium/winsys/sw',
13 '.',
14 ])
15 env.Append(CPPDEFINES = [
16 'HAVE_GDI_BACKEND',
17 ])
18
19 common_sources = [
20 'common/egl_g3d.c',
21 'common/egl_g3d_api.c',
22 'common/egl_g3d_image.c',
23 'common/egl_g3d_st.c',
24 'common/native_helper.c',
25 ]
26
27 gdi_sources = common_sources + [
28 'gdi/native_gdi.c',
29 ]
30
31 st_egl_gdi = env.ConvenienceLibrary(
32 target = 'st_egl_gdi',
33 source = gdi_sources,
34 )
35 Export('st_egl_gdi')