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