|
24 | 24 | jack_dep = disabler() |
25 | 25 | endif |
26 | 26 |
|
27 | | - |
28 | 27 | jack_not_found = jack_dep.found() ? false : true |
29 | 28 |
|
30 | 29 | ## From https://github.com/numpy/numpy/blob/main/numpy/meson.build |
|
65 | 64 |
|
66 | 65 | # API |
67 | 66 | alsa_dep = dependency('alsa', required: jack_not_found) |
68 | | - threads_dep = dependency('threads') |
69 | 67 | endif # Platform detection |
70 | 68 |
|
| 69 | +jack_support = jack_dep.found() and get_option('jack') |
| 70 | +alsa_support = host_machine.system() == 'linux' and alsa_dep.found() and get_option('alsa') |
| 71 | +coremidi_support = host_machine.system() == 'darwin' and coremidi_dep.found() and get_option('coremidi') |
| 72 | +winmm_support = host_machine.system() == 'windows' and winmm_dep.found() and get_option('winmm') |
| 73 | + |
| 74 | +threads_dep = dependency('threads', required: alsa_support or jack_support) |
| 75 | + |
71 | 76 | pymod = import('python') |
72 | 77 | python = pymod.find_installation(get_option('python'), required: true) |
73 | 78 |
|
|
85 | 90 | summary({ |
86 | 91 | 'Debug messages (verbose)': get_option('verbose'), |
87 | 92 | 'Build for wheel': get_option('wheel'), |
88 | | - 'JACK support': jack_dep.found() and get_option('jack'), |
89 | | - 'ALSA support': host_machine.system() == 'linux' and alsa_dep.found() and get_option('alsa'), |
90 | | - 'CoreMIDI support': host_machine.system() == 'darwin' and coremidi_dep.found() and get_option('coremidi'), |
91 | | - 'Window MM support': host_machine.system() == 'windows' and winmm_dep.found() and get_option('winmm'), |
| 93 | + 'JACK support': jack_support, |
| 94 | + 'ALSA support': alsa_support, |
| 95 | + 'CoreMIDI support': coremidi_support, |
| 96 | + 'Window MM support': winmm_support, |
92 | 97 | }, section: 'Configuration') |
93 | 98 |
|
0 commit comments