-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
75 lines (57 loc) · 1.79 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
set shell := ["cmd", "/c"]
set ignore-comments := true
# Show all presets
default:
just --list
# format all sources with clang-format
format:
#!/usr/bin/env sh
find ./src -name "*.cpp" -o -name "*.hpp" -o -name "*.h" | xargs -I {} clang-format -style=file --verbose -i {}
vcvarsall := '(where /q cl || IF ERRORLEVEL 1 C:\"Program Files (x86)"\"Microsoft Visual Studio"\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat x86_amd64) > NUL'
#configure with x64-debug preset
[windows]
configure-x64-debug:
{{vcvarsall}} && cmake . --preset x64-debug
#configure with x64-release preset
[windows]
configure-x64-release:
{{vcvarsall}} && cmake . --preset x64-release
#build with x64-debug preset
[windows]
build-x64-debug:
{{vcvarsall}} && cmake --build --preset x64-debug --target install
#build with x64-release preset
[windows]
build-x64-release:
{{vcvarsall}} && cmake --build --preset x64-release --target install
#build only patched scintilla dll
[windows]
build-scintilla:
{{vcvarsall}} && cmake --build . --target scintilla
#perform all tests
[windows]
test:
{{vcvarsall}} && cmake --build --preset x64-debug --target test
#build game and scintilla and perform all tests
[windows]
build-all:
{{vcvarsall}} && cmake --build . --target all install --preset x64-debug
#run debug build game
[windows]
run-debug:
{{vcvarsall}} && cd .\out\bin\x64-debug && loader.exe
#build and run with x64-debug preset
[windows]
build-run-debug: build-x64-debug && run-debug
#run release build game
[windows]
run-release:
{{vcvarsall}} && cd .\out\bin\x64-release && loader.exe
#run lldb with .llfb script for stop at injection
[windows]
lldb:
lldb -s .lldb .\out\bin\x64-debug\loader.exe
#connect lldb to notepad
[windows]
lldb-notepad:
lldb -n notepad.exe