Commit ef304044 authored by Hanspeter Portner's avatar Hanspeter Portner

meson: correctly discover glue sruct member names.

parent 53389c4c
Pipeline #108730586 failed with stages
in 3 minutes and 48 seconds
......@@ -1816,7 +1816,7 @@ _ui_init(dsp_t *dsp)
glue->addNumEntry = _ui_add_num_entry;
glue->addHorizontalBargraph = _ui_add_horizontal_bargraph;
glue->addVerticalBargraph = _ui_add_vertical_bargraph;
//glue->addSoundfile = _ui_add_sound_file;
glue->FAUST_ADDSOUNDFILE= _ui_add_sound_file;
glue->declare = _ui_declare;
dsp->cvoices = 0;
......
......@@ -43,6 +43,13 @@ else
error('unsupported FAUST version found ' + faust_ver)
endif
if cc.has_member('UIGlue', 'addSoundFile',
prefix : '#include <faust/gui/CInterface.h>')
add_project_arguments('-DFAUST_ADDSOUNDFILE=addSoundFile', language : 'c')
else
add_project_arguments('-DFAUST_ADDSOUNDFILE=addSoundfile', language : 'c')
endif
m_dep = cc.find_library('m')
lv2_dep = dependency('lv2', version : '>=1.14.0')
faust_dep = cc.find_library('faust')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment