2019-04-10 12:32:51 +03:00
|
|
|
wp_lib_sources = [
|
2019-05-17 13:08:45 +03:00
|
|
|
'core.c',
|
|
|
|
|
'endpoint.c',
|
2019-04-10 12:32:51 +03:00
|
|
|
'error.c',
|
2019-05-17 13:08:45 +03:00
|
|
|
'factory.c',
|
|
|
|
|
'module.c',
|
2019-06-13 14:51:20 +03:00
|
|
|
'policy.c',
|
2019-08-21 15:16:13 +03:00
|
|
|
'properties.c',
|
2019-06-10 15:07:54 -04:00
|
|
|
'proxy.c',
|
2019-08-27 18:26:07 +03:00
|
|
|
'proxy-client.c',
|
|
|
|
|
'proxy-link.c',
|
2019-06-10 15:07:54 -04:00
|
|
|
'proxy-node.c',
|
|
|
|
|
'proxy-port.c',
|
2019-04-10 12:32:51 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
wp_lib_headers = [
|
2019-05-17 13:08:45 +03:00
|
|
|
'core.h',
|
|
|
|
|
'endpoint.h',
|
2019-04-10 12:32:51 +03:00
|
|
|
'error.h',
|
2019-05-17 13:08:45 +03:00
|
|
|
'factory.h',
|
|
|
|
|
'module.h',
|
2019-06-13 14:51:20 +03:00
|
|
|
'policy.h',
|
2019-08-21 15:16:13 +03:00
|
|
|
'properties.h',
|
2019-06-10 15:07:54 -04:00
|
|
|
'proxy.h',
|
2019-08-27 18:26:07 +03:00
|
|
|
'proxy-client.h',
|
2019-06-10 15:07:54 -04:00
|
|
|
'proxy-node.h',
|
|
|
|
|
'proxy-port.h',
|
2019-07-05 10:22:28 -04:00
|
|
|
'proxy-link.h',
|
2019-05-29 12:47:26 +03:00
|
|
|
'wp.h',
|
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,
|
|
|
|
|
install_header: true,
|
|
|
|
|
install_dir: join_paths(get_option('includedir'), 'wireplumber-' + wireplumber_api_version, 'wp'),
|
|
|
|
|
)
|
2019-04-10 12:32:51 +03:00
|
|
|
|
|
|
|
|
wp_lib = library('wireplumber-' + wireplumber_api_version,
|
|
|
|
|
wp_lib_sources, enums,
|
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
|
|
|
'-DG_LOG_DOMAIN="libwireplumber"',
|
|
|
|
|
'-DWIREPLUMBER_DEFAULT_MODULE_DIR="@0@"'.format(wireplumber_module_dir),
|
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
|
|
|
)
|
|
|
|
|
|
2019-06-20 15:48:29 +03:00
|
|
|
if get_option('introspection')
|
|
|
|
|
gnome.generate_gir(wp_lib,
|
|
|
|
|
namespace: 'Wp',
|
|
|
|
|
nsversion: wireplumber_api_version,
|
2019-07-10 11:15:33 -04:00
|
|
|
sources: [wp_lib_sources, wp_lib_headers, enums],
|
|
|
|
|
includes: ['GLib-2.0', 'GObject-2.0', 'Gio-2.0'],
|
2019-06-20 15:48:29 +03:00
|
|
|
install: true,
|
|
|
|
|
)
|
|
|
|
|
endif
|
2019-04-16 15:42:10 +03:00
|
|
|
|
|
|
|
|
wp_dep = declare_dependency(
|
|
|
|
|
link_with: wp_lib,
|
2019-09-12 16:56:35 +03:00
|
|
|
sources: enums[1],
|
2019-04-16 15:42:10 +03:00
|
|
|
include_directories: wp_lib_include_dir,
|
|
|
|
|
dependencies: [gobject_dep]
|
|
|
|
|
)
|