-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (42 loc) · 1.28 KB
/
Makefile
File metadata and controls
54 lines (42 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: help build clean app log plug unplug reset test
GENERATOR = Ninja
CONFIG = Release
PLATFORM = -DCMAKE_OSX_ARCHITECTURES=arm64
OPTIONS = -DLOGGING=ON -DCHRONO=ON -DWARNINGS=ON
PLUGIN = Robotone
INPUT = .
OUTPUT = ./build
ARTEFACTS = $(OUTPUT)/src/$(PLUGIN)/$(PLUGIN)_artefacts/$(CONFIG)
PLUGINVAL = $(OUTPUT)/_deps/pluginval-src/Contents/MacOS/pluginval
help:
@echo build
@echo clean
@echo app
@echo log
@echo plug
@echo unplug
@echo reset
@echo test
build:
@cmake -G $(GENERATOR) -DCMAKE_BUILD_TYPE=$(CONFIG) $(PLATFORM) $(OPTIONS) -S $(INPUT) -B $(OUTPUT)
@cmake --build $(OUTPUT)
clean:
@rm -rf $(OUTPUT)
app:
@open -n $(ARTEFACTS)/Standalone/$(PLUGIN).app
log:
@tail -F ~/Library/Logs/$(PLUGIN)/$(PLUGIN).log
relog:
@rm -f ~/Library/Logs/$(PLUGIN)/$(PLUGIN).log
@tail -F ~/Library/Logs/$(PLUGIN)/$(PLUGIN).log
plug: unplug
@cp -rf $(ARTEFACTS)/AU/$(PLUGIN).component ~/Library/Audio/Plug-Ins/Components
unplug:
@rm -rf ~/Library/Audio/Plug-Ins/Components/$(PLUGIN).component
reset: unplug
@rm -rf ~/Library/Application\ Support/Audacity/plugin*.cfg
@rm -rf ~/Library/Caches/AudioUnitCache
@sudo killall -9 AudioComponentRegistrar
@auval -a
test: plug
@$(PLUGINVAL) --strictness-level 5 --validate ~/Library/Audio/Plug-Ins/Components/$(PLUGIN).component