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") QUBES_MACRO=(--define "qubes_packages 1")
fi fi
# smoke test something small with no auto-deps
meson setup .. \ meson setup .. \
-Dbuild=library \
-Dauto_features=disabled \
-Dtests=false
ninja-build
rm -rf *
# do the full-fat build
meson setup \
-Ddocs=disabled \ -Ddocs=disabled \
-Dman=true \ -Dman=true \
-Dtests=true \ -Dtests=true \

View File

@ -590,25 +590,25 @@ if build_standalone
] ]
subdir('plugins') subdir('plugins')
subdir('src') 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 # 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', builtin_quirk = custom_target('builtin-quirk',
input: plugin_quirks, input: plugin_quirks,
output: 'builtin.quirk', output: 'builtin.quirk',
capture: true, capture: true,
command: ['cat', '@INPUT@'], command: ['cat', '@INPUT@'],
) )
gzip = find_program('gzip') gzip = find_program('gzip')
custom_target('builtin-quirk-gz', custom_target('builtin-quirk-gz',
input: builtin_quirk, input: builtin_quirk,
output: 'builtin.quirk.gz', output: 'builtin.quirk.gz',
capture: true, capture: true,
command: [gzip, '-n', '-k', '--stdout', '@INPUT@'], command: [gzip, '-n', '-k', '--stdout', '@INPUT@'],
install: true, install: true,
install_dir: join_paths(datadir, 'fwupd', 'quirks.d'), install_dir: join_paths(datadir, 'fwupd', 'quirks.d'),
) )
endif
if build_daemon and libsystemd.found() and offline.allowed() if build_daemon and libsystemd.found() and offline.allowed()
install_symlink('fwupd-offline-update.service', install_symlink('fwupd-offline-update.service',