Commit 7407a690 by Julius Härtl

Merge branch 'install-test-service' into 'master'

tests: only install service when installed-tests option is set

See merge request !20
parents a99e9247 b416f0a2
Pipeline #108 failed with stage
in 9 seconds
...@@ -8,17 +8,16 @@ executable('testcloudproviderclient', 'testcloudproviderclient.c', ...@@ -8,17 +8,16 @@ executable('testcloudproviderclient', 'testcloudproviderclient.c',
install: installed, install: installed,
) )
service_conf = configuration_data ()
service_conf.set ('bindir', join_paths (prefix, bindir))
configure_file(
input: 'org.freedesktop.CloudProviderServerExample.service.in',
output: 'org.freedesktop.CloudProviderServerExample.service',
configuration: service_conf,
install_dir: servicedir,
install: installed,
)
if installed if installed
service_conf = configuration_data ()
service_conf.set ('bindir', join_paths (prefix, bindir))
configure_file(
input: 'org.freedesktop.CloudProviderServerExample.service.in',
output: 'org.freedesktop.CloudProviderServerExample.service',
configuration: service_conf,
install_dir: servicedir,
)
cloudprovidersdata = join_paths (datadir, 'cloud-providers') cloudprovidersdata = join_paths (datadir, 'cloud-providers')
install_data('org.freedesktop.CloudProviderServerExample.ini', install_dir : cloudprovidersdata) install_data('org.freedesktop.CloudProviderServerExample.ini', install_dir : cloudprovidersdata)
endif endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment