August 7, 2018 1:42 PM, "Henri Verbeet" hverbeet@gmail.com wrote:
On 4 August 2018 at 01:42, Chip Davis cdavis@codeweavers.com wrote:
diff --git a/configure.ac b/configure.ac index 2773a15..7c2a560 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,18 @@ AS_IF([test "x$with_spirv_tools" = "xyes"], HAVE_SPIRV_TOOLS=yes])])
PKG_CHECK_MODULES([XCB], [xcb xcb-keysyms]) +case $host_os in
- darwin*|macosx*)
- enable_demos_default=no
- ;;
- *)
- enable_demos_default=yes
- ;;
+esac
+AC_ARG_ENABLE([demos], AS_HELP_STRING([--enable-demos], [Build demo programs]),,
- [enable_demos=$enable_demos_default])
+AM_CONDITIONAL(BUILD_DEMOS, [test "x$enable_demos" != "xno"])
The way I'd imagine this working would be to enable the demos if we have XCB, unless they've explicitly been disabled.
I think we only want to enable them if we found XCB, *and* there's a Vulkan ICD that supports it.
Chip