meson.build 766 Bytes
Newer Older
1 2 3 4
# 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).

5 6 7
# This library requires a symbol from module-echo-cancel, hence we need
# '-Wl,--unresolved-symbols=ignore-in-object-files' otherwise it fails
# at link time.
8 9 10 11 12

libwebrtc_util_sources = [
  'webrtc.cc'
]

13
libwebrtc_util = shared_library('webrtc-util',
14 15 16 17
  libwebrtc_util_sources,
  cpp_args : [pa_c_args, server_c_args],
  include_directories : [configinc, topinc],
  dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, webrtc_dep],
18
  link_args : [nodelete_link_args, '-Wl,--unresolved-symbols=ignore-in-object-files'],
19 20
  install : true,
  install_dir : modlibexecdir,
21
)