This repository has been archived by the owner on Feb 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (49 loc) · 2.02 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: all build proxy finalize submodule patch docker clean
all: clean patch build finalize
build: docker proxy
docker run --rm -it \
-v $(shell pwd)/Carla:/home/builder/src \
-v $(shell pwd)/cache:/home/builder/PawPawBuilds \
-u builder nyarla/carla \
-c '(cd src/Carla && make distclean && cd ../../) ; \
./src/build.sh win64 ; \
./src/build.sh win64 ;'
debug: docker
docker run --rm -it \
-v $(shell pwd)/Carla:/home/builder/src \
-v $(shell pwd)/cache:/home/builder/PawPawBuilds \
-u builder nyarla/carla
proxy:
cd proxy && ( \
GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" -o ../builds/carla-bridge-native.exe carla-bridge.go ; \
GOOS=windows GOARCH=386 go build -ldflags="-H windowsgui" -o ../builds/carla-bridge-win32.exe carla-bridge.go ; \
GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" -o ../builds/carla-discovery-native.exe carla-discovery.go ; \
GOOS=windows GOARCH=386 go build -ldflags="-H windowsgui" -o ../builds/carla-discovery-win32.exe carla-discovery.go ;)
finalize: proxy
cp Carla/Carla/Carla-2.4.0-win64.zip builds/
cd builds && unzip Carla-2.4.0-win64.zip
cd builds/Carla-*/ && bash -c 'for app in Carla Carla.lv2 Carla.vst; do \
(cd $$app ; \
mv carla-discovery-win32.exe _carla-discovery-win32.exe ; \
mv carla-discovery-native.exe _carla-discovery-native.exe ; \
mv carla-bridge-win32.exe _carla-bridge-win32.exe ; \
mv carla-bridge-native.exe _carla-bridge-native.exe ; \
cp ../../carla-*-*.exe . ; \
cd ..) ; \
done'
cd builds/Carla-2.4.0-win64 && cp -R . ../../dist/
submodule:
git submodule update --init --recursive
patch:
cd Carla/Carla \
&& ( git restore . ; \
patch -p1 -i ../../patches/sandboxie-support.patch; \
patch -p1 -i ../../patches/sandboxie-discovery.patch ; \
patch -p1 -i ../../patches/split-carla-vst.patch ; )
docker:
docker build -t nyarla/carla .
clean:
rm -rf builds/*
rm -rf dist/*
rm -rf cache/builds/win64/carla*
rm -rf cache/targets/win64/lib/python3.8/site-packages/liblo.pyd || true