summaryrefslogtreecommitdiffstats
path: root/lib/meson.build
diff options
context:
space:
mode:
authorJulian Bouzas <julian.bouzas@collabora.com>2021-04-20 04:08:58 -0400
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2021-07-28 13:19:02 +0300
commitf25bb13718f334bc0c96d29ea9f3a57c0a6f3a34 (patch)
treeeaa30eafe2df92e3d5d75571d022c3a775246bff /lib/meson.build
parent7bf96bda703dd157385cbb175ec90bd6f38af404 (diff)
lib: add wpipc library
Simple library that uses sockets for inter-process communication. It provides an API to create server and client objects. Users can add custom handlers in the server, and clients can send requests for those custom handlers. Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Diffstat (limited to 'lib/meson.build')
-rw-r--r--lib/meson.build40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/meson.build b/lib/meson.build
new file mode 100644
index 0000000..318b304
--- /dev/null
+++ b/lib/meson.build
@@ -0,0 +1,40 @@
+icipc_lib_sources = files(
+ 'utils.c',
+ 'protocol.c',
+ 'receiver.c',
+ 'sender.c',
+ 'client.c',
+ 'server.c',
+)
+
+icipc_lib_headers = files(
+ 'protocol.h',
+ 'receiver.h',
+ 'sender.h',
+ 'client.h',
+ 'server.h',
+ 'icipc.h',
+)
+
+
+
+install_headers(icipc_lib_headers,
+ install_dir : join_paths(get_option('includedir'), 'icipc-' + wireplumber_api_version, 'icipc')
+)
+
+icipc_lib = library('icipc-' + wireplumber_api_version,
+ icipc_lib_sources,
+ c_args : [
+ '-D_GNU_SOURCE',
+ '-DG_LOG_USE_STRUCTURED',
+ '-DG_LOG_DOMAIN="icipc"',
+ ],
+ install: true,
+ dependencies : [dependency('threads'), spa_dep],
+)
+
+icipc_dep = declare_dependency(
+ link_with: icipc_lib,
+ include_directories: wp_lib_include_dir,
+ dependencies: [spa_dep],
+)