[Mesa-dev] [PATCH v2 3/8] Haiku: add support in src/egl/Makefile.am

Jerome Duval jerome.duval at gmail.com
Tue Oct 24 16:11:03 UTC 2017


From: Jérôme Duval <jerome.duval at gmail.com>

---
 src/egl/Makefile.am | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
index eeb745f..9b8528645 100644
--- a/src/egl/Makefile.am
+++ b/src/egl/Makefile.am
@@ -52,6 +52,7 @@ libEGL_common_la_LIBADD = \
 
 dri2_backend_FILES =
 dri3_backend_FILES =
+haiku_backend_FILES =
 
 if HAVE_PLATFORM_X11
 AM_CFLAGS += $(XCB_DRI2_CFLAGS)
@@ -108,6 +109,22 @@ libEGL_common_la_LIBADD += $(ANDROID_LIBS)
 dri2_backend_FILES += drivers/dri2/platform_android.c
 endif
 
+if HAVE_HAIKU
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/include \
+	-I$(top_srcdir)/include/HaikuGL \
+	-I$(top_srcdir)/src/egl/main \
+	-I$(top_srcdir)/src/ \
+	-D_EGL_BUILT_IN_DRIVER_HAIKU \
+	-D_EGL_NATIVE_PLATFORM=$(EGL_NATIVE_PLATFORM)
+haiku_backend_FILES += drivers/haiku/egl_haiku.cpp
+libEGL_common_la_LIBADD += $(top_builddir)/src/hgl/libGL.la
+libEGL_common_la_SOURCES += \
+	$(haiku_backend_FILES)
+
+endif
+
+if !HAVE_HAIKU
 AM_CFLAGS += \
 	-I$(top_srcdir)/src/loader \
 	-I$(top_builddir)/src/egl/drivers/dri2 \
@@ -151,6 +168,8 @@ g_egldispatchstubs.h: $(GLVND_GEN_DEPS)
 BUILT_SOURCES += g_egldispatchstubs.c g_egldispatchstubs.h
 CLEANFILES = $(BUILT_SOURCES)
 
+endif
+
 if USE_LIBGLVND
 AM_CFLAGS += \
 	$(GLVND_CFLAGS)
@@ -207,7 +226,6 @@ TESTS = egl-symbols-check \
 EXTRA_DIST = \
 	$(TESTS) \
 	SConscript \
-	drivers/haiku \
 	main/egl.def \
 	main/README.txt \
 	$(GLVND_GEN_DEPS) \
-- 
2.7.4



More information about the mesa-dev mailing list