fwupd/plugins/modem-manager/meson.build
Mario Limonciello 15c9cac1b0 add an rpath to things not compiled into a library
A harmless error shows up in debian packages at build time:
```
dpkg-shlibdeps: warning: cannot find library libfwupdplugin.so needed by debian/fwupd/usr/lib/x86_64-linux-gnu/fwupd-1.8.6/libfu_plugin_flashrom.so (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
```

This doesn't cause a functional problem because libfwupdplugin has already
been loaded by the daemon by the time these libraries are loaded.

In case the `dpkg-shlibdeps` checker becomes more stringent in the future
fix the warning.
2022-10-07 14:16:37 -05:00

40 lines
1.1 KiB
Meson

libmm_glib = dependency('mm-glib', version: '>= 1.10.0', required: get_option('plugin_modem_manager'))
libqmi_glib = dependency('qmi-glib', version: '>= 1.23.1', required: get_option('plugin_modem_manager'))
libmbim_glib = dependency('mbim-glib', version: '>= 1.22.0', required: get_option('plugin_modem_manager'))
if libmm_glib.found() and \
libqmi_glib.found() and \
libmbim_glib.found() and \
get_option('plugin_modem_manager').require(gudev.found(),
error_message: 'gudev is needed for plugin_modem_manager').allowed()
cargs = ['-DG_LOG_DOMAIN="FuPluginMm"']
cargs +=['-DMM_REQUIRED_VERSION="1.10.0"']
plugin_quirks += files('modem-manager.quirk')
shared_module('fu_plugin_modem_manager',
sources: [
'fu-mm-plugin.c',
'fu-mm-device.c',
'fu-qmi-pdc-updater.c',
'fu-mbim-qdu-updater.c',
'fu-firehose-updater.c',
'fu-sahara-loader.c',
'fu-mm-utils.c'
],
include_directories: plugin_incdirs,
install: true,
install_rpath: libdir_pkg,
install_dir: libdir_pkg,
c_args: cargs,
link_with: plugin_libs,
dependencies: [
plugin_deps,
libmm_glib,
libqmi_glib,
libmbim_glib,
],
)
endif