diff --git a/examples/BUILD.gn b/examples/BUILD.gn index ab37431d0a..b71bbc93a6 100644 --- a/examples/BUILD.gn +++ b/examples/BUILD.gn @@ -583,7 +583,6 @@ if (is_ios || (is_mac && target_cpu != "x86")) { libs = [ "CFNetwork.framework", - "Security.framework", "icucore", ] } diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn index 713fb34ef9..56527b6019 100644 --- a/rtc_base/BUILD.gn +++ b/rtc_base/BUILD.gn @@ -19,6 +19,27 @@ config("rtc_base_chromium_config") { defines = [ "NO_MAIN_THREAD_WRAPPING" ] } +config("rtc_base_all_dependent_config") { + if (is_ios) { + libs = [ + "CFNetwork.framework", + "Foundation.framework", + "Security.framework", + "SystemConfiguration.framework", + "UIKit.framework", + ] + } + if (is_mac) { + libs = [ + "Cocoa.framework", + "Foundation.framework", + "IOKit.framework", + "Security.framework", + "SystemConfiguration.framework", + ] + } +} + if (!rtc_build_ssl) { config("external_ssl_library") { assert(rtc_ssl_root != "", @@ -771,6 +792,8 @@ rtc_static_library("rtc_base") { ] public_configs = [] + all_dependent_configs = [ ":rtc_base_all_dependent_config" ] + sources = [ "async_invoker.cc", "async_invoker.h", @@ -936,22 +959,6 @@ rtc_static_library("rtc_base") { "mac_utils.cc", "mac_utils.h", ] - libs += [ - "Cocoa.framework", - "Foundation.framework", - "IOKit.framework", - "Security.framework", - "SystemConfiguration.framework", - ] - } - if (is_ios) { - libs += [ - "CFNetwork.framework", - "Foundation.framework", - "Security.framework", - "SystemConfiguration.framework", - "UIKit.framework", - ] } if (is_win) { diff --git a/sdk/BUILD.gn b/sdk/BUILD.gn index a778fb1666..8303d8af46 100644 --- a/sdk/BUILD.gn +++ b/sdk/BUILD.gn @@ -373,7 +373,6 @@ if (is_ios || is_mac) { ] libs = [ "VideoToolbox.framework", - "CoreGraphics.framework", "CoreVideo.framework", ] }