-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 939 Bytes
/
Copy pathMakefile
File metadata and controls
52 lines (42 loc) · 939 Bytes
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
run: debug
./build/bin/editor ./data/test.md
debug:
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-B build && cmake --build build
release:
cmake \
-DCMAKE_BUILD_TYPE=Release \
-B build && cmake --build build
install: clean
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=install \
-B build && cmake --build build
cmake --install build --prefix install
dependencies:
./scripts/dependencies.sh
perf: debug
perf record \
--debuginfod \
--call-graph dwarf,2048 \
./build/bin/editor
perf script -i perf.data \
| ./external/flamegraph/stackcollapse-perf.pl \
| ./external/flamegraph/flamegraph.pl \
--width=2400 \
--minwidth=2 \
--height=20 \
--bgcolors="#282c34" > flamegraph.svg
chromium flamegraph.svg
reformat:
find \
engine/* \
projects/* \
-iname '*.h' -o \
-iname '*.c' -o \
-iname '*.vert' -o \
-iname '*.frag' | xargs clang-format -i
clean:
rm -rf build
rm -rf install