-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_on_linux_clang.sh
executable file
·27 lines (22 loc) · 1.02 KB
/
build_on_linux_clang.sh
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
#!/bin/bash
project_path=$PWD
if [ ! -d clang-build ]; then
mkdir clang-build
pushd clang-build
cmake "$project_path" \
-G 'Ninja Multi-Config' \
-DCMAKE_INSTALL_PREFIX="$HOME/.local/share/Steam/steamapps/common/Noita/mods" \
-DCMAKE_TOOLCHAIN_FILE="$project_path/TC-clang.cmake" \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON \
-DLUA_INCLUDE_DIR="/home/dexter/NoitaMods/NoitaPatcher/luajit/src" \
-DLUA_LIBRARIES="/home/dexter/NoitaMods/NoitaPatcher/luajit/src/lua51.dll"
popd
fi
cmake --build clang-build --config Release &&
cmake --build clang-build --config Debug &&
cmake --install clang-build --component NoitaImGui --config Release &&
cmake --install clang-build --component NoitaImGui_Example --config Release &&
cmake --install clang-build --component NoitaImGui_Native --config Release &&
cmake --install clang-build --component NoitaImGui --config Debug &&
cmake --install clang-build --component NoitaImGui_Native --config Debug