tests: only install service when installed-tests option is set
Julius Härtl
6 years ago
7 | 7 | install: installed, |
8 | 8 | ) |
9 | 9 | |
10 | service_conf = configuration_data () | |
11 | service_conf.set ('bindir', join_paths (prefix, bindir)) | |
12 | configure_file( | |
13 | input: 'org.freedesktop.CloudProviderServerExample.service.in', | |
14 | output: 'org.freedesktop.CloudProviderServerExample.service', | |
15 | configuration: service_conf, | |
16 | install_dir: servicedir, | |
17 | install: installed, | |
18 | ) | |
19 | 10 | |
20 | 11 | if installed |
12 | service_conf = configuration_data () | |
13 | service_conf.set ('bindir', join_paths (prefix, bindir)) | |
14 | configure_file( | |
15 | input: 'org.freedesktop.CloudProviderServerExample.service.in', | |
16 | output: 'org.freedesktop.CloudProviderServerExample.service', | |
17 | configuration: service_conf, | |
18 | install_dir: servicedir, | |
19 | ) | |
21 | 20 | cloudprovidersdata = join_paths (datadir, 'cloud-providers') |
22 | 21 | install_data('org.freedesktop.CloudProviderServerExample.ini', install_dir : cloudprovidersdata) |
23 | 22 | endif |