commit dafda85a58afd0560359f15a2b34f25567dee53d
parent 7aca2d704e8b05d2df7a19a7767abd39b58494e6
Author: Ryan VanderMeulen <rvandermeulen@mozilla.com>
Date: Wed, 8 Oct 2025 02:37:46 +0000
Bug 1992910 - Clean up macOS framework declarations. r=firefox-build-system-reviewers,glandium
Instead of duplicating frameworks for macOS and iOS builds, factor out the common ones
and leave the platform-specific frameworks in their own sections.
Differential Revision: https://phabricator.services.mozilla.com/D267727
Diffstat:
1 file changed, 16 insertions(+), 24 deletions(-)
diff --git a/toolkit/library/moz.build b/toolkit/library/moz.build
@@ -204,33 +204,33 @@ if CONFIG["MOZ_WEBRTC"]:
if CONFIG["OS_ARCH"] == "Darwin":
OS_LIBS += [
+ "-framework AudioToolbox",
+ "-framework AVFoundation",
+ "-framework CoreFoundation",
+ "-framework CoreMedia",
+ "-framework CoreVideo",
+ "-framework Foundation",
"-framework MediaPlayer",
"-framework Metal",
+ "-framework QuartzCore",
+ "-framework Security",
]
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
OS_LIBS += [
- "-framework Foundation",
- "-framework CoreFoundation",
- "-framework CoreLocation",
- "-framework QuartzCore",
+ "-framework AddressBook",
+ "-framework AppKit",
+ "-framework ApplicationServices",
+ "-framework AudioUnit",
"-framework Carbon",
"-framework CoreAudio",
- "-framework CoreVideo",
- "-framework AudioToolbox",
- "-framework AudioUnit",
- "-framework AddressBook",
+ "-framework CoreLocation",
+ "-framework CoreMIDI",
+ "-framework CoreServices",
+ "-framework IOKit",
"-framework OpenGL",
- "-framework Security",
"-framework ServiceManagement",
- "-framework CoreServices",
- "-framework ApplicationServices",
- "-framework AppKit",
- "-framework CoreMIDI",
"-framework SystemConfiguration",
- "-framework AVFoundation",
- "-framework CoreMedia",
- "-framework IOKit",
"-weak_framework ScreenCaptureKit",
"cups",
]
@@ -240,17 +240,9 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "uikit":
OS_LIBS += [
- "-framework Foundation",
- "-framework CoreFoundation",
"-framework CoreGraphics",
"-framework CoreText",
- "-framework AVFoundation",
- "-framework AudioToolbox",
- "-framework CoreMedia",
- "-framework CoreVideo",
"-framework OpenGLES",
- "-framework QuartzCore",
- "-framework Security",
]
if CONFIG["MOZ_WMF"]: