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