cleanup
This commit is contained in:
parent
0192351e6e
commit
1006245886
7 changed files with 13 additions and 27 deletions
6
Makefile
6
Makefile
|
@ -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:
|
||||
|
|
12
common.sh
12
common.sh
|
@ -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
0
crap_eq.h
Executable file → Normal file
0
crap_noise-ladspa.c
Executable file → Normal file
0
crap_noise-ladspa.c
Executable file → Normal 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"
|
||||
|
|
|
@ -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
0
param.h
Executable file → Normal file
Loading…
Reference in a new issue