meson - ethumb - fix build and install of service files for ethumb
This commit is contained in:
parent
41f7ae6e49
commit
6eb608b9cc
|
@ -0,0 +1,18 @@
|
||||||
|
dep = dependency('dbus-1')
|
||||||
|
|
||||||
|
org_enlightenment_ethumb_service_config = configuration_data()
|
||||||
|
|
||||||
|
org_enlightenment_ethumb_service_config.set('prefix', dir_prefix)
|
||||||
|
|
||||||
|
systemd_dbus_prefix = '# '
|
||||||
|
if get_option('systemd') == true
|
||||||
|
systemd_dbus_prefix = ''
|
||||||
|
endif
|
||||||
|
org_enlightenment_ethumb_service_config.set('systemd_dbus_prefix',
|
||||||
|
systemd_dbus_prefix)
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
input: 'org.enlightenment.Ethumb.service.in',
|
||||||
|
output: 'org.enlightenment.Ethumb.service',
|
||||||
|
configuration: org_enlightenment_ethumb_service_config,
|
||||||
|
install_dir: dep.get_pkgconfig_variable('session_bus_services_dir'))
|
|
@ -384,3 +384,6 @@ configure_file(
|
||||||
configuration: config_h,
|
configuration: config_h,
|
||||||
install_dir : join_paths(dir_include,'elementary-'+version_major)
|
install_dir : join_paths(dir_include,'elementary-'+version_major)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
subdir(join_paths('systemd-services'))
|
||||||
|
subdir(join_paths('dbus-services'))
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
if get_option('systemd') == true
|
||||||
|
dep = dependency('systemd')
|
||||||
|
|
||||||
|
ethumb_service_config = configuration_data()
|
||||||
|
|
||||||
|
ethumb_service_config.set('prefix', dir_prefix)
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
input: 'ethumb.service.in',
|
||||||
|
output: 'ethumb.service',
|
||||||
|
configuration: ethumb_service_config,
|
||||||
|
install_dir: dep.get_pkgconfig_variable('systemduserunitdir'))
|
||||||
|
endif
|
Loading…
Reference in New Issue