From: Emil Velikov <emil.veli...@collabora.com> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- Should we keep this here and feed the defines to all sources or apply them locally ?
If we go with this approach, need to drop the other existing defines. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 602b2c7..6bb81a2 100644 --- a/configure.ac +++ b/configure.ac @@ -2225,24 +2225,29 @@ for plat in $platforms; do if test "x$WAYLAND_SCANNER" = x; then AC_MSG_ERROR([wayland-scanner is needed to compile the wayland platform]) fi + DEFINES="$DEFINES -DHAVE_PLATFORM_WAYLAND" ;; x11) # XXX: split and correctly honour DRI2 vs DRI3 PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes]) + DEFINES="$DEFINES -DHAVE_PLATFORM_X11" ;; drm) # May not be required for the VL targets. test "x$enable_gbm" = "xno" && AC_MSG_ERROR([EGL platform drm needs gbm]) + DEFINES="$DEFINES -DHAVE_PLATFORM_DRM" ;; surfaceless) + DEFINES="$DEFINES -DHAVE_PLATFORM_SURFACELESS" ;; android) PKG_CHECK_MODULES([ANDROID], [cutils hardware sync]) + DEFINES="$DEFINES -DHAVE_PLATFORM_ANDROID" ;; *) -- 2.10.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev