1 #######################################################################
2 # SConscript for egl state_tracker
10 '#/src/gallium/winsys/sw',
16 'common/egl_g3d_api.c',
17 'common/egl_g3d_image.c',
18 'common/egl_g3d_st.c',
19 'common/egl_g3d_sync.c',
20 'common/native_helper.c',
23 if env['platform'] == 'windows':
24 env.Append(CPPDEFINES = ['HAVE_GDI_BACKEND'])
25 sources.append('gdi/native_gdi.c')
28 env.Append(CPPDEFINES = ['HAVE_X11_BACKEND'])
29 env.Prepend(CPPPATH = [
36 'x11/native_ximage.c',
40 env.Append(CPPDEFINES = ['GLX_DIRECT_RENDERING'])
41 sources.append(['#/src/glx/dri2.c'])
43 env.Append(CPPDEFINES = ['HAVE_DRM_BACKEND'])
44 env.Append(CPPPATH = [
46 '#/src/gallium/state_trackers/gbm',
48 sources.append(['drm/native_drm.c', 'drm/modeset.c'])
50 st_egl = env.ConvenienceLibrary(