summaryrefslogtreecommitdiff
path: root/src/modules/echo-cancel/meson.build
blob: 94420c289bf6ee1ac5032ba7c6cd8716f7ba1fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# The webrtc code is split off into a helper library to avoid having automake
# link module-echo-cancel with C++ (which it does if there are any C++ deps,
# even conditional ones).

# This library requires a symbol from module-echo-cancel, hence we need
# '-Wl,--unresolved-symbols=ignore-in-object-files', or
# '-Wl,-undefined,dynamic_lookup' on macOS, otherwise it fails
# at link time.

add_languages('cpp')

libwebrtc_util_sources = [
  'webrtc.cc'
]

if host_machine.system() == 'darwin'
  ignore_unresolved_symbols_link_args = ['-Wl,-undefined,dynamic_lookup']
else
  ignore_unresolved_symbols_link_args = ['-Wl,--unresolved-symbols=ignore-in-object-files']
endif

libwebrtc_util = shared_library('webrtc-util',
  libwebrtc_util_sources,
  cpp_args : [pa_c_args, server_c_args],
  include_directories : [configinc, topinc],
  dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, libatomic_ops_dep, webrtc_dep, libintl_dep],
  link_args : [nodelete_link_args, ignore_unresolved_symbols_link_args],
  install : true,
  install_rpath : privlibdir,
  install_dir : modlibexecdir,
)