Skip to content

Commit

Permalink
sdl_mixer: link AudioUnit only on macOS (#25965)
Browse files Browse the repository at this point in the history
  • Loading branch information
kambala-decapitator authored Nov 21, 2024
1 parent b0c05ec commit 4893d2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipes/sdl_mixer/cmake/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def config_options(self):
del self.options.fPIC
if self.settings.os not in ["Linux", "FreeBSD"]:
del self.options.tinymidi
if not (self.settings.os == "Windows" or is_apple_os(self)):
if not (self.settings.os == "Windows" or self.settings.os == "Macos"):
del self.options.nativemidi

def configure(self):
Expand Down Expand Up @@ -260,10 +260,10 @@ def package_info(self):
if self.settings.os == "Windows":
if self.options.nativemidi:
self.cpp_info.system_libs.append("winmm")
elif is_apple_os(self):
self.cpp_info.frameworks.extend(["AudioToolbox", "AudioUnit", "CoreServices", "CoreGraphics", "CoreFoundation"])
elif is_apple_os(self) and not self.options.shared:
self.cpp_info.frameworks.extend(["AudioToolbox", "CoreServices", "CoreGraphics", "CoreFoundation"])
if self.settings.os == "Macos":
self.cpp_info.frameworks.append("AppKit")
self.cpp_info.frameworks.extend(["AppKit", "AudioUnit"])

self.cpp_info.names["cmake_find_package"] = "SDL2_mixer"
self.cpp_info.names["cmake_find_package_multi"] = "SDL2_mixer"

0 comments on commit 4893d2e

Please sign in to comment.