1 jack_mixer_sources = files([
7 jack_mixer_inc = include_directories('.')
10 # Build 'jack_mix_box' command line program
11 defines = ['-DLOCALEDIR="@0@"'.format(join_paths(get_option('prefix'), get_option('localedir')))]
13 if get_option('jack-midi').enabled()
14 defines += ['-DHAVE_JACK_MIDI']
19 ['jack_mix_box.c', jack_mixer_sources],
25 include_directories: jack_mixer_inc,
31 # Generate extension module C source from Cython sources
32 if get_option('gui').enabled()
35 jack_mixer_mod_pyx = '_jack_mixer.pyx'
36 jack_mixer_mod_c = '_jack_mixer.c'
38 cython = find_program('cython3', 'cython', 'cython0', required: false)
40 if fs.exists(jack_mixer_mod_c)
41 jack_mixer_cython = files(jack_mixer_mod_c)
43 jack_mixer_mod_pxd = '_jack_mixer.pxd'
45 jack_mixer_cython = custom_target(
47 output: jack_mixer_mod_c,
48 input: jack_mixer_mod_pyx,
49 depend_files: [jack_mixer_mod_pyx, jack_mixer_mod_pxd],
50 command: [cython, '-o', '@OUTPUT@', '@INPUT@'],
53 error('The \'cython\' program was not found but is required.\n' +
54 'Please install Cython from: https://pypi.org/project/Cython/.')
57 meson.add_dist_script('meson_dist_cython.py', jack_mixer_mod_c)