diff options
author | Alexander von Gluck IV <[email protected]> | 2014-12-22 10:10:13 -0500 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2014-12-23 09:07:57 -0500 |
commit | 400b833592d9aad7b2c4627a897380642d52189f (patch) | |
tree | 537b8c751497e81f3eb70b2c01ebc2ade3a40ae2 /src/egl/main/SConscript | |
parent | da4fb3e7a11765725a4aaee41de6c79b40637209 (diff) |
egl: Add Haiku code and support
* This is the cleaned up work of the Haiku GCI student
Adrián Arroyo Calle [email protected]
* Several patches were consolidated to prevent
unnecessary touching of non-related code
Diffstat (limited to 'src/egl/main/SConscript')
-rw-r--r-- | src/egl/main/SConscript | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/egl/main/SConscript b/src/egl/main/SConscript index 390f28a6b84..2ea2261cc13 100644 --- a/src/egl/main/SConscript +++ b/src/egl/main/SConscript @@ -18,21 +18,40 @@ if env['platform'] == 'windows': '_EGL_GET_CORE_ADDRESSES', 'KHRONOS_DLL_EXPORTS', ]) +elif env['platform'] == 'haiku': + env.Append(CPPDEFINES = [ + '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_HAIKU', + '_EGL_OS_UNIX', + '_EGL_BUILT_IN_DRIVER_HAIKU', + ]) + env.Prepend(LIBS = [ + egl_haiku, + libloader, + ]) else: env.Append(CPPDEFINES = [ '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_X11', '_EGL_OS_UNIX', ]) + env.Prepend(LIBS = [ + egl_dri2, + libloader, + ]) env.Append(CPPPATH = [ '#/include', ]) + # parse Makefile.sources egl_sources = env.ParseSourceList('Makefile.sources', 'LIBEGL_C_FILES') -egl = env.ConvenienceLibrary( - target = 'egl', +# libEGL.dll +env['LIBPREFIX'] = 'lib' +env['SHLIBPREFIX'] = 'lib' + +egl = env.SharedLibrary( + target = 'EGL', source = egl_sources, ) |