2020-01-22 17:06:01 +02:00
|
|
|
wp_lib_sources = files(
|
2019-12-09 12:34:06 +02:00
|
|
|
'base-endpoint.c',
|
2020-01-22 18:54:45 +02:00
|
|
|
'client.c',
|
2019-11-19 13:31:27 -05:00
|
|
|
'configuration.c',
|
2019-05-17 13:08:45 +03:00
|
|
|
'core.c',
|
2020-04-14 12:16:41 +03:00
|
|
|
'debug.c',
|
2020-01-22 18:54:45 +02:00
|
|
|
'device.c',
|
2019-12-09 16:35:15 +02:00
|
|
|
'endpoint.c',
|
2020-03-31 19:26:56 +03:00
|
|
|
'endpoint-link.c',
|
2020-02-21 17:20:02 +02:00
|
|
|
'endpoint-stream.c',
|
2019-04-10 12:32:51 +03:00
|
|
|
'error.c',
|
2019-05-17 13:08:45 +03:00
|
|
|
'factory.c',
|
2020-04-02 14:15:49 -04:00
|
|
|
'iterator.c',
|
2020-01-22 18:54:45 +02:00
|
|
|
'link.c',
|
2019-05-17 13:08:45 +03:00
|
|
|
'module.c',
|
2020-01-22 18:54:45 +02:00
|
|
|
'node.c',
|
2020-05-01 17:51:12 +03:00
|
|
|
'object-interest.c',
|
2019-11-13 15:44:23 +02:00
|
|
|
'object-manager.c',
|
2019-06-13 14:51:20 +03:00
|
|
|
'policy.c',
|
2020-01-22 18:54:45 +02:00
|
|
|
'port.c',
|
2019-08-21 15:16:13 +03:00
|
|
|
'properties.c',
|
2019-06-10 15:07:54 -04:00
|
|
|
'proxy.c',
|
2019-09-24 16:34:18 +03:00
|
|
|
'session.c',
|
2020-04-22 14:30:33 -04:00
|
|
|
'session-bin.c',
|
2020-03-12 18:00:01 +02:00
|
|
|
'session-item.c',
|
2020-03-18 17:13:52 +02:00
|
|
|
'si-factory.c',
|
2020-03-16 17:43:07 +02:00
|
|
|
'si-interfaces.c',
|
2020-04-02 14:19:59 -04:00
|
|
|
'spa-pod.c',
|
2019-12-03 12:24:05 +02:00
|
|
|
'spa-props.c',
|
2020-04-14 15:17:01 +03:00
|
|
|
'spa-type.c',
|
2020-03-10 13:41:34 +02:00
|
|
|
'transition.c',
|
2020-01-22 17:06:01 +02:00
|
|
|
)
|
2019-04-10 12:32:51 +03:00
|
|
|
|
2020-01-22 17:06:01 +02:00
|
|
|
wp_lib_headers = files(
|
2019-12-09 12:34:06 +02:00
|
|
|
'base-endpoint.h',
|
2020-01-22 18:54:45 +02:00
|
|
|
'client.h',
|
2019-11-19 13:31:27 -05:00
|
|
|
'configuration.h',
|
2019-05-17 13:08:45 +03:00
|
|
|
'core.h',
|
2020-04-14 12:16:41 +03:00
|
|
|
'debug.h',
|
2020-01-16 18:50:07 +02:00
|
|
|
'defs.h',
|
2020-01-22 18:54:45 +02:00
|
|
|
'device.h',
|
2020-01-16 18:50:07 +02:00
|
|
|
'endpoint.h',
|
2020-03-31 19:26:56 +03:00
|
|
|
'endpoint-link.h',
|
2020-02-21 17:20:02 +02:00
|
|
|
'endpoint-stream.h',
|
2019-04-10 12:32:51 +03:00
|
|
|
'error.h',
|
2019-05-17 13:08:45 +03:00
|
|
|
'factory.h',
|
2020-04-02 14:15:49 -04:00
|
|
|
'iterator.h',
|
2020-01-22 18:54:45 +02:00
|
|
|
'link.h',
|
2019-05-17 13:08:45 +03:00
|
|
|
'module.h',
|
2020-01-22 18:54:45 +02:00
|
|
|
'node.h',
|
2020-05-01 17:51:12 +03:00
|
|
|
'object-interest.h',
|
2019-11-13 15:44:23 +02:00
|
|
|
'object-manager.h',
|
2019-06-13 14:51:20 +03:00
|
|
|
'policy.h',
|
2020-01-22 18:54:45 +02:00
|
|
|
'port.h',
|
2019-08-21 15:16:13 +03:00
|
|
|
'properties.h',
|
2019-06-10 15:07:54 -04:00
|
|
|
'proxy.h',
|
2019-09-24 16:34:18 +03:00
|
|
|
'session.h',
|
2020-04-22 14:30:33 -04:00
|
|
|
'session-bin.h',
|
2020-03-12 18:00:01 +02:00
|
|
|
'session-item.h',
|
2020-03-18 17:13:52 +02:00
|
|
|
'si-factory.h',
|
2020-04-14 15:17:01 +03:00
|
|
|
'si-interfaces.h',
|
2020-04-02 14:19:59 -04:00
|
|
|
'spa-pod.h',
|
2020-04-02 14:19:32 -04:00
|
|
|
'spa-type.h',
|
2020-03-10 13:41:34 +02:00
|
|
|
'transition.h',
|
2019-05-29 12:47:26 +03:00
|
|
|
'wp.h',
|
2020-01-22 17:06:01 +02:00
|
|
|
)
|
2019-04-10 12:32:51 +03:00
|
|
|
|
2019-05-29 12:47:26 +03:00
|
|
|
install_headers(wp_lib_headers,
|
|
|
|
|
subdir : join_paths('wireplumber-' + wireplumber_api_version, 'wp')
|
|
|
|
|
)
|
|
|
|
|
|
2019-09-12 16:56:35 +03:00
|
|
|
enums = gnome.mkenums_simple('wpenums',
|
|
|
|
|
sources: wp_lib_headers,
|
2020-01-16 18:50:07 +02:00
|
|
|
header_prefix: '#include "wp/defs.h"',
|
|
|
|
|
decorator: 'WP_API',
|
2019-09-12 16:56:35 +03:00
|
|
|
install_header: true,
|
|
|
|
|
install_dir: join_paths(get_option('includedir'), 'wireplumber-' + wireplumber_api_version, 'wp'),
|
|
|
|
|
)
|
2020-01-22 17:06:01 +02:00
|
|
|
wpenums_h = enums[1]
|
|
|
|
|
wpenums_c = enums[0]
|
|
|
|
|
wp_gen_sources = [wpenums_h]
|
2019-04-10 12:32:51 +03:00
|
|
|
|
|
|
|
|
wp_lib = library('wireplumber-' + wireplumber_api_version,
|
2020-01-22 17:06:01 +02:00
|
|
|
wp_lib_sources, wpenums_c, wpenums_h,
|
2019-04-12 13:08:11 +03:00
|
|
|
c_args : [
|
|
|
|
|
'-D_GNU_SOURCE',
|
|
|
|
|
'-DG_LOG_USE_STRUCTURED',
|
2019-05-29 17:36:22 +03:00
|
|
|
'-DWIREPLUMBER_DEFAULT_MODULE_DIR="@0@"'.format(wireplumber_module_dir),
|
2020-01-16 18:50:07 +02:00
|
|
|
'-DBUILDING_WP',
|
2019-04-12 13:08:11 +03:00
|
|
|
],
|
2019-04-10 12:32:51 +03:00
|
|
|
install: true,
|
2019-05-17 13:08:45 +03:00
|
|
|
include_directories: wp_lib_include_dir,
|
2019-06-10 15:07:54 -04:00
|
|
|
dependencies : [gobject_dep, gmodule_dep, gio_dep, pipewire_dep],
|
2019-05-29 12:47:26 +03:00
|
|
|
soversion: wireplumber_so_version,
|
|
|
|
|
version: meson.project_version(),
|
2019-04-10 12:32:51 +03:00
|
|
|
)
|
|
|
|
|
|
2020-01-22 17:06:01 +02:00
|
|
|
if build_gir
|
|
|
|
|
wp_gir = gnome.generate_gir(wp_lib,
|
2019-06-20 15:48:29 +03:00
|
|
|
namespace: 'Wp',
|
|
|
|
|
nsversion: wireplumber_api_version,
|
2020-01-22 17:06:01 +02:00
|
|
|
sources: [wp_lib_sources, wp_lib_headers, wpenums_c, wpenums_h],
|
2019-07-10 11:15:33 -04:00
|
|
|
includes: ['GLib-2.0', 'GObject-2.0', 'Gio-2.0'],
|
2019-06-20 15:48:29 +03:00
|
|
|
install: true,
|
|
|
|
|
)
|
2020-01-22 17:06:01 +02:00
|
|
|
wp_gen_sources += wp_gir
|
2019-06-20 15:48:29 +03:00
|
|
|
endif
|
2019-04-16 15:42:10 +03:00
|
|
|
|
|
|
|
|
wp_dep = declare_dependency(
|
|
|
|
|
link_with: wp_lib,
|
2020-01-22 17:06:01 +02:00
|
|
|
sources: wp_gen_sources,
|
2019-04-16 15:42:10 +03:00
|
|
|
include_directories: wp_lib_include_dir,
|
2020-01-22 17:06:01 +02:00
|
|
|
dependencies: [gobject_dep, gio_dep]
|
2019-04-16 15:42:10 +03:00
|
|
|
)
|
2019-12-12 20:19:19 +02:00
|
|
|
|
|
|
|
|
pkgconfig.generate(wp_lib,
|
|
|
|
|
libraries: [gobject_dep, gio_dep],
|
|
|
|
|
subdirs: 'wireplumber-' + wireplumber_api_version
|
|
|
|
|
)
|