summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun@asymptotic.io>2021-06-18 22:22:01 -0400
committerArun Raghavan <arun@asymptotic.io>2021-06-18 23:44:18 -0400
commitb8ad0dfc224b33fe8b2d9e9807d5c41912d49a58 (patch)
tree64b97f7996e3f4698ec42d415a8fe5d0ad02cda3
parente47b68df57aacc511472a1d4af1838538156931a (diff)
downloadwebrtc-audio-processing-b8ad0dfc224b33fe8b2d9e9807d5c41912d49a58.tar.gz
build: Add framework deps on macOS and iOS
Part-of: <https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/merge_requests/21>
-rw-r--r--webrtc/rtc_base/meson.build17
1 files changed, 16 insertions, 1 deletions
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
)