forked from firemodels/smv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
43 lines (34 loc) · 1.38 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
set windows-powershell := true
alias b := build
alias br := build-release
_default:
@just --list
# Run the tests
test:
ctest --test-dir cbuild -C Debug
# Build the debug binaries
build:
cmake -B cbuild -DLUA=ON -DGLUI=ON -DLUA_BUILD_BINARY=ON -DLUA_UTIL_LIBS=ON -DCMAKE_BUILD_TYPE=Debug -DVCPKG_TARGET_TRIPLET=x64-windows-static -DVCPKG_HOST_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE="../vcpkg/scripts/buildsystems/vcpkg.cmake"
cmake --build cbuild --config Debug -j6 -v
cmake --install cbuild --config Debug --prefix dist-debug
# Build the release binaries
build-release:
cmake -B cbuild -DLUA=ON -DGLUI=ON -DLUA_BUILD_BINARY=ON -DLUA_UTIL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x64-windows-static -DVCPKG_HOST_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE="../vcpkg/scripts/buildsystems/vcpkg.cmake"
cmake --build cbuild --config Release -v -j6
cmake --install cbuild --config Release --prefix dist
# Build release and create MSI package
package-windows: build-release package-affinity-windows
candle "SMVLuaInstaller.wxs"
light "SMVLuaInstaller.wixobj"
package-affinity-windows:
candle "AffinitySMVExtra.wxs"
light "AffinitySMVExtra.wixobj"
# Build release and create RPM package
package-rpm:
./buildrpm.sh
# Clean the ./dist folder
clean-dist:
rm -r dist
# Clean everything
clean: clean-dist
rm -r cbuild