2016-09-26 12:15:52 +02:00
|
|
|
pinos_headers = [
|
2016-11-03 19:41:53 +01:00
|
|
|
'array.h',
|
2016-09-26 12:15:52 +02:00
|
|
|
'context.h',
|
|
|
|
|
'format.h',
|
|
|
|
|
'introspect.h',
|
2016-11-03 19:41:53 +01:00
|
|
|
'log.h',
|
|
|
|
|
'map.h',
|
2016-11-07 10:24:13 +01:00
|
|
|
'mem.h',
|
2016-09-26 12:15:52 +02:00
|
|
|
'pinos.h',
|
|
|
|
|
'properties.h',
|
|
|
|
|
'ringbuffer.h',
|
2016-10-28 16:56:33 +02:00
|
|
|
'rtkit.h',
|
|
|
|
|
'stream.h',
|
2016-09-26 12:15:52 +02:00
|
|
|
'subscribe.h',
|
2016-10-20 16:26:55 +02:00
|
|
|
'thread-mainloop.h',
|
2016-11-07 10:24:13 +01:00
|
|
|
'transport.h',
|
2016-11-14 12:42:00 +01:00
|
|
|
'utils.h',
|
2016-09-26 12:15:52 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
pinos_sources = [
|
2016-10-17 18:29:05 +02:00
|
|
|
'connection.c',
|
2016-09-26 12:15:52 +02:00
|
|
|
'context.c',
|
|
|
|
|
'format.c',
|
|
|
|
|
'introspect.c',
|
2016-11-03 19:41:53 +01:00
|
|
|
'log.c',
|
|
|
|
|
'mapper.c',
|
2016-11-07 10:24:13 +01:00
|
|
|
'mem.c',
|
2016-09-26 12:15:52 +02:00
|
|
|
'properties.c',
|
2016-10-17 12:20:49 +02:00
|
|
|
'serialize.c',
|
2016-09-26 12:15:52 +02:00
|
|
|
'stream.c',
|
|
|
|
|
'pinos.c',
|
|
|
|
|
'ringbuffer.c',
|
2016-10-28 16:56:33 +02:00
|
|
|
'rtkit.c',
|
2016-09-26 12:15:52 +02:00
|
|
|
'subscribe.c',
|
2016-10-20 16:26:55 +02:00
|
|
|
'thread-mainloop.c',
|
2016-11-07 10:24:13 +01:00
|
|
|
'transport.c',
|
2016-11-14 12:42:00 +01:00
|
|
|
'utils.c',
|
2016-10-14 16:46:09 +02:00
|
|
|
gdbus_target,
|
2016-09-26 12:15:52 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
install_headers(pinos_headers, subdir : 'pinos/client')
|
|
|
|
|
|
|
|
|
|
mkenums = find_program('build_mkenum.py')
|
|
|
|
|
glib_mkenums = find_program('glib-mkenums')
|
|
|
|
|
|
|
|
|
|
enumtypes_h = custom_target('enumtypes_h',
|
|
|
|
|
output : 'enumtypes.h',
|
|
|
|
|
input : pinos_headers,
|
|
|
|
|
install : true,
|
|
|
|
|
install_dir : 'include/pinos/client',
|
|
|
|
|
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
|
|
|
|
|
|
|
|
enumtypes_c = custom_target('enumtypes_c',
|
|
|
|
|
output : 'enumtypes.c',
|
|
|
|
|
input : pinos_headers,
|
|
|
|
|
depends : [enumtypes_h],
|
|
|
|
|
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
libpinos_c_args = [
|
|
|
|
|
'-DHAVE_CONFIG_H',
|
|
|
|
|
'-D_GNU_SOURCE',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pinos_gen_sources = [enumtypes_h]
|
|
|
|
|
|
|
|
|
|
libpinos = shared_library('pinos', pinos_sources,
|
|
|
|
|
enumtypes_h, enumtypes_c,
|
|
|
|
|
version : libversion,
|
|
|
|
|
soversion : soversion,
|
|
|
|
|
c_args : libpinos_c_args,
|
|
|
|
|
include_directories : [configinc, spa_inc],
|
|
|
|
|
link_with : spalib,
|
|
|
|
|
install : true,
|
|
|
|
|
dependencies : [gobject_dep, gmodule_dep, glib_dep, gio_dep, mathlib],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
pinos_dep = declare_dependency(link_with : libpinos,
|
|
|
|
|
include_directories : [configinc, spa_inc],
|
|
|
|
|
dependencies : [glib_dep, gobject_dep, gmodule_dep],
|
|
|
|
|
# Everything that uses libpinos needs this built to compile
|
|
|
|
|
sources : pinos_gen_sources,
|
|
|
|
|
)
|