diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 4b2dbb4954..67424b03c9 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -588,6 +588,18 @@ check_macro NEON __ARM_NEON__ add_define MAKEFILE OS "$OS" +if [ "$HAVE_DEBUG" = 'yes' ]; then + add_define MAKEFILE DEBUG 1 + if [ "$HAVE_OPENGL" = 'yes' ] || + [ "$HAVE_OPENGLES" = 'yes' ] || + [ "$HAVE_OPENGLES3" = 'yes' ]; then + add_define MAKEFILE GL_DEBUG 1 + fi + if [ "$HAVE_VULKAN" = 'yes' ]; then + add_define MAKEFILE VULKAN_DEBUG 1 + fi +fi + if [ "$HAVE_ZLIB" = 'no' ] && [ "$HAVE_RPNG" != 'no' ]; then HAVE_RPNG=no die : 'Notice: zlib is not available, RPNG will also be disabled.' diff --git a/qb/config.params.sh b/qb/config.params.sh index 524b012bec..029eb822ef 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -6,6 +6,7 @@ HAVE_OPENGLES_LIBS= # Link flags for custom GLES library HAVE_OPENGLES_CFLAGS= # C-flags for custom GLES library HAVE_CACA=no # Libcaca support HAVE_SIXEL=no # Libsixel support +HAVE_DEBUG=no # Enable a debug build HAVE_LIBRETRODB=yes # Libretrodb support HAVE_MENU=yes # Enable menu drivers HAVE_RGUI=auto # RGUI menu