demos: Make the demos work in the macOS build.

This commit is contained in:
Henri Verbeet
2025-05-03 17:27:14 +02:00
parent 7b07d77396
commit b389fa89e4
Notes: Henri Verbeet 2025-05-06 19:05:45 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1482
9 changed files with 792 additions and 7 deletions

View File

@@ -187,6 +187,10 @@ case $host_os in
AC_SUBST([DEMO_LIBS],["-lgdi32"])
AC_SUBST([DEMO_CFLAGS],["-municode"])
;;
darwin*)
AC_SUBST([DEMO_LIBS],["-framework Foundation -framework AppKit -framework QuartzCore"])
AC_SUBST([DEMO_CFLAGS],[""])
;;
*) AS_IF([test "x$enable_demos" = "xyes" -a "x$HAVE_XCB" != "xyes"],
[AC_MSG_ERROR([libxcb is required for demos.])])
AC_SUBST([DEMO_LIBS],[$XCB_LIBS])