Skip to content

Commit be638e4

Browse files
committed
Add extra rules for COCOA
1 parent 6409cd6 commit be638e4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

qb/config.libs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,12 @@ check_platform Linux RPILED 'The RPI led driver is' true
244244
check_platform Darwin METAL 'Metal is' true
245245

246246
if [ "$OS" = 'Darwin' ]; then
247+
check_platform Darwin COCOA 'Cocoa is' true
247248
check_lib '' COREAUDIO "-framework AudioUnit" AudioUnitInitialize
248249
check_lib '' CORETEXT "-framework CoreText" CTFontCreateWithName
249250
add_opt CRTSWITCHRES no
250251

251-
if [ "$HAVE_METAL" = yes ]; then
252+
if [ "$HAVE_METAL" = yes ] || [ "$HAVE_VULKAN" = yes ]; then
252253
check_lib '' COCOA_METAL "-framework AppKit" NSApplicationMain
253254
else
254255
check_lib '' COCOA "-framework AppKit" NSApplicationMain

qb/config.params.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,4 @@ HAVE_TEST_DRIVERS=yes # Test input driver
214214
HAVE_GAME_AI=no
215215
HAVE_SMBCLIENT=auto # SMB client support
216216
HAVE_BUILTINSMBCLIENT=no # Use builtin libsmb2
217+
HAVE_COCOA=auto # Cocoa support (Darwin/Apple)

0 commit comments

Comments
 (0)