-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
59 lines (47 loc) · 1.81 KB
/
mise.toml
File metadata and controls
59 lines (47 loc) · 1.81 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
48
49
50
51
52
53
54
55
56
57
58
59
[tasks.submodule-init]
run = "git submodule update --init --recursive"
[tasks.make-build-folder]
run = "mkdir -p ReacomaExtension/build"
hide = true
[tasks.setupide]
description = "Extracts the compile_commands.json from CMake for the clangd server"
run = "cmake .. -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 && mv compile_commands.json ../../"
dir = "ReacomaExtension/build"
depends = ["make-build-folder"]
[tasks.configure]
run = "cmake .. -GNinja -DCMAKE_BUILD_TYPE={{arg(name='build_type', var=true)}} -DDEPLOYMENT_BUILD=OFF"
dir = "ReacomaExtension/build"
depends = ["make-build-folder"]
[tasks.configure-deployment]
run = "cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DDEPLOYMENT_BUILD=ON"
dir = "ReacomaExtension/build"
depends = ["make-build-folder"]
[tasks.build]
run = "ninja"
dir = "ReacomaExtension/build"
[tasks.deploy]
description = "Configures, builds, and finalizes the deployment build."
run = [
"{{mise_bin}} run make-build-folder",
"{{mise_bin}} run configure-deployment",
"{{mise_bin}} run build",
"echo done!"
]
[tasks.clean]
run = "rm -rf ReacomaExtension/build/*"
[tasks.make-build-folder-windows]
run = '''pwsh -Command "New-Item -Path 'ReacomaExtension/build' -ItemType Directory -Force"'''
hide = true
[tasks.configure-deployment-windows]
run = "cmake -S ReacomaExtension -B ReacomaExtension/build -GNinja -DCMAKE_BUILD_TYPE=Release -DDEPLOYMENT_BUILD=ON"
depends = ["make-build-folder-windows"]
[tasks.build-windows] # Renamed for clarity
run = "cmake --build ReacomaExtension/build --config Release"
[tasks.deploy-windows]
description = "Configures and builds for Windows."
run = [
"mise run configure-deployment-windows",
"mise run build-windows",
]
[tasks.clean-windows]
run = '''pwsh -Command "if (Test-Path 'ReacomaExtension/build') { Remove-Item -Path 'ReacomaExtension/build' -Recurse -Force }"'''