| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
if conf.get('ENABLE_IMDS') != 1 |
| 4 |
subdir_done() |
| 5 |
endif |
| 6 |
|
| 7 |
executables += [ |
| 8 |
libexec_template + { |
| 9 |
'name' : 'systemd-imdsd', |
| 10 |
'public' : true, |
| 11 |
'sources' : files('imdsd.c'), |
| 12 |
'extract' : files('imds-util.c'), |
| 13 |
}, |
| 14 |
libexec_template + { |
| 15 |
'name' : 'systemd-imds', |
| 16 |
'public' : true, |
| 17 |
'sources' : files('imds-tool.c'), |
| 18 |
'objects' : ['systemd-imdsd'], |
| 19 |
}, |
| 20 |
generator_template + { |
| 21 |
'name' : 'systemd-imds-generator', |
| 22 |
'sources' : files('imds-generator.c'), |
| 23 |
'objects' : ['systemd-imdsd'], |
| 24 |
}, |
| 25 |
] |
| 26 |
|
| 27 |
install_data( |
| 28 |
'io.systemd.imds.policy', |
| 29 |
install_dir : polkitpolicydir) |