1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
pipewire_jack_sources = [
'export.c',
'pipewire-jack.c',
'ringbuffer.c',
'uuid.c',
]
pipewire_jackserver_sources = pipewire_jack_sources
pipewire_jackserver_sources += [
'control.c',
]
pipewire_net_sources = [
'net.c',
]
pipewire_jack_c_args = [
'-DPIC',
]
libjack_path = get_option('libjack-path')
if libjack_path == ''
libjack_path = modules_install_dir / 'jack'
libjack_path_dlopen = modules_install_dir_dlopen / 'jack'
else
libjack_path_dlopen = libjack_path
endif
tools_config = configuration_data()
tools_config.set('LIBJACK_PATH', libjack_path_dlopen)
configure_file(input : 'pw-jack.in',
output : 'pw-jack',
configuration : tools_config,
install_dir : pipewire_bindir)
pipewire_jack = shared_library('jack',
pipewire_jack_sources,
soversion : soversion,
version : libversion,
c_args : pipewire_jack_c_args,
include_directories : [configinc, jack_inc],
dependencies : [pipewire_dep, mathlib],
install : true,
install_dir : libjack_path,
)
pipewire_jackserver = shared_library('jackserver',
pipewire_jackserver_sources,
soversion : soversion,
version : libversion,
c_args : pipewire_jack_c_args,
include_directories : [configinc, jack_inc],
dependencies : [pipewire_dep, mathlib],
install : true,
install_dir : libjack_path,
)
pipewire_jacknet = shared_library('jacknet',
pipewire_net_sources,
soversion : soversion,
version : libversion,
c_args : pipewire_jack_c_args,
include_directories : [configinc, jack_inc],
dependencies : [pipewire_dep, mathlib],
install : true,
install_dir : libjack_path,
)
if get_option('jack-devel') == true
if meson.version().version_compare('<0.59.0')
error(
'''
Before version 0.59.0 Meson creates a wrong jack pkg-config file.
For that reason this is now an error. Please update Meson,
if you want to have JACK development files.
''')
endif
pkgconfig.generate(filebase : 'jack',
libraries : [pipewire_jack],
name : 'jack',
description : 'PipeWire JACK API',
version : '1.9.17',
extra_cflags : '-D_REENTRANT',
unescaped_variables: ['server_libs=-L${libdir} -ljackserver', 'jack_implementation=pipewire'])
endif
if sdl_dep.found()
executable('video-dsp-play',
'../examples/video-dsp-play.c',
include_directories : [jack_inc],
install : installed_tests_enabled,
install_dir : installed_tests_execdir / 'examples' / 'jack',
dependencies : [sdl_dep, mathlib],
link_with: pipewire_jack,
)
endif
|