fwupd/data/tests/missing-hwid/meson.build
Richard Hughes 2ec78d68db Add support for HWID requirements
In the latest version of the LVFS you can restrict the firmware to a specific
machine type, for instance a specific baseboard vendor. This is the same as
done in Microsoft Update using the CHID mechanism.

This commit adds support for the <hardware> requires type, although it needs to
be built against appstream-glib 0.7.4 to be supported and/or tested.
2017-11-03 23:42:57 +00:00

14 lines
318 B
Meson

gcab = find_program('gcab', required : false)
if gcab.found()
hwid_test_firmware = custom_target('hwid-test-firmware',
input : [
'firmware.bin',
'firmware.metainfo.xml',
],
output : 'hwid-1.2.3.cab',
command : [
gcab, '--create', '--nopath', '@OUTPUT@', '@INPUT@',
],
)
endif