Merge branch 'glsl2-head' into glsl2
[mesa.git] / src / egl / main / SConscript
1 #######################################################################
2 # SConscript for EGL
3
4
5 Import('*')
6
7 if env['platform'] != 'winddk':
8
9 env = env.Clone()
10
11 env.Append(CPPDEFINES = [
12 '_EGL_DEFAULT_DISPLAY=\\"gdi\\"',
13 '_EGL_DRIVER_SEARCH_DIR=\\"\\"',
14 '_EGL_OS_WINDOWS',
15 'KHRONOS_DLL_EXPORTS',
16 ])
17
18 env.Append(CPPPATH = [
19 '#/include',
20 ])
21
22 egl_sources = [
23 'eglapi.c',
24 'eglconfig.c',
25 'eglconfigutil.c',
26 'eglcontext.c',
27 'eglcurrent.c',
28 'egldisplay.c',
29 'egldriver.c',
30 'eglglobals.c',
31 'eglimage.c',
32 'egllog.c',
33 'eglmisc.c',
34 'eglmode.c',
35 'eglscreen.c',
36 'eglstring.c',
37 'eglsurface.c',
38 ]
39
40 egl = env.SharedLibrary(
41 target = 'libEGL',
42 source = egl_sources,
43 )
44
45 env.InstallSharedLibrary(egl, version=(1, 4, 0))
46
47 egl = [env.FindIxes(egl, 'LIBPREFIX', 'LIBSUFFIX')]
48
49 Export('egl')