egl: Allow core functions to be queried.
[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_NATIVE_PLATFORM=_EGL_PLATFORM_WINDOWS',
13 '_EGL_DRIVER_SEARCH_DIR=\\"\\"',
14 '_EGL_OS_WINDOWS',
15 '_EGL_GET_CORE_ADDRESSES',
16 'KHRONOS_DLL_EXPORTS',
17 ])
18
19 env.Append(CPPPATH = [
20 '#/include',
21 ])
22
23 egl_sources = [
24 'eglapi.c',
25 'eglarray.c',
26 'eglconfig.c',
27 'eglconfigutil.c',
28 'eglcontext.c',
29 'eglcurrent.c',
30 'egldisplay.c',
31 'egldriver.c',
32 'eglglobals.c',
33 'eglimage.c',
34 'egllog.c',
35 'eglmisc.c',
36 'eglmode.c',
37 'eglscreen.c',
38 'eglstring.c',
39 'eglsurface.c',
40 'eglsync.c',
41 ]
42
43 egl = env.SharedLibrary(
44 target = 'libEGL',
45 source = egl_sources,
46 )
47
48 env.InstallSharedLibrary(egl, version=(1, 4, 0))
49
50 egl = [env.FindIxes(egl, 'LIBPREFIX', 'LIBSUFFIX')]
51
52 Export('egl')