From 7c467443ba61d854682d86ac02a9a0159982bba0 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 5 Jan 2024 19:45:11 +0100 Subject: [PATCH] separated make stuff --- templates/{lv2/make => lv2-make}/Makefile | 0 templates/lv2-make/tibia-index.js | 4 ++++ templates/{lv2/make => lv2-make}/vars.mk | 0 templates/lv2/tibia-index.js | 2 -- templates/{vst3/make => vst3-make}/Makefile | 0 templates/vst3-make/tibia-index.js | 4 ++++ templates/{vst3/make => vst3-make}/vars.mk | 2 +- templates/vst3/tibia-index.js | 2 -- test/run.sh | 2 ++ 9 files changed, 11 insertions(+), 5 deletions(-) rename templates/{lv2/make => lv2-make}/Makefile (100%) create mode 100644 templates/lv2-make/tibia-index.js rename templates/{lv2/make => lv2-make}/vars.mk (100%) rename templates/{vst3/make => vst3-make}/Makefile (100%) create mode 100644 templates/vst3-make/tibia-index.js rename templates/{vst3/make => vst3-make}/vars.mk (52%) diff --git a/templates/lv2/make/Makefile b/templates/lv2-make/Makefile similarity index 100% rename from templates/lv2/make/Makefile rename to templates/lv2-make/Makefile diff --git a/templates/lv2-make/tibia-index.js b/templates/lv2-make/tibia-index.js new file mode 100644 index 0000000..53d79fb --- /dev/null +++ b/templates/lv2-make/tibia-index.js @@ -0,0 +1,4 @@ +module.exports = function (data, api) { + api.copyFile(`Makefile`, `Makefile`); + api.generateFileFromTemplateFile(`vars.mk`, `vars.mk`, data); +}; diff --git a/templates/lv2/make/vars.mk b/templates/lv2-make/vars.mk similarity index 100% rename from templates/lv2/make/vars.mk rename to templates/lv2-make/vars.mk diff --git a/templates/lv2/tibia-index.js b/templates/lv2/tibia-index.js index 0aa3527..bc7a0b8 100644 --- a/templates/lv2/tibia-index.js +++ b/templates/lv2/tibia-index.js @@ -68,6 +68,4 @@ module.exports = function (data, api) { api.copyFile(`src${sep}lv2.c`, `src${sep}lv2.c`); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data); api.copyFileIfNotExists(`src${sep}plugin.h`, `src${sep}plugin.h`); - api.copyFile(`make${sep}Makefile`, `Makefile`); - api.generateFileFromTemplateFile(`make${sep}vars.mk`, `vars.mk`, data); }; diff --git a/templates/vst3/make/Makefile b/templates/vst3-make/Makefile similarity index 100% rename from templates/vst3/make/Makefile rename to templates/vst3-make/Makefile diff --git a/templates/vst3-make/tibia-index.js b/templates/vst3-make/tibia-index.js new file mode 100644 index 0000000..53d79fb --- /dev/null +++ b/templates/vst3-make/tibia-index.js @@ -0,0 +1,4 @@ +module.exports = function (data, api) { + api.copyFile(`Makefile`, `Makefile`); + api.generateFileFromTemplateFile(`vars.mk`, `vars.mk`, data); +}; diff --git a/templates/vst3/make/vars.mk b/templates/vst3-make/vars.mk similarity index 52% rename from templates/vst3/make/vars.mk rename to templates/vst3-make/vars.mk index 57f38f8..0826cc2 100644 --- a/templates/vst3/make/vars.mk +++ b/templates/vst3-make/vars.mk @@ -1,2 +1,2 @@ BUNDLE_NAME := {{=it.product.bundleName}} -VST3_C_API_DIR := ../../vst3_c_api +VST3_C_API_DIR := ../../../vst3_c_api diff --git a/templates/vst3/tibia-index.js b/templates/vst3/tibia-index.js index a1beabb..0ed422e 100644 --- a/templates/vst3/tibia-index.js +++ b/templates/vst3/tibia-index.js @@ -6,6 +6,4 @@ module.exports = function (data, api) { api.copyFile(`src${sep}vst3.c`, `src${sep}vst3.c`); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data); api.copyFileIfNotExists(`src${sep}plugin.h`, `src${sep}plugin.h`); - api.copyFile(`make${sep}Makefile`, `Makefile`); - api.generateFileFromTemplateFile(`make${sep}vars.mk`, `vars.mk`, data); }; diff --git a/test/run.sh b/test/run.sh index d42387b..f82e9a1 100755 --- a/test/run.sh +++ b/test/run.sh @@ -2,6 +2,8 @@ dir=`dirname $0` $dir/../tibia $dir/product.json,$dir/company.json,$dir/vst3.json $dir/../templates/vst3 $dir/../out/vst3 +$dir/../tibia $dir/product.json,$dir/company.json,$dir/vst3.json $dir/../templates/vst3-make $dir/../out/vst3 cp $dir/plugin.h $dir/../out/vst3/src $dir/../tibia $dir/product.json,$dir/company.json,$dir/lv2.json $dir/../templates/lv2 $dir/../out/lv2 +$dir/../tibia $dir/product.json,$dir/company.json,$dir/lv2.json $dir/../templates/lv2-make $dir/../out/lv2 cp $dir/plugin.h $dir/../out/lv2/src