Skip to content

Instantly share code, notes, and snippets.

View evilactually's full-sized avatar

Vlad Shcherbakov evilactually

View GitHub Profile
cat <<'EOF' > "./manifest.ttl.in"
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<@uri@>
a lv2:Plugin ;
lv2:binary <@name@@dllext@> ;
rdfs:seeAlso <@[email protected]> .
EOF
$(CLSNAME).cpp:am-modulator.dsp
faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
$(CLSNAME).so:$(CLSNAME).cpp
$(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
class am_modulator : public dsp {
am_modulator.cpp:47:27: fatal error: faust/dsp/dsp.h: No such file or directory
#include <faust/dsp/dsp.h>
mkdir -p ./plugins/package/am_modulator/source
faust2lv2 am_modulator.dsp
manifest.ttl:manifest.ttl.in
sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in
$(CLSNAME).ttl:$(CLSNAME).cpp
g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
./$(CLSNAME) > $(CLSNAME).ttl
cd source
cat <<'EOF' > "./manifest.ttl.in"
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<@uri@>
a lv2:Plugin ;
lv2:binary <@name@@dllext@> ;
rdfs:seeAlso <@[email protected]> .
EOF