added: start a thread for connecting to Kodi when requested

This commit is contained in:
Bob 2021-09-26 19:35:34 +02:00
parent 3d56ee20a8
commit 0e5becf050
5 changed files with 87 additions and 4 deletions

View file

@ -16,15 +16,18 @@ def configure(conf):
conf.load('compiler_cxx')
conf.check(header_name='jack/jack.h')
conf.check(header_name='boost/asio.hpp')
conf.check(lib='jack', uselib_store='jack', mandatory=False)
conf.check(lib='jack', uselib_store='jack', mandatory=True)
conf.check(lib='pthread', uselib_store='pthread', mandatory=False)
conf.write_config_header('config.h')
def build(bld):
bld.program(source='src/main.cpp\
src/ampswitch.cpp',
use=['jack'],
src/ampswitch.cpp\
src/kodiclient.cpp',
use=['jack', 'pthread'],
includes='./src',
cxxflags='-Wall -g',
target='ampswitch')