-
Notifications
You must be signed in to change notification settings - Fork 1
/
Justfile
35 lines (26 loc) · 785 Bytes
/
Justfile
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
help:
@just --list
build-with-config config:
@mkdir -p build
@cd build && cmake ..
@cmake --build ./build --config {{config}} --target raylib-tic-tac-toe -j 10 --
build-debug:
@just build-with-config Debug
build-release:
@just build-with-config Release
clean:
@rm -rf build || true
@rm -rf out || true
build-web-with-config config:
#!/usr/bin/env bash
mkdir -p build-web
# Ensure resources folder is copied
rm -rf build-web/resources || true
cp -R resources build-web/resources
cd build-web
emcmake cmake .. -DPLATFORM=Web -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-s USE_GLFW=3" -DCMAKE_EXECUTABLE_SUFFIX=".html" -DWEB_SHELL={{config}}
emmake make
build-web:
@just build-web-with-config minshell
build-web-debug:
@just build-web-with-config shell