Install compatibility files required for building against liblash
This commit is contained in:
parent
3758fcc85e
commit
55406c08a7
|
@ -3,10 +3,9 @@ exec_prefix=@exec_prefix@
|
|||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: LASH
|
||||
Name: LASH (ladish)
|
||||
Description: Audio session management
|
||||
Requires: @PC_REQUIRES@
|
||||
Version: @PACKAGE_VERSION@
|
||||
Version: 0.6.0
|
||||
Libs: -L${libdir} -llash
|
||||
Libs.static: -lpthread -luuid
|
||||
Libs.static:
|
||||
Cflags: -I${includedir}/lash-1.0
|
||||
|
|
16
wscript
16
wscript
|
@ -93,6 +93,8 @@ def configure(conf):
|
|||
else:
|
||||
conf.env['DBUS_SERVICES_DIR'] = os.path.join(os.path.normpath(conf.env['PREFIX']), 'share', 'dbus-1', 'services')
|
||||
|
||||
conf.env['LIBDIR'] = os.path.join(os.path.normpath(conf.env['PREFIX']), 'lib')
|
||||
|
||||
conf.env['BUILD_LIBLASH'] = Options.options.enable_liblash
|
||||
conf.env['BUILD_DOXYGEN_DOCS'] = Options.options.doxygen
|
||||
|
||||
|
@ -333,6 +335,20 @@ def build(bld):
|
|||
liblash.defines = ['LOG_OUTPUT_STDOUT']
|
||||
liblash.source = [os.path.join("lash_compat", "liblash", 'lash.c')]
|
||||
|
||||
bld.install_files('${PREFIX}/include/lash', 'lash_compat/liblash/lash/*.h')
|
||||
|
||||
# process lash-1.0.pc.in -> lash-1.0.pc
|
||||
obj = bld.new_task_gen('subst')
|
||||
obj.source = [os.path.join("lash_compat", 'lash-1.0.pc.in')]
|
||||
obj.target = 'lash-1.0.pc'
|
||||
obj.dict = {'prefix': bld.env['PREFIX'],
|
||||
'exec_prefix': bld.env['PREFIX'],
|
||||
'libdir': bld.env['LIBDIR'],
|
||||
'includedir': os.path.normpath(bld.env['PREFIX'] + '/include'),
|
||||
}
|
||||
obj.install_path = '${LIBDIR}/pkgconfig/'
|
||||
obj.fun = misc.subst_func
|
||||
|
||||
obj = bld.new_task_gen('subst')
|
||||
obj.source = os.path.join('daemon', 'dbus.service.in')
|
||||
obj.target = DBUS_NAME_BASE + '.jmcore.service'
|
||||
|
|
Loading…
Reference in New Issue