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