meson: Fix compatibility with Fedora's abseil-cpp package
1. Fedora abseil-cpp package is built with C++17: https://src.fedoraproject.org/rpms/abseil-cpp/blob/rawhide/f/abseil-cpp.spec 2. There is no `absl_types` pkgconfig file, and it's only needed on iOS
This commit is contained in:
parent
aa32d179d0
commit
4125ace620
@ -4,7 +4,7 @@ project('webrtc-audio-processing', 'c', 'cpp',
|
||||
default_options : [ 'warning_level=1',
|
||||
'buildtype=debugoptimized',
|
||||
'c_std=c11',
|
||||
'cpp_std=c++14',
|
||||
'cpp_std=c++17',
|
||||
]
|
||||
)
|
||||
|
||||
@ -57,7 +57,6 @@ have_win = false
|
||||
absl_dep = [
|
||||
dependency('absl_base'),
|
||||
dependency('absl_flags'),
|
||||
dependency('absl_types'),
|
||||
dependency('absl_strings'),
|
||||
dependency('absl_synchronization'),
|
||||
]
|
||||
@ -66,6 +65,8 @@ if ['darwin', 'ios'].contains(host_system)
|
||||
os_cflags = ['-DWEBRTC_MAC']
|
||||
if host_system == 'ios'
|
||||
os_cflags += ['-DWEBRTC_IOS']
|
||||
# For absl_bad_optional_access
|
||||
absl_dep += [dependency('absl_types')]
|
||||
endif
|
||||
have_posix = true
|
||||
elif host_system == 'android'
|
||||
|
Loading…
x
Reference in New Issue
Block a user