add optional compile of pylash and liblash to meson

This commit is contained in:
Max Audron 2021-02-14 12:59:12 +01:00 committed by Max Test Audron
parent 1e69f48936
commit 3c0c2f62d9
4 changed files with 42 additions and 0 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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',

2
meson_options.txt Normal file
View File

@ -0,0 +1,2 @@
option('liblash', type : 'feature')
option('pylash', type : 'feature')