This commit is contained in:
Connor Olding 2014-01-29 17:57:22 -08:00
parent 0192351e6e
commit 1006245886
7 changed files with 13 additions and 27 deletions

View File

@ -45,7 +45,7 @@ ALL = ${SHOBJ} ${OBJ} ${EXE}
MISC_CLEAN = bench ${BENCH}
MISC_DIST = LICENSE README.md Makefile
MISC_DIST += benchtime ${BENCH:.o=.c}
MISC_DIST += generate-ladspa generate-vst common.sh
MISC_DIST += generate-ladspa generate-vst
MISC_DIST += template-vst.cpp template-ladspa.c ladspa.h
all: options ladspa vst ${EXE}
@ -96,10 +96,10 @@ vstsdk.o: ${VST_SRC}
@echo ' CXX '$@
@${CXX} -c ${ALL_CXXFLAGS} ${CPPFLAGS} $< -o $@
%-ladspa.c: %.h template-ladspa.c generate-ladspa common.sh
%-ladspa.c: %.h template-ladspa.c generate-ladspa
./generate-ladspa $< $@
%-vst.cpp: %.h template-vst.cpp generate-vst common.sh
%-vst.cpp: %.h template-vst.cpp generate-vst
./generate-vst $< $@
.SUFFIXES:

View File

@ -1,12 +0,0 @@
#!/usr/bin/env bash
set -e
set -u
p="$1"
out="$2"
while read -r; do
:
done < "$p"
pp_include="#include \"$p\""

0
crap_eq.h Executable file → Normal file
View File

0
crap_noise-ladspa.c Executable file → Normal file
View File

View File

@ -1,18 +1,15 @@
#!/usr/bin/env bash
. common.sh
set -e
set -u
pp_include="#include \"$1\""
out="$2"
(cat template-ladspa.c | while read -r; do
case "$REPLY" in
'//#INCLUDE') echo "$pp_include" ;;
# unimplemented
'//#PORT_DESCRIPTIONS') :;;
'//#PORT_HINTS') :;;
'//#PORT_NAMES') :;;
'//#PORT_DATA') :;;
'//#PORT_CONNECT') :;;
*) echo -E "$REPLY" ;;
esac
done) > "$out"

View File

@ -1,14 +1,15 @@
#!/usr/bin/env bash
. common.sh
set -e
set -u
pp_include="#include \"$1\""
out="$2"
(cat template-vst.cpp | while read -r; do
case "$REPLY" in
'//#INCLUDE') echo "$pp_include" ;;
# unimplemented
'//#VST_PARAMS') :;;
*) echo -E "$REPLY" ;;
esac
done) > "$out"

0
param.h Executable file → Normal file
View File