Skip to content

Commit

Permalink
try with makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Oct 31, 2023
1 parent 33dd71c commit c702530
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/
File renamed without changes.
File renamed without changes.

0 comments on commit c702530

Please sign in to comment.