-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
66 lines (48 loc) · 1.75 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
58
59
60
61
62
63
64
65
66
########################## DEFAULT MAKE TARGET ################################
# default target: print usage message and quit
current:
@echo "[chump build]: please use one of the following configurations:"
@echo " make mac, make linux, make win"
# creates build-release
build-release:
meson setup builddir-release
build-debug:
meson setup --buildtype=debug --debug builddir-debug -Db_coverage=true
build-release-win:
meson setup builddir-release --backend vs
build-release-mac:
meson setup builddir-release --backend xcode
setup-mac-x86_64:
meson setup --cross-file cross/x86_64-macos.txt builddir-x86_64
setup-mac-arm64:
meson setup --cross-file cross/arm64-macos.txt builddir-arm64
build-mac-x86_64: setup-mac-x86_64
meson compile -C builddir-x86_64
build-mac-arm64: setup-mac-arm64
meson compile -C builddir-arm64
install:
meson install -C builddir-release
coverage: build-debug
ninja coverage -C builddir-debug
.PHONY: mac osx linux linux-oss linux-jack linux-alsa linux-all
mac osx linux linux-oss linux-jack linux-alsa linux-all: build-release
meson compile -C builddir-release
linux-debug: build-debug
meson compile -C builddir-debug
mac-universal: build-mac-x86_64 build-mac-arm64
lipo -create -output chump builddir-x86-64/chump-cli/chump builddir-arm64/chump-cli/chump
.PHONY: win win32 win64
win win32 win64: build-release-win
meson compile -C builddir-release
# (mac/linux) remove system installed ChuGL and install local ChuGL
test:
meson test -C builddir-release -v chump:
clean:
ifneq ("$(wildcard builddir-release)","")
meson compile -C builddir-release --clean
endif
ifneq ("$(wildcard builddir-debug)","")
meson compile -C builddir-debug --clean
endif
clean-all:
rm -rf builddir-release builddir-debug builddir-x86_64 builddir-arm64