diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d320e9..c333dfe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,17 +28,11 @@ jobs: # sudo apt-get update -qq # sudo apt-get install -yqq libgl1-mesa-dev - - name: Export C/C++ - run: | - hvcc wstd_eq.pd -n WSTD_EQ -m wstd_eq.json -o WSTD_EQ -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" - cp override/* WSTD_EQ/plugin/source/ - - name: Build plugins uses: distrho/dpf-makefile-action@v1 with: target: ${{ matrix.target }} dpf_path: 'dep/dpf' - extraargs: '-C WSTD_EQ' # - name: Set sha8 (non-release) # if: startsWith(github.ref, 'refs/tags/') != true diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5e8d297 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +PLUGINS = WSTD_EQ +TARGETS = $(PLUGINS:%=%/generated.cpp) + +all: build + +build: pregen + $(foreach p,$(PLUGINS),$(MAKE) -C $(p)) + +pregen: $(TARGETS) + +%/generated.cpp: %.pd + # generate files + hvcc %.pd -n % -m %.json -o % -g dpf -p dep/heavylib/ dep/ --copyright "Copyright (c) Wasted Audio 2023 - GPL-3.0-or-later" + cp override/* %/plugin/source/ \ No newline at end of file diff --git a/wstd_eq.json b/WSTD_EQ.json similarity index 100% rename from wstd_eq.json rename to WSTD_EQ.json diff --git a/wstd_eq.pd b/WSTD_EQ.pd similarity index 100% rename from wstd_eq.pd rename to WSTD_EQ.pd