forked from darthdeus/comfy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (51 loc) · 1.19 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
# EXAMPLE=animated_shapes
# EXAMPLE=animated_text
# EXAMPLE=animated_sprites
# EXAMPLE=blood_canvas
EXAMPLE=bloom
# EXAMPLE=custom_config
# EXAMPLE=cooldowns
# EXAMPLE=custom_fonts
# EXAMPLE=circle
# EXAMPLE=ecs_sprite
# EXAMPLE=ecs_topdown_game
# EXAMPLE=full_game_loop
# EXAMPLE=music
# EXAMPLE=lighting
# EXAMPLE=single_particle
# EXAMPLE=particle_systems
# EXAMPLE=physics
# EXAMPLE=post_processing
# EXAMPLE=sprite
# EXAMPLE=shapes
# EXAMPLE=sound
# EXAMPLE=text
# EXAMPLE=timed_draw
# EXAMPLE=y_sort
# default: build-examples
# default: wasm-build
# default: profile-startup
# default: bitmob
default: example
# default: test
FLAGS=--features=blobs
ENV_VARS=RUST_LOG=info,wgpu=info,symphonia=warn,naga=warn RUST_BACKTRACE=1
bitmob:
$(ENV_VARS) cargo run --bin bitmob $(FLAGS)
example:
$(ENV_VARS) cargo run --example $(EXAMPLE) $(FLAGS)
profile-startup:
cargo run --example shapes --features exit-after-startup
build-examples:
./build-examples.sh
serve:
simple-http-server target/generated -c wasm,html,js -i
publish-crates:
cargo publish -p comfy-core
cargo publish -p comfy-wgpu
cargo publish -p comfy
test:
cargo fmt --check
cargo clippy
cargo test --all --features=blobs
./build-examples.sh