fwupd/plugins/ccgx/meson.build
Mario Limonciello ec0496b47a Make libfwupdplugin an internal library instead
This drops the requirement on us being so strict on a particular ABI version,
and also more strongly discourages out of tree plugin development.

We should still strive to keep API stable, and as such keep a symbol map still.

Use rpath instead for the static plugins, and set the plugin install directory
to just fwupd-$ABI$ as we're storing more than just plugins here now.
2022-09-28 10:04:12 +01:00

75 lines
1.6 KiB
Meson

if gusb.found()
cargs = ['-DG_LOG_DOMAIN="FuPluginCcgx"']
plugin_quirks += files([
'ccgx-ids.quirk',
'ccgx.quirk',
])
shared_module('fu_plugin_ccgx',
fu_hash,
sources: [
'fu-plugin-ccgx.c',
'fu-ccgx-common.c', # fuzzing
'fu-ccgx-firmware.c', # fuzzing
'fu-ccgx-hid-device.c',
'fu-ccgx-hpi-common.c',
'fu-ccgx-hpi-device.c',
'fu-ccgx-dmc-device.c',
'fu-ccgx-dmc-firmware.c', # fuzzing
'fu-ccgx-dmc-common.c', # fuzzing
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
install: true,
install_dir: plugin_dir,
link_with: [
fwupd,
fwupdplugin,
],
c_args: cargs,
dependencies: [
plugin_deps,
gudev,
],
)
endif
if get_option('tests')
install_data(['tests/ccgx.builder.xml', 'tests/ccgx-dmc.builder.xml'],
install_dir: join_paths(installed_test_datadir, 'tests'))
env = environment()
env.set('G_TEST_SRCDIR', meson.current_source_dir())
env.set('G_TEST_BUILDDIR', meson.current_build_dir())
e = executable(
'ccgx-self-test',
fu_hash,
sources: [
'fu-self-test.c',
'fu-ccgx-common.c',
'fu-ccgx-firmware.c',
'fu-ccgx-dmc-common.c',
'fu-ccgx-dmc-firmware.c',
],
include_directories: [
root_incdir,
fwupd_incdir,
fwupdplugin_incdir,
],
dependencies: [
plugin_deps,
],
link_with: [
fwupd,
fwupdplugin,
],
install: true,
install_rpath: plugin_dir,
install_dir: installed_test_bindir,
)
test('ccgx-self-test', e, env: env)
endif