This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
113 lines (95 loc) · 2.38 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# EXAMPLE=animated_shapes
# EXAMPLE=animated_text
# EXAMPLE=animated_sprites
# EXAMPLE=alpha_sprite
# EXAMPLE=blood_canvas
# EXAMPLE=bloom
# EXAMPLE=custom_config
# EXAMPLE=cooldowns
# EXAMPLE=custom_fonts
# EXAMPLE=circle
# EXAMPLE=colors
# EXAMPLE=color-bars
# EXAMPLE=ecs_sprite
# EXAMPLE=ecs_topdown_game
# EXAMPLE=egui
# EXAMPLE=exr-hdr-image
# EXAMPLE=full_game_loop
# EXAMPLE=fullscreen
# EXAMPLE=framerate_vsync
# EXAMPLE=fragment-shader
# EXAMPLE=music
# EXAMPLE=ldtk
# EXAMPLE=lighting
# EXAMPLE=single_particle
# EXAMPLE=particle_systems
# EXAMPLE=perspective-camera
# EXAMPLE=physics
# EXAMPLE=post_processing
# EXAMPLE=render-target
# EXAMPLE=screenshot_history
# EXAMPLE=sprite
# EXAMPLE=shapes
# EXAMPLE=sound
EXAMPLE=text
# EXAMPLE=timed_draw
# EXAMPLE=version
# EXAMPLE=y_sort
# EXAMPLE=z_index_test
# default: build-examples
# default: wasm-build
# default: profile-startup
# default: bitmob
# default: crash
# default: fun
# default: example-wasm
# default: wasm-egui-scaling
# default: egui-demo
# default: lint
# default: test
# default: benchmarks
default: example
# FLAGS=--features=blobs,git-version,dev,ldtk,exr
FLAGS=--features=git-version,dev,tracy
ENV_VARS=RUST_LOG=info,wgpu=warn,symphonia=warn,naga=warn RUST_BACKTRACE=1 COMFY_DEV_TITLE=1 COMFY_VSYNC_OVERRIDE=0
# Crashes on i3 without COMFY_DEV_TITLE=1
i3-crash:
cargo run --example alpha_sprite $(FLAGS)
bitmob:
$(ENV_VARS) cargo run --bin bitmob $(FLAGS)
example:
$(ENV_VARS) cargo run --example $(EXAMPLE) $(FLAGS)
fun:
$(ENV_VARS) cargo run --bin fun $(FLAGS)
example-wasm:
$(ENV_VARS) cargo run --example $(EXAMPLE) $(FLAGS) --target wasm32-unknown-unknown
egui-demo:
$(ENV_VARS) cargo run --bin egui-scaling
benchmarks:
$(ENV_VARS) make -C ../comfy-benchmark
profile-startup:
cargo run --example shapes --features exit-after-startup
wasm-egui-scaling:
cargo run --target wasm32-unknown-unknown --bin egui-scaling
build-examples:
./build-examples.sh
lint:
cargo fmt --all -- --check
cargo clippy
timings:
cargo clean
cargo build --timings --example sprite
# RUSTFLAGS="-Z threads=8" cargo build --timings --example sprite
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,ldtk,exr
./build-examples.sh
duplicates:
simian **/*.rs