-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
43 lines (30 loc) · 976 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
41
42
43
all: gd-lint gd-format-check cpp-format-check
init:
git submodule update --init --recursive
cloc:
cloc .
todo:
ack TODO src/
gource:
gource . --key -s 1.5 -a 0.1
gd-format:
find -name '*.gd' | xargs gdformat
gd-format-check:
find -name '*.gd' | xargs gdformat --check
gd-lint:
find -name '*.gd' | xargs gdlint
setup-linux:
cd thirdparty/godot-cpp && scons -j$(shell nproc) platform=linux target=release generate_bindings=yes && cd -
setup-windows:
cd thirdparty/godot-cpp && scons -j$(shell nproc) platform=windows target=release generate_bindings=yes && cd -
build-linux:
mkdir -p bin/
scons -j$(shell nproc) platform=linux target=release
build-windows:
scons -j$(shell nproc) platform=windows target=release
mv bin/win64/libadvancednavigation.so bin/win64/libadvancednavigation.dll
cpp-format-check:
clang-format --style=file --dry-run -Werror src/*.[ch]pp
clean:
scons platform=linux target=release -c
scons platform=windows target=release -c