add optional compile of pylash and liblash to meson
This commit is contained in:
parent
1e69f48936
commit
3c0c2f62d9
|
@ -0,0 +1,21 @@
|
|||
install_headers([
|
||||
'lash/client_interface.h',
|
||||
'lash/config.h',
|
||||
'lash/event.h',
|
||||
'lash/lash.h',
|
||||
'lash/protocol.h',
|
||||
'lash/types.h',
|
||||
], subdir : 'lash-1.0/lash')
|
||||
|
||||
liblash = library('lash', 'lash.c',
|
||||
include_directories : [lash_inc, inc],
|
||||
dependencies : [dbus_dep],
|
||||
link_with : [cdbuslib, commonlib],
|
||||
install : true)
|
||||
|
||||
pkg_mod.generate(libraries : liblash,
|
||||
version : '1.1.1',
|
||||
name : 'liblash',
|
||||
requires : dbus_dep,
|
||||
description : 'lash compatibility library to ladish',
|
||||
filebase : 'liblash')
|
|
@ -0,0 +1,9 @@
|
|||
py = import('python')
|
||||
py = py.find_installation('python2')
|
||||
|
||||
libpylash = py.extension_module('pylash', ['lash.c', 'lash_wrap.c'],
|
||||
include_directories : [lash_inc, inc],
|
||||
dependencies : [py.dependency()],
|
||||
install : true)
|
||||
|
||||
py.install_sources('lash.py')
|
10
meson.build
10
meson.build
|
@ -47,6 +47,8 @@ deps = [
|
|||
dependency('expat')
|
||||
]
|
||||
|
||||
pkg_mod = import('pkgconfig')
|
||||
|
||||
subdir('common')
|
||||
subdir('proxies')
|
||||
subdir('cdbus')
|
||||
|
@ -55,6 +57,14 @@ subdir('alsapid')
|
|||
# ladishd
|
||||
subdir('daemon')
|
||||
|
||||
if get_option('liblash').enabled()
|
||||
subdir('lash_compat/liblash')
|
||||
endif
|
||||
|
||||
if get_option('pylash').enabled()
|
||||
subdir('lash_compat/pylash')
|
||||
endif
|
||||
|
||||
install_data(['AUTHORS', 'README', 'NEWS'], install_dir : data_dir)
|
||||
|
||||
install_data('ladish_control',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
option('liblash', type : 'feature')
|
||||
option('pylash', type : 'feature')
|
Loading…
Reference in New Issue