From: Mateusz Majewski Date: Tue, 25 Mar 2025 13:13:50 +0000 (+0100) Subject: Remove some unnecessary dependencies X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2592acb8ff33674965e6acbfd29455ce83b5a111;p=sdk%2Femulator%2Fqemu.git Remove some unnecessary dependencies We remove all DMABUF support. We do not use it, and we cannot use it at all, since we want to support non-Linux platforms. We also remove GBM, as it is used only together with DMABUFs. Additionally we remove X11, since we have no need to access it directly even on Linux. While it would be preferable to embrace the conditional support, I could not get this to work (building DMABUF-code resulted in immediate linker errors for me, for example), and I felt like this is the cleanest way of not building the code we aren't using. Change-Id: I3afa07b2631ba81ecaca7ce9d6a3a7b9aec4e596 --- diff --git a/configure b/configure index 0e705d3097..31bd2d52b8 100755 --- a/configure +++ b/configure @@ -3580,14 +3580,12 @@ libs_softmmu="$libs_softmmu $fdt_libs" # opengl probe (for sdl2, gtk, milkymist-tmu2) if test "$opengl" != "no" ; then - opengl_pkgs="epoxy gbm" - if $pkg_config $opengl_pkgs x11; then - opengl_cflags="$($pkg_config --cflags $opengl_pkgs) $x11_cflags" - opengl_libs="$($pkg_config --libs $opengl_pkgs) $x11_libs" + opengl_pkgs="epoxy" + if $pkg_config $opengl_pkgs; then + opengl_cflags="$($pkg_config --cflags $opengl_pkgs)" + opengl_libs="$($pkg_config --libs $opengl_pkgs)" opengl=yes - if test "$gtk" = "yes" && $pkg_config --exists "$gtkpackage >= 3.16"; then - gtk_gl="yes" - fi + opengl_dmabuf=no else if test "$opengl" = "yes" ; then feature_not_found "opengl" "Please install opengl (mesa) devel pkgs: $opengl_pkgs" @@ -3595,19 +3593,7 @@ if test "$opengl" != "no" ; then opengl_cflags="" opengl_libs="" opengl=no - fi -fi - -if test "$opengl" = "yes"; then - cat > $TMPC << EOF -#include -#ifndef EGL_MESA_image_dma_buf_export -# error mesa/epoxy lacks support for dmabufs (mesa 10.6+) -#endif -int main(void) { return 0; } -EOF - if compile_prog "" "" ; then - opengl_dmabuf=yes + opengl_dmabuf=no fi fi