scons: rework the EGL build
[mesa.git] / src / egl / SConscript
1 #######################################################################
2 # SConscript for EGL
3
4
5 Import('*')
6
7 env = env.Clone()
8
9 env.Append(CPPPATH = [
10 '#/include',
11 '#/src/egl/main',
12 ])
13
14
15 # parse Makefile.sources
16 egl_sources = env.ParseSourceList('Makefile.sources', 'LIBEGL_C_FILES')
17 egl_sources.append(env.ParseSourceList('Makefile.sources', 'dri2_backend_core_FILES'))
18
19 env.Append(CPPDEFINES = [
20 '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_HAIKU',
21 '_EGL_BUILT_IN_DRIVER_HAIKU',
22 'HAVE_HAIKU_PLATFORM',
23 ])
24 egl_sources.append('drivers/haiku/egl_haiku.cpp')
25
26 egl = env.SharedLibrary(
27 target = 'EGL',
28 source = egl_sources,
29 )
30
31 egl = env.InstallSharedLibrary(egl, version=(1, 0, 0))
32
33 env.Alias('egl', egl)