Install D-Bus service file
This commit is contained in:
parent
983c28234b
commit
87bea07447
|
@ -0,0 +1,3 @@
|
||||||
|
[D-BUS Service]
|
||||||
|
Name=@dbus_object_path@
|
||||||
|
Exec=@daemon_bin_path@
|
|
@ -1,3 +0,0 @@
|
||||||
[D-BUS Service]
|
|
||||||
Name=org.nongnu.LASH
|
|
||||||
Exec=@bindir@/lashd
|
|
18
wscript
18
wscript
|
@ -7,6 +7,7 @@ import Utils
|
||||||
|
|
||||||
APPNAME='ladish'
|
APPNAME='ladish'
|
||||||
VERSION='1'
|
VERSION='1'
|
||||||
|
DBUS_NAME_BASE = 'org.nongnu.LASH'
|
||||||
|
|
||||||
# these variables are mandatory ('/' are converted automatically)
|
# these variables are mandatory ('/' are converted automatically)
|
||||||
srcdir = '.'
|
srcdir = '.'
|
||||||
|
@ -143,14 +144,15 @@ def build(bld):
|
||||||
|
|
||||||
daemon.source.append(os.path.join("common", "safety.c"))
|
daemon.source.append(os.path.join("common", "safety.c"))
|
||||||
|
|
||||||
# process org.jackaudio.service.in -> org.jackaudio.service
|
# process name.arnaudov.nedko.ladish.service.in -> name.arnaudov.nedko.ladish.service
|
||||||
#import misc
|
import misc
|
||||||
#obj = bld.new_task_gen('subst')
|
obj = bld.new_task_gen('subst')
|
||||||
#obj.source = 'org.jackaudio.service.in'
|
obj.source = os.path.join('daemon', 'dbus.service.in')
|
||||||
#obj.target = 'org.jackaudio.service'
|
obj.target = DBUS_NAME_BASE + '.service'
|
||||||
#obj.dict = {'BINDIR': bld.env['PREFIX'] + '/bin'}
|
obj.dict = {'dbus_object_path': DBUS_NAME_BASE,
|
||||||
#obj.install_path = '${DBUS_SERVICES_DIR}/'
|
'daemon_bin_path': os.path.join(bld.env['PREFIX'], 'bin', daemon.target)}
|
||||||
#obj.fun = misc.subst_func
|
obj.install_path = bld.env['DBUS_SERVICES_DIR'] + os.path.sep
|
||||||
|
obj.fun = misc.subst_func
|
||||||
|
|
||||||
liblash = bld.new_task_gen('cc', 'shlib')
|
liblash = bld.new_task_gen('cc', 'shlib')
|
||||||
liblash.includes = "build/default" # XXX config.h version.h and other generated files
|
liblash.includes = "build/default" # XXX config.h version.h and other generated files
|
||||||
|
|
Loading…
Reference in New Issue