revert 213 commits (to 56092) from the last month. 10 still need work to resolve...
[AROS.git] / workbench / libs / mesa / src / gallium / state_trackers / egl / SConscript
blobf795fe00620275e0ecb6a66ac3f907756716e1c3
1 #######################################################################
2 # SConscript for egl state_tracker
4 Import('*')
6 env = env.Clone()
8 env.Append(CPPPATH = [
9     '#/src/egl/main',
10     '#/src/gallium/winsys/sw',
11     '.',
14 sources = [
15     'common/egl_g3d.c',
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')
26 else:
27     if env['x11']:
28         env.Append(CPPDEFINES = ['HAVE_X11_BACKEND'])
29         env.Prepend(CPPPATH = [
30             '#/src/glx',
31             '#/src/mapi',
32         ])
33         sources.append([
34             'x11/native_x11.c',
35             'x11/native_dri2.c',
36             'x11/native_ximage.c',
37             'x11/x11_screen.c',
38             'x11/glxinit.c'])
39         if env['dri']:
40             env.Append(CPPDEFINES = ['GLX_DIRECT_RENDERING'])
41             sources.append(['#/src/glx/dri2.c'])
42     if env['drm']:
43         env.Append(CPPDEFINES = ['HAVE_DRM_BACKEND'])
44         env.Append(CPPPATH = [
45             '#/src/gbm/main',
46             '#/src/gallium/state_trackers/gbm',
47         ])
48         sources.append(['drm/native_drm.c', 'drm/modeset.c'])
50 st_egl = env.ConvenienceLibrary(
51     target = 'st_egl',
52     source = sources,
54 Export('st_egl')