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

Emil Velikov emil.l.velikov at gmail.com
Thu Oct 26 13:11:37 UTC 2017


On 24 October 2017 at 17:11, Jerome Duval <jerome.duval at gmail.com> wrote:
> 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
Why do you need the libGL link here?

> +libEGL_common_la_SOURCES += \
> +       $(haiku_backend_FILES)
> +

> +endif
> +
> +if !HAVE_HAIKU
Swap this with an "else" ?

Thanks
Emil


More information about the mesa-dev mailing list