summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-04-29 16:32:15 +0200
committerWim Taymans <wtaymans@redhat.com>2020-04-29 16:32:15 +0200
commitd8d4e2f3356bf3b7ac990ee7ca42235d723666f9 (patch)
tree924f97cfe1af3172907d9a08655335b36bea0f5f
parent9f810d1bbc32ae7434c23cbc9bb355070f6aca1a (diff)
jack: make dummy server and net libraries
-rw-r--r--pipewire-jack/src/dummy.c41
-rw-r--r--pipewire-jack/src/meson.build26
2 files changed, 67 insertions, 0 deletions
diff --git a/pipewire-jack/src/dummy.c b/pipewire-jack/src/dummy.c
new file mode 100644
index 00000000..6112268b
--- /dev/null
+++ b/pipewire-jack/src/dummy.c
@@ -0,0 +1,41 @@
+/* PipeWire
+ *
+ * Copyright © 2020 Wim Taymans
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <stdio.h>
+#include <unistd.h>
+#include <sys/mman.h>
+#include <regex.h>
+#include <math.h>
+
+#include <pipewire/pipewire.h>
+
+static void reg(void) __attribute__ ((constructor));
+static void reg(void)
+{
+ pw_init(NULL, NULL);
+}
diff --git a/pipewire-jack/src/meson.build b/pipewire-jack/src/meson.build
index 0962d48f..e52349ed 100644
--- a/pipewire-jack/src/meson.build
+++ b/pipewire-jack/src/meson.build
@@ -4,6 +4,10 @@ pipewire_jack_sources = [
'uuid.c',
]
+pipewire_dummy_sources = [
+ 'dummy.c',
+]
+
pipewire_jack_c_args = [
'-DHAVE_CONFIG_H',
'-D_GNU_SOURCE',
@@ -38,6 +42,28 @@ pipewire_jack = shared_library('jack',
install_dir : libjack_path,
)
+pipewire_jackserver = shared_library('jackserver',
+ pipewire_dummy_sources,
+ soversion : soversion,
+ version : libversion,
+ c_args : pipewire_jack_c_args,
+ include_directories : [configinc],
+ dependencies : [pipewire_dep, jack_dep, mathlib],
+ install : true,
+ install_dir : libjack_path,
+)
+
+pipewire_jackserver = shared_library('jacknet',
+ pipewire_dummy_sources,
+ soversion : soversion,
+ version : libversion,
+ c_args : pipewire_jack_c_args,
+ include_directories : [configinc],
+ dependencies : [pipewire_dep, jack_dep, mathlib],
+ install : true,
+ install_dir : libjack_path,
+)
+
if sdl_dep.found()
executable('video-dsp-play',
'../examples/video-dsp-play.c',