# 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)"
+ echo "cflags: $opengl_cflags"
+ echo "libs: $opengl_libs"
opengl=yes
if test "$gtk" = "yes" && $pkg_config --exists "$gtkpackage >= 3.16"; then
gtk_gl="yes"
fi
fi
-if test "$opengl" = "yes"; then
- cat > $TMPC << EOF
-#include <epoxy/egl.h>
-#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
- fi
-fi
+# if test "$opengl" = "yes"; then
+# cat > $TMPC << EOF
+# #include <epoxy/egl.h>
+# #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
+# fi
+# fi
##########################################
# archipelago probe
#include <epoxy/gl.h>
#include <epoxy/egl.h>
-#include <gbm.h>
#define Window EGLNativeWindowType
extern EGLDisplay *qemu_egl_display;
#ifdef CONFIG_OPENGL_DMABUF
+#include <gbm.h>
+
extern int qemu_egl_rn_fd;
extern struct gbm_device *qemu_egl_rn_gbm_dev;
extern EGLContext qemu_egl_rn_ctx;
export CROSS_PREFIX=x86_64-w64-mingw32
fi
+ cp $SRCDIR/deps/lib/* $ROOTDIR/lib/
+ cp $SRCDIR/deps/pc/* $ROOTDIR/lib/pkgconfig
+ cp -r $SRCDIR/deps/include/* $ROOTDIR/include
+
# correct pc's prefix since windows install script is not run
# on linux
cd ${ROOTDIR}/lib/pkgconfig