forked from yannis300307/NumcraftRust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (37 loc) · 1.61 KB
/
justfile
File metadata and controls
47 lines (37 loc) · 1.61 KB
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
current_target := shell("rustc -vV | grep \"host:\" | awk '{print $2}'")
build: setup_target
cargo build --release --bin Numcraft --target=thumbv7em-none-eabihf
send: setup_target
cargo run --release --bin Numcraft --target=thumbv7em-none-eabihf
check: setup_target
cargo build --release --bin Numcraft --target=thumbv7em-none-eabihf
cargo build --release --target={{current_target}} --lib
setup_target:
mkdir -p target/assets target/structs target/crafts
[macos]
run_nwb:
./simulator/output/release/simulator/macos/epsilon.app/Contents/MacOS/Epsilon --nwb ./target/{{current_target}}/release/libnumcraft_sim.dylib
[linux]
run_nwb:
./simulator/output/release/simulator/linux/epsilon.bin --nwb ./target/{{current_target}}/release/libnumcraft_sim.so
sim jobs="1" features="": setup_target
-git clone https://github.com/numworks/epsilon.git simulator -b version-20 # Broken with version 21. Nice!
if [ -n "{{features}}"];then \
cargo build --release --target={{current_target}} --lib;\
else \
cargo build --release --target={{current_target}} --lib --features {{features}};\
fi
if [ ! -f "target/simulator_patched" ]; then \
cd simulator && make PLATFORM=simulator -j {{jobs}}; \
cd ..; \
echo "yes it is" >> target/simulator_patched; \
fi
just run_nwb
[confirm("This will clean the built app AND the simulator. Do you want to continue ?")]
clean-all:
cd ./simulator && make clean
cargo clean
[confirm("This will clean the built app AND DELETE the simulator. Do you want to continue ?")]
clear-all:
rm -rf ./simulator
cargo clean