1# Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org> 2# 3# This file is part of ZPlugins 4# 5# ZPlugins is free software: you can redistribute it and/or modify 6# it under the terms of the GNU Affero General Public License as published by 7# the Free Software Foundation, either version 3 of the License, or 8# (at your option) any later version. 9# 10# ZPlugins is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU Affero General Public License for more details. 14# 15# You should have received a copy of the GNU Affero General Public License 16# along with ZPlugins. If not, see <https://www.gnu.org/licenses/>. 17 18subdir('modules') 19subdir('lib') 20 21# things that need to be built before 22pre_soundpipe = custom_target ( 23 'pre-soundpipe', 24 output: 'pre-soundpipe', 25 input: 'Makefile', 26 command: [ 27 bash, '-c', 28 'CC=' + cc.get_id () + ' ' + 29 get_option ('make') + ' -j1 -C ' + 30 meson.current_source_dir () + 31 ' && mkdir -p ' + 32 meson.current_build_dir () + ' && touch @OUTPUT@', 33 ]) 34 35pre_soundpipe_dep = declare_dependency ( 36 sources: pre_soundpipe) 37 38soundpipe_lib = static_library ( 39 'soundpipe-lib', 40 soundpipe_lib_files, 41 soundpipe_module_files, 42 include_directories: [ 43 'h', 44 join_paths ('lib', 'dr_wav'), 45 join_paths ('lib', 'faust'), 46 join_paths ('lib', 'fft'), 47 join_paths ('lib', 'inih'), 48 join_paths ('lib', 'kissfft'), 49 join_paths ('lib', 'openlpc'), 50 join_paths ('lib', 'spa'), 51 ], 52 pic: true, 53 dependencies: [ 54 dependency('sndfile'), 55 pre_soundpipe_dep, 56 cc.find_library('m'), 57 ], 58 c_args: [ 59 '-fvisibility=hidden', 60 ], 61 ) 62