2c201c2140
Using conf.set() with a boolean argument does the right thing: either #ifdef or #undef. This means that conf.set can be used unconditionally. Previously I used '1' as the placeholder value, and that needs to be changed to 'true' for consistency (under meson 1 cannot be used in boolean context). All checks need to be adjusted.
15 lines
598 B
Meson
15 lines
598 B
Meson
if conf.get('ENABLE_HOSTNAMED', false)
|
|
install_data('org.freedesktop.hostname1.conf',
|
|
install_dir : dbuspolicydir)
|
|
install_data('org.freedesktop.hostname1.service',
|
|
install_dir : dbussystemservicedir)
|
|
|
|
custom_target(
|
|
'org.freedesktop.hostname1.policy',
|
|
input : 'org.freedesktop.hostname1.policy.in',
|
|
output : 'org.freedesktop.hostname1.policy',
|
|
command : intltool_command,
|
|
install : install_polkit,
|
|
install_dir : polkitpolicydir)
|
|
endif
|