From b8ad0dfc224b33fe8b2d9e9807d5c41912d49a58 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 18 Jun 2021 22:22:01 -0400 Subject: build: Add framework deps on macOS and iOS Part-of: --- webrtc/rtc_base/meson.build | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/webrtc/rtc_base/meson.build b/webrtc/rtc_base/meson.build index 28526e9..43b1054 100644 --- a/webrtc/rtc_base/meson.build +++ b/webrtc/rtc_base/meson.build @@ -51,9 +51,24 @@ foreach h : base_headers ) endforeach +base_os_deps = [] +if host_system == 'darwin' + base_os_deps += dependency('appleframeworks', modules: [ 'Foundation' ]) +elif host_system == 'ios' + base_os_deps += dependency('appleframeworks', + modules: [ + 'CFNetwork', + 'Foundation', + 'Security', + 'SystemConfiguration', + 'UIKit', + ] + ) +endif + libbase = static_library('libbase', base_sources, - dependencies: common_deps, + dependencies: common_deps + base_os_deps, include_directories: webrtc_inc, cpp_args : common_cxxflags ) -- cgit v1.2.1