mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 11:30:20 +01:00
We should only use a #define locally once it's been upstreamed, and at that point you should just update our drm_fourcc.h. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
37 lines
729 B
Python
37 lines
729 B
Python
#######################################################################
|
|
# SConscript for EGL
|
|
|
|
|
|
Import('*')
|
|
|
|
env = env.Clone()
|
|
|
|
env.Append(CPPPATH = [
|
|
'#/include',
|
|
'#/include/drm-uapi',
|
|
'#/include/HaikuGL',
|
|
'#/src/egl/main',
|
|
'#/src',
|
|
])
|
|
|
|
|
|
# parse Makefile.sources
|
|
egl_sources = env.ParseSourceList('Makefile.sources', 'LIBEGL_C_FILES')
|
|
|
|
env.Append(CPPDEFINES = [
|
|
'_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_HAIKU',
|
|
'_EGL_BUILT_IN_DRIVER_HAIKU',
|
|
'HAVE_HAIKU_PLATFORM',
|
|
])
|
|
egl_sources.append('drivers/haiku/egl_haiku.cpp')
|
|
|
|
env.Prepend(LIBS = [mesautil])
|
|
|
|
egl = env.SharedLibrary(
|
|
target = 'EGL',
|
|
source = egl_sources,
|
|
)
|
|
|
|
egl = env.InstallSharedLibrary(egl, version=(1, 0, 0))
|
|
|
|
env.Alias('egl', egl)
|