10 changed files with 189 additions and 71 deletions
@ -0,0 +1,78 @@
@@ -0,0 +1,78 @@
|
||||
# Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org> |
||||
# |
||||
# This file is part of ZLFO |
||||
# |
||||
# ZLFO is free software: you can redistribute it and/or modify |
||||
# it under the terms of the GNU Affero General Public License as published by |
||||
# the Free Software Foundation, either version 3 of the License, or |
||||
# (at your option) any later version. |
||||
# |
||||
# ZLFO is distributed in the hope that it will be useful, |
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
# GNU Affero General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU Affero General Public License |
||||
# along with ZLFO. If not, see <https://www.gnu.org/licenses/>. |
||||
|
||||
zlfo_dsp_lib = shared_library ( |
||||
'zlfo_dsp', |
||||
name_prefix: '', |
||||
sources: [ |
||||
'zlfo.c', |
||||
], |
||||
dependencies: zlfo_deps, |
||||
include_directories: [ '.', '..' ], |
||||
install: true, |
||||
install_dir: zlfodir, |
||||
) |
||||
|
||||
zlfo_ui_lib = shared_library ( |
||||
'zlfo_ui', |
||||
name_prefix: '', |
||||
sources: [ |
||||
'zlfo_ui.c', |
||||
], |
||||
dependencies: [ |
||||
zlfo_deps, |
||||
ztoolkit_dep, |
||||
dependency('glib-2.0'), |
||||
], |
||||
include_directories: [ '.', '..' ], |
||||
install: true, |
||||
install_dir: zlfodir, |
||||
) |
||||
|
||||
# create and install manifest ttl |
||||
manifest_ttl = configure_file ( |
||||
input: 'manifest.ttl.in', |
||||
output: 'manifest.ttl', |
||||
configuration: zlfo_cdata, |
||||
) |
||||
install_data ( |
||||
manifest_ttl, |
||||
install_dir: zlfodir, |
||||
) |
||||
|
||||
# create and install zlfo ttl |
||||
lv2_ttl_gen = executable ( |
||||
'lv2_ttl_gen', |
||||
sources: [ |
||||
'zlfo_ttl_gen.c', |
||||
], |
||||
include_directories: [ '.', '..' ], |
||||
c_args: common_cflags, |
||||
install: false, |
||||
) |
||||
zlfo_ttl = custom_target ( |
||||
'zlfo.ttl', |
||||
output: 'zlfo.ttl', |
||||
input: [ lv2_ttl_gen, zlfo_config_h ], |
||||
command: [ |
||||
lv2_ttl_gen, '@OUTPUT@' ], |
||||
install: true, |
||||
install_dir: zlfodir, |
||||
) |
||||
|
||||
# used for tests |
||||
zlfo_build_dir = meson.current_build_dir () |
@ -1,3 +1,3 @@
@@ -1,3 +1,3 @@
|
||||
[wrap-git] |
||||
url = https://git.zrythm.org/git/ztoolkit |
||||
revision = 4f99c80ace84818eac8477b11cd0a785223f5d15 |
||||
revision = 371c2bc8d3853ab12f8ec06c4e41156842ad0a43 |
||||
|
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
# Copyright (C) 2019-2020 Alexandros Theodotou <alex at zrythm dot org> |
||||
# |
||||
# This file is part of ZLFO |
||||
# |
||||
# ZLFO is free software: you can redistribute it and/or modify |
||||
# it under the terms of the GNU Affero General Public License as published by |
||||
# the Free Software Foundation, either version 3 of the License, or |
||||
# (at your option) any later version. |
||||
# |
||||
# ZLFO is distributed in the hope that it will be useful, |
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
# GNU Affero General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU Affero General Public License |
||||
# along with ZLFO. If not, see <https://www.gnu.org/licenses/>. |
||||
|
||||
lv2lint = find_program ('lv2lint', required: false) |
||||
lv2_validate = find_program ( |
||||
'lv2_validate', required: false) |
||||
sord_validate = find_program ( |
||||
'sord_validate', required: false) |
||||
|
||||
if (lv2lint.found()) |
||||
test ( |
||||
'LV2 lint', lv2lint, |
||||
env: ['LV2_PATH=' + zlfo_build_dir + '/'], |
||||
args: [ |
||||
'-I', zlfo_build_dir + '/', |
||||
zlfo_cdata.get ('LFO_URI')]) |
||||
endif |
||||
|
||||
if lv2_validate.found() and sord_validate.found() |
||||
test ( |
||||
'LV2 validate', lv2_validate, |
||||
args: zlfo_ttl) |
||||
endif |
Loading…
Reference in new issue