build: Add framework deps on macOS and iOS
Part-of: <https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/merge_requests/21>
This commit is contained in:
parent
e47b68df57
commit
b8ad0dfc22
@ -51,9 +51,24 @@ foreach h : base_headers
|
|||||||
)
|
)
|
||||||
endforeach
|
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',
|
libbase = static_library('libbase',
|
||||||
base_sources,
|
base_sources,
|
||||||
dependencies: common_deps,
|
dependencies: common_deps + base_os_deps,
|
||||||
include_directories: webrtc_inc,
|
include_directories: webrtc_inc,
|
||||||
cpp_args : common_cxxflags
|
cpp_args : common_cxxflags
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user