forked from amethyst/rendy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 927 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
RUST_BACKTRACE:=1
RENDY_BACKEND:=
ifeq ($(OS),Windows_NT)
RENDY_BACKEND=vulkan
else
UNAME_S:=$(shell uname -s)
ifeq ($(UNAME_S),Linux)
RENDY_BACKEND=vulkan
endif
ifeq ($(UNAME_S),Darwin)
RENDY_BACKEND=metal
endif
endif
fast:
cd rendy && cargo build --all --examples --features "full $(RENDY_BACKEND) no-slow-safety-checks"
build:
cd rendy && cargo build --all --examples --features "full $(RENDY_BACKEND)"
test:
cd rendy && cargo test --all --features "full $(RENDY_BACKEND)"
doc:
cd rendy && cargo doc --all --features "full $(RENDY_BACKEND)"
all: fast build test doc
quads:
cd rendy && cargo run --features "full $(RENDY_BACKEND)" --example quads
triangle:
cd rendy && cargo run --features "full $(RENDY_BACKEND)" --example triangle
sprite:
cd rendy && cargo run --features "full $(RENDY_BACKEND)" --example sprite
meshes:
cd rendy && cargo run --features "full $(RENDY_BACKEND)" --example meshes