forked from Superwaitsum/GDSercomm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 963 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 963 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
all: bin/libGDSercomm.dylib
godot_headers.zip:
curl -Lo godot_headers.zip https://github.com/GodotNativeTools/godot_headers/archive/refs/heads/3.x.zip
godot_headers: godot_headers.zip
unzip godot_headers.zip
mv godot-headers-3.x godot_headers
sercomm.zip:
curl -Lo sercomm.zip https://github.com/ingeniamc/sercomm/archive/refs/heads/master.zip
sercomm: sercomm.zip
unzip sercomm.zip
mv sercomm-master sercomm
lib/libsercomm.a: godot_headers sercomm
cd sercomm/ && cmake -H. -Bbuild -DBUILD_SHARED_LIBS=0
cd sercomm/ && cmake --build build
mkdir -p lib
cp sercomm/build/config.h sercomm/include/public/sercomm/
cp sercomm/build/libsercomm.a lib/
venv:
python3 -m venv venv
source venv/bin/activate && pip3 install scons
bin/libGDSercomm.dylib: lib/libsercomm.a venv
source venv/bin/activate && scons p=osx
clean:
rm -rf sercomm.zip sercomm
rm -rf godot_headers.zip godot_headers
rm -rf lib/libsercomm.a bin/libGDSercomm.dylib
rm -rf venv