Browse Source

refactor manifest.ttl out

faust
Alexandros Theodotou 3 years ago
parent
commit
005caf7343
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 11
      plugins/chordz/ttl_gen.c
  2. 18
      plugins/manifest.ttl.in
  3. 11
      plugins/meson.build
  4. 29
      plugins/saw/manifest.ttl.in
  5. 10
      plugins/saw/ttl_gen.c

11
plugins/chordz/ttl_gen.c

@ -45,7 +45,6 @@ int main ( @@ -45,7 +45,6 @@ int main (
fprintf (f,
"@prefix atom: <http://lv2plug.in/ns/ext/atom#> .\n\
@prefix doap: <http://usefulinc.com/ns/doap#> .\n\
@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n\
@prefix log: <http://lv2plug.in/ns/ext/log#> .\n\
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .\n\
@prefix midi: <http://lv2plug.in/ns/ext/midi#> .\n\
@ -58,21 +57,11 @@ int main ( @@ -58,21 +57,11 @@ int main (
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .\n\
@prefix work: <http://lv2plug.in/ns/ext/worker#> .\n\n");
fprintf (f,
"<" PROJECT_URI ">\n\
a doap:Project ;\n\
doap:name \"Zrythm plugins\" .\n\
\n");
fprintf (f,
"<" PLUGIN_URI ">\n\
a lv2:Plugin,\n\
lv2:MIDIPlugin ;\n\
doap:name \"" PLUGIN_NAME "\" ;\n\
doap:maintainer [\n\
foaf:name \"\"\"Alexandros Theodotou\"\"\" ;\n\
foaf:homepage <https://www.zrythm.org> ;\n\
] ;\n\
doap:license <https://www.gnu.org/licenses/agpl-3.0.html> ;\n\
lv2:project <" PROJECT_URI "> ;\n\
lv2:requiredFeature urid:map ;\n\

18
plugins/chordz/manifest.ttl.in → plugins/manifest.ttl.in

@ -15,14 +15,28 @@ @@ -15,14 +15,28 @@
# You should have received a copy of the GNU Affero General Public License
# along with @PLUGIN_NAME@. If not, see <https://www.gnu.org/licenses/>.
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix pset: <http://lv2plug.in/ns/ext/presets#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .
<@PROJECT_URI@>
a doap:Project ;
doap:name "Zrythm plugins" ;
doap:maintainer [
foaf:name """Alexandros Theodotou""" ;
foaf:homepage <https://www.zrythm.org> ;
] ;
doap:repository [
doap:browse <https://git.zrythm.org/cgit/zplugins> ;
doap:location <https://git.zrythm.org/git/zplugins> ;
] .
<@PLUGIN_URI@>
a lv2:Plugin,
lv2:MIDIPlugin ;
lv2:@PLUGIN_TYPE@ ;
lv2:binary <@PLUGIN_DSP_BINARY@> ;
lv2:minorVersion @PLUGIN_MINOR_VERSION@ ;
lv2:microVersion @PLUGIN_MICRO_VERSION@ ;

11
plugins/meson.build

@ -17,8 +17,8 @@ @@ -17,8 +17,8 @@
# name, version
plugins = [
['Saw', '0.0.1'],
['Chordz', '0.2.0'],
['Saw', 'InstrumentPlugin', '0.0.1'],
['Chordz', 'MIDIPlugin', '0.2.0'],
]
foreach pl : plugins
@ -26,7 +26,8 @@ foreach pl : plugins @@ -26,7 +26,8 @@ foreach pl : plugins
pl_caps = pl[0].to_upper ()
pl_lowercase = pl[0].to_lower ()
pl_dsp_lib_name_noext = pl_str + '_dsp'
pl_version = pl[1]
pl_type = pl[1]
pl_version = pl[2]
pl_minor_version = pl_version.split('.')[1]
pl_micro_version = pl_version.split('.')[1]
@ -43,6 +44,8 @@ foreach pl : plugins @@ -43,6 +44,8 @@ foreach pl : plugins
'PLUGIN_MINOR_VERSION', pl_minor_version)
pl_cdata.set (
'PLUGIN_MICRO_VERSION', pl_micro_version)
pl_cdata.set (
'PLUGIN_TYPE', pl_type)
if os_windows
pl_cdata.set (
'PLUGIN_DSP_BINARY', pl_dsp_lib_name_noext + '.dll')
@ -117,7 +120,7 @@ foreach pl : plugins @@ -117,7 +120,7 @@ foreach pl : plugins
# create and install manifest ttl
manifest_ttl = configure_file (
input: join_paths (pl_lowercase, 'manifest.ttl.in'),
input: 'manifest.ttl.in',
output: pl_str + '_manifest.ttl',
configuration: pl_cdata,
)

29
plugins/saw/manifest.ttl.in

@ -1,29 +0,0 @@ @@ -1,29 +0,0 @@
# Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org>
#
# This file is part of @PLUGIN_NAME@
#
# @PLUGIN_NAME@ 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.
#
# @PLUGIN_NAME@ 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 @PLUGIN_NAME@. If not, see <https://www.gnu.org/licenses/>.
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix pset: <http://lv2plug.in/ns/ext/presets#> .
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .
<@PLUGIN_URI@>
a lv2:Plugin,
lv2:InstrumentPlugin ;
lv2:binary <@PLUGIN_DSP_BINARY@> ;
lv2:minorVersion @PLUGIN_MINOR_VERSION@ ;
lv2:microVersion @PLUGIN_MICRO_VERSION@ ;
rdfs:seeAlso <@PLUGIN_TTL@> .

10
plugins/saw/ttl_gen.c

@ -57,21 +57,11 @@ int main ( @@ -57,21 +57,11 @@ int main (
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .\n\
@prefix work: <http://lv2plug.in/ns/ext/worker#> .\n\n");
fprintf (f,
"<" PROJECT_URI ">\n\
a doap:Project ;\n\
doap:name \"Zrythm plugins\" .\n\
\n");
fprintf (f,
"<" PLUGIN_URI ">\n\
a lv2:Plugin,\n\
lv2:InstrumentPlugin ;\n\
doap:name \"" PLUGIN_NAME "\" ;\n\
doap:maintainer [\n\
foaf:name \"\"\"Alexandros Theodotou\"\"\" ;\n\
foaf:homepage <https://www.zrythm.org> ;\n\
] ;\n\
doap:license <https://www.gnu.org/licenses/agpl-3.0.html> ;\n\
lv2:project <" PROJECT_URI "> ;\n\
lv2:requiredFeature urid:map ,\n\

Loading…
Cancel
Save