winemac: Unconditionally link to QuartzCore.

This fixes non-Metal builds.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52216
Signed-off-by: Keno Fischer <keno@juliacomputing.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Keno Fischer 2022-01-06 14:26:20 +00:00 committed by Alexandre Julliard
parent 60faf44ed1
commit 1f17015cea
4 changed files with 4 additions and 4 deletions

2
configure vendored
View File

@ -10322,7 +10322,7 @@ fi
fi
if test "$ac_cv_header_Metal_Metal_h" = "yes"
then
METAL_LIBS="-framework Metal -framework QuartzCore"
METAL_LIBS="-framework Metal"
fi

View File

@ -757,7 +757,7 @@ case $host_os in
fi
if test "$ac_cv_header_Metal_Metal_h" = "yes"
then
AC_SUBST(METAL_LIBS,"-framework Metal -framework QuartzCore")
AC_SUBST(METAL_LIBS,"-framework Metal")
fi
dnl Check for MTLDevice registryID property

View File

@ -1,7 +1,7 @@
MODULE = winemac.drv
IMPORTS = uuid rpcrt4 user32 gdi32 advapi32 win32u
DELAYIMPORTS = ole32 shell32 imm32
EXTRALIBS = -framework AppKit -framework Carbon -framework Security -framework OpenGL -framework IOKit -framework CoreVideo $(METAL_LIBS)
EXTRALIBS = -framework AppKit -framework Carbon -framework Security -framework OpenGL -framework IOKit -framework CoreVideo -framework QuartzCore $(METAL_LIBS)
EXTRADLLFLAGS = -mcygwin

View File

@ -25,8 +25,8 @@
#import <CoreVideo/CoreVideo.h>
#ifdef HAVE_METAL_METAL_H
#import <Metal/Metal.h>
#import <QuartzCore/QuartzCore.h>
#endif
#import <QuartzCore/QuartzCore.h>
#import "cocoa_window.h"