Fix -Dbuild=library target

This commit is contained in:
Richard Hughes 2023-02-15 14:22:53 +00:00 committed by Mario Limonciello
parent 5db1809619
commit af862c615d
2 changed files with 27 additions and 18 deletions

View File

@ -16,7 +16,16 @@ if [ "$QUBES" = "true" ]; then
QUBES_MACRO=(--define "qubes_packages 1")
fi
# smoke test something small with no auto-deps
meson setup .. \
-Dbuild=library \
-Dauto_features=disabled \
-Dtests=false
ninja-build
rm -rf *
# do the full-fat build
meson setup \
-Ddocs=disabled \
-Dman=true \
-Dtests=true \

View File

@ -590,25 +590,25 @@ if build_standalone
]
subdir('plugins')
subdir('src')
endif
subdir('docs')
subdir('docs')
# append all the quirks into one big file and gzip it -- lzma is smaller, but needs libxmlb 0.3.3
builtin_quirk = custom_target('builtin-quirk',
input: plugin_quirks,
output: 'builtin.quirk',
capture: true,
command: ['cat', '@INPUT@'],
)
gzip = find_program('gzip')
custom_target('builtin-quirk-gz',
input: builtin_quirk,
output: 'builtin.quirk.gz',
capture: true,
command: [gzip, '-n', '-k', '--stdout', '@INPUT@'],
install: true,
install_dir: join_paths(datadir, 'fwupd', 'quirks.d'),
)
# append all the quirks into one big file and gzip it -- lzma is smaller, but needs libxmlb 0.3.3
builtin_quirk = custom_target('builtin-quirk',
input: plugin_quirks,
output: 'builtin.quirk',
capture: true,
command: ['cat', '@INPUT@'],
)
gzip = find_program('gzip')
custom_target('builtin-quirk-gz',
input: builtin_quirk,
output: 'builtin.quirk.gz',
capture: true,
command: [gzip, '-n', '-k', '--stdout', '@INPUT@'],
install: true,
install_dir: join_paths(datadir, 'fwupd', 'quirks.d'),
)
endif
if build_daemon and libsystemd.found() and offline.allowed()
install_symlink('fwupd-offline-update.service',