diff --git a/pipewire-jack/src/dummy.c b/pipewire-jack/src/dummy.c new file mode 100644 index 000000000..6112268bf --- /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 +#include +#include +#include +#include + +#include + +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 0962d48fb..e52349ed1 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',