-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
45 lines (35 loc) · 995 Bytes
/
Makefile
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
.PHONY: help build clean app log plug unplug reset
GENERATOR = Ninja
CONFIG = Release
PLATFORM = -DCMAKE_OSX_ARCHITECTURES=arm64
OPTIONS = -DLOGGING=ON -DCHRONO=ON
PLUGIN = StftPitchShiftPlugin
INPUT = .
OUTPUT = ./build
ARTEFACTS = $(OUTPUT)/$(PLUGIN)_artefacts/$(CONFIG)
help:
@echo build
@echo clean
@echo app
@echo log
@echo plug
@echo unplug
@echo reset
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
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