Commit cf329d0a authored by Arnaud Ferraris's avatar Arnaud Ferraris
Browse files

data: add D-Bus service file

parent 08378f29
......@@ -25,3 +25,16 @@ generated_dbus_sources += gnome.gdbus_codegen('callaudio-dbus',
dbus_header_dir = meson.current_build_dir()
dbus_inc = include_directories('.')
install_data(dbus_interfaces, install_dir: ifacedir)
# systemd service file
service_data = configuration_data()
service_data.set('bindir', bindir)
service_file = 'org.mobian_project.CallAudio.service'
configure_file(
input : service_file + '.in',
output : service_file,
configuration : service_data,
install : true,
install_dir: servicedir,
)
[D-BUS Service]
Name=org.mobian_project.CallAudio
Exec=@bindir@/callaudiod
......@@ -26,8 +26,10 @@ app_name = meson.project_name()
prefix = get_option('prefix')
datadir = get_option('datadir')
sysconfdir = get_option('sysconfdir')
bindir = join_paths(prefix, get_option('bindir'))
libdir = join_paths(prefix, get_option('libdir'))
ifacedir = join_paths(prefix, join_paths(datadir, 'dbus-1', 'interfaces'))
servicedir = join_paths(prefix, join_paths(datadir, 'dbus-1', 'services'))
if datadir.startswith('/')
full_datadir = datadir
......
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