From 0ea4e8de142dc14bc2b72372a2bae3484657b6db Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-SPFP6AQ\\twistedtechre" Date: Mon, 20 Apr 2026 00:09:39 +0200 Subject: [PATCH] Some linking fixes for Apple/Darwin --- Makefile.common | 18 +++++++++++++++++- playlist.h | 3 ++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Makefile.common b/Makefile.common index db01f67e0a..e97873edbb 100644 --- a/Makefile.common +++ b/Makefile.common @@ -812,20 +812,36 @@ endif ifeq ($(HAVE_COREAUDIO), 1) DEFINES += -DHAVE_COREAUDIO OBJ += audio/drivers/coreaudio.o +ifeq ($(HAVE_MICROPHONE), 1) + OBJ += audio/drivers/coreaudio_mic_macos.o +endif HAVE_COREAUDIO_LIBS = 1 + LIBS += -framework AudioToolbox -framework AVFoundation -framework Accelerate endif ifeq ($(HAVE_COREAUDIO3), 1) DEFINES += -DHAVE_COREAUDIO3 OBJ += audio/drivers/coreaudio3.o HAVE_COREAUDIO_LIBS = 1 - LIBS += -framework AudioToolBox -framework AVFoundation + LIBS += -framework AudioToolbox -framework AVFoundation endif ifeq ($(HAVE_COREAUDIO_LIBS), 1) LIBS += -framework CoreServices -framework CoreAudio -framework AudioUnit endif +ifeq ($(HAVE_CORELOCATION), 1) + DEFINES += -DHAVE_CORELOCATION + OBJ += location/drivers/corelocation.o + LIBS += -framework CoreLocation +endif + +ifeq ($(HAVE_COCOA), 1) + OBJ += ui/drivers/cocoa/cocoa_common.o + OBJ += ui/drivers/cocoa/RetroArchPlaylistManager.o + LIBS += -framework Cocoa -framework AppKit -framework Foundation +endif + ifeq ($(HAVE_CORETEXT), 1) OBJ += gfx/drivers_font_renderer/coretext.o endif diff --git a/playlist.h b/playlist.h index 57e5bf8e51..b014bc3454 100644 --- a/playlist.h +++ b/playlist.h @@ -18,10 +18,11 @@ #ifndef _PLAYLIST_H__ #define _PLAYLIST_H__ +#include #include #include -#include +#include #include #include "core_info.h"