diff options
author | deva <deva> | 2011-07-15 13:02:33 +0000 |
---|---|---|
committer | deva <deva> | 2011-07-15 13:02:33 +0000 |
commit | cd0e36773992e26985bdec1f7a5341f83fa3e521 (patch) | |
tree | 4710fb3f2465f4b464f5f6176261a67cfde2e46e /tools/add_file | |
parent | e190d38057892b69246391841b234a368bc2b4ad (diff) |
New input/output plugin architecture. New LV2 plugin.
Diffstat (limited to 'tools/add_file')
-rwxr-xr-x | tools/add_file | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/add_file b/tools/add_file index f95f241..4825943 100755 --- a/tools/add_file +++ b/tools/add_file @@ -41,6 +41,23 @@ function ccfile() { echo -n $hf >> $1; echo '"' >> $1; echo '' >> $1; + local hn=`echo $1 | cut -d'.' -f1 | tr 'a-z.' 'A-Z_'` + echo "#ifdef TEST_${hn}" >> $1; + echo "//Additional dependency files" >> $1; + echo "//deps:" >> $1; + echo "//Required cflags (autoconf vars may be used)" >> $1; + echo "//cflags:" >> $1; + echo "//Required link options (autoconf vars may be used)" >> $1; + echo "//libs:" >> $1; + echo "#include \"test.h\"" >> $1; + echo "" >> $1; + echo "TEST_BEGIN;" >> $1; + echo "" >> $1; + echo "// TODO: Put some testcode here (see test.h for usable macros)." >> $1; + echo "" >> $1; + echo "TEST_END;" >> $1; + echo "" >> $1; + echo "#endif/*TEST_${hn}*/" >> $1; } function hfile() { |