generated from godotengine/godot-cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 926 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
.PHONY: test
test: bin/s7 demo/.godot
$(info 🧪 Running tests)
bin/s7 test/test-main.scm
bin/s7: s7/s7.c
$(info 🛠️ Building scheme interpreter)
gcc s7/s7.c -o bin/s7 -DWITH_MAIN -DWITH_SYSTEM_EXTRAS -DWITH_C_LOADER=0 -I. -O2 -g -ldl -lm
SRC_FILES := $(shell find src -type f ! -name "*.os")
DEMO_FILES := $(shell find demo -type f -name "*.tscn" -or -name "*.scm")
demo/.godot: $(SRC_FILES) $(DEMO_FILES)
$(info 🛠️ Building extension)
@scons
$(info 📦 Importing test scene)
godot --path demo --headless --import
.PHONY: run
run: demo/.godot
godot -e --path demo main.tscn
.PHONY: android
android:
scons platform=android target=template_debug
.PHONY: pack
pack:
rsync -rup demo/addons bin/pack
rsync -rup bin/android bin/ios bin/linux bin/macos bin/web bin/windows demo/bin/godot-s7-scheme.gdextension bin/pack/bin
.PHONY: test-watch
test-watch:
find demo/addons/s7 test | entr make test