9 meson_version: '>=0.64.0'
13 cc = meson.get_compiler('c')
14 glib_dep = dependency('glib-2.0')
15 math_dep = cc.find_library('m', required: false)
16 jack2_dep = dependency('jack', version:'>=1.9.11', required: false)
17 jack1_dep = dependency('jack', version:'>=0.125.0, <1.0', required: false)
19 if not jack2_dep.found() and jack1_dep.found()
21 elif jack2_dep.found()
24 error('No recent enough (jack2>=1.9.11 or jack1>=0.125.0) version of JACK found.')
27 if get_option('gui').disabled() and get_option('jack-midi').disabled()
28 error('Disabling both GUI and JACK-MIDI is not supported.')
31 if get_option('gui').enabled()
32 pymod = import('python')
33 python = pymod.find_installation(
37 modules: get_option('check-py-modules') ? ['gi', 'cairo', 'platformdirs'] : []
41 # Installation directories
42 prefix = get_option('prefix')
43 bindir = join_paths(prefix, get_option('bindir'))
44 datadir = join_paths(prefix, get_option('datadir'))
45 #localedir = join_paths(prefix, get_option('localedir'))
46 #pythondir = join_paths(prefix, python.get_path('purelib'))
47 desktopdir = join_paths(datadir, 'applications')
48 icondir = join_paths(datadir, 'icons', 'hicolor')
49 raysessiondir = join_paths('/', 'etc', 'xdg', 'raysession', 'client_templates', '35_jackmixer')
51 # Build jack_mix_box and generate _jack_mixer extension source
54 # Build & install C extension module and Python package
55 if get_option('gui').enabled()
59 # Install desktop file and icons
60 if get_option('gui').enabled()
64 # Install documentation
67 if get_option('gui').enabled() and not get_option('wheel')
68 meson.add_install_script('meson_postinstall.py')
72 'Build jack_mixer GUI': get_option('gui').enabled(),
73 'JACK MIDI support': get_option('jack-midi').enabled(),
74 'Debug messages (verbose)': get_option('verbose'),
75 'Build for wheel': get_option('wheel'),
76 }, section: 'Configuration')