File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,11 +244,12 @@ check_platform Linux RPILED 'The RPI led driver is' true
244244check_platform Darwin METAL ' Metal is' true
245245
246246if [ " $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
Original file line number Diff line number Diff line change @@ -214,3 +214,4 @@ HAVE_TEST_DRIVERS=yes # Test input driver
214214HAVE_GAME_AI=no
215215HAVE_SMBCLIENT=auto # SMB client support
216216HAVE_BUILTINSMBCLIENT=no # Use builtin libsmb2
217+ HAVE_COCOA=auto # Cocoa support (Darwin/Apple)
You can’t perform that action at this time.
0 commit comments