-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·24 lines (18 loc) · 771 Bytes
/
setup.sh
File metadata and controls
executable file
·24 lines (18 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e
[[ ! -f /etc/os-release ]] && { echo "Error: Linux/WSL required"; exit 1; }
echo "Installing system packages..."
sudo apt-get update
sudo apt-get install -y cmake ninja-build unzip wget build-essential
if command -v code &> /dev/null; then
echo "Installing VS Code extensions..."
cat .vscode/extensions.json | jq -r '.recommendations[]' | xargs -I {} code --install-extension {} 2>/dev/null || true
else
echo "Warning: VS Code not found"
fi
echo "==================================="
echo "Setup complete!"
echo "==================================="
cmake -S . -B build -G Ninja -DCMAKE_TOOLCHAIN_FILE=clang-toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build
echo "Build finished!"