mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-01 05:47:04 +03:00
b36a5ba093
Meson 0.58 has gotten quite bad with emitting a message every time a quoted command is used: Program /home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh found: YES (/home/zbyszek/src/systemd-work/tools/meson-make-symlink.sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program sh found: YES (/usr/bin/sh) Program xsltproc found: YES (/usr/bin/xsltproc) Configuring custom-entities.ent using configuration Message: Skipping bootctl.1 because ENABLE_EFI is false Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Message: Skipping journal-remote.conf.5 because HAVE_MICROHTTPD is false Message: Skipping journal-upload.conf.5 because HAVE_MICROHTTPD is false Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Message: Skipping loader.conf.5 because ENABLE_EFI is false Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) Program ln found: YES (/usr/bin/ln) ... Let's suffer one message only for each command. Hopefully we can silence even this when https://github.com/mesonbuild/meson/issues/8642 is resolved. (cherry picked from commit 596f5101f29c10256208132bfa9c502bf898fd8b) (cherry picked from commit 271b7dcbadd9fed70f87f29f30ef0925619037c9)
70 lines
2.2 KiB
Meson
70 lines
2.2 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
# Those files right now are not supported by the grammar. Also,
|
|
# they are very long but quite repetitive and the parser is not very fast.
|
|
# So we don't "test" them.
|
|
hwdb_files_notest = files('''
|
|
20-pci-vendor-model.hwdb
|
|
20-pci-classes.hwdb
|
|
20-usb-vendor-model.hwdb
|
|
20-usb-classes.hwdb
|
|
20-sdio-vendor-model.hwdb
|
|
20-sdio-classes.hwdb
|
|
20-bluetooth-vendor-product.hwdb
|
|
20-acpi-vendor.hwdb
|
|
20-OUI.hwdb
|
|
20-net-ifname.hwdb
|
|
20-vmbus-class.hwdb
|
|
'''.split())
|
|
|
|
hwdb_files_test = files('''
|
|
60-autosuspend.hwdb
|
|
60-evdev.hwdb
|
|
60-input-id.hwdb
|
|
60-keyboard.hwdb
|
|
60-sensor.hwdb
|
|
70-joystick.hwdb
|
|
70-mouse.hwdb
|
|
70-pointingstick.hwdb
|
|
70-touchpad.hwdb
|
|
'''.split())
|
|
|
|
if conf.get('ENABLE_HWDB') == 1
|
|
auto_suspend_rules = custom_target(
|
|
'60-autosuspend-chromiumos.hwdb',
|
|
output : '60-autosuspend-chromiumos.hwdb',
|
|
command : make_autosuspend_rules_py,
|
|
capture : true,
|
|
install : true,
|
|
install_dir: udevhwdbdir)
|
|
|
|
install_data(hwdb_files_notest,
|
|
hwdb_files_test,
|
|
install_dir : udevhwdbdir)
|
|
|
|
meson.add_install_script('sh', '-c',
|
|
mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
|
|
|
|
meson.add_install_script('sh', '-c',
|
|
'test -n "$DESTDIR" || @0@/systemd-hwdb update'.format(rootbindir))
|
|
|
|
if want_tests != 'false'
|
|
parse_hwdb_py = find_program('parse_hwdb.py')
|
|
test('parse-hwdb',
|
|
parse_hwdb_py,
|
|
args : [hwdb_files_test,
|
|
auto_suspend_rules],
|
|
timeout : 90)
|
|
endif
|
|
endif
|
|
|
|
############################################################
|
|
|
|
run_target(
|
|
'hwdb-update',
|
|
command : [hwdb_update_sh, meson.current_source_dir()])
|
|
|
|
run_target(
|
|
'autosuspend-update',
|
|
command : [autosuspend_update_sh, project_source_root + '/tools/chromiumos'])
|