Debian Codegraph @

data/tests/pki/meson.build

raw
1 install_data([
2 'GPG-KEY-Linux-Vendor-Firmware-Service',
3 'LVFS-CA.pem',
4 'test.ed25519',
5 ],
6 install_dir: join_paths(installed_test_datadir, 'pki'),
7 )
8
9 # generate certificate
10 if certtool.found()
11 pkcs7_config = join_paths(meson.current_source_dir(), 'test.cfg')
12 pkcs7_certificate = custom_target('test.pem',
13 input: pkcs7_privkey,
14 output: 'test.pem',
15 command: [certtool, '--generate-self-signed',
16 '--template', pkcs7_config,
17 '--load-privkey', '@INPUT@',
18 '--outfile', '@OUTPUT@'],
19 install: true,
20 install_dir: join_paths(installed_test_datadir, 'pki'),
21 )
22 endif