egl: set the EGLDevice when creating a display
[mesa.git] / src / egl / SConscript
index 1b2a4271ef73f94be548efb2db55a616b647d6d8..153fdc089234ba398c3dfd393c7b7e0a85aec1da 100644 (file)
@@ -8,6 +8,8 @@ env = env.Clone()
 
 env.Append(CPPPATH = [
     '#/include',
+    '#/include/drm-uapi',
+    '#/include/HaikuGL',
     '#/src/egl/main',
     '#/src',
 ])
@@ -15,7 +17,6 @@ env.Append(CPPPATH = [
 
 # parse Makefile.sources
 egl_sources = env.ParseSourceList('Makefile.sources', 'LIBEGL_C_FILES')
-egl_sources.append(env.ParseSourceList('Makefile.sources', 'dri2_backend_core_FILES'))
 
 env.Append(CPPDEFINES = [
     '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_HAIKU',
@@ -24,6 +25,8 @@ env.Append(CPPDEFINES = [
 ])
 egl_sources.append('drivers/haiku/egl_haiku.cpp')
 
+env.Prepend(LIBS = [mesautil])
+
 egl = env.SharedLibrary(
     target = 'EGL',
     source = egl_sources,