blob: 69929d330a022d18d2e0c706f685a94f3dd823b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# One-shot dev environment: configure, build, IDE compile_commands symlink.
set -e
root="$(cd "$(dirname "$0")/.." && pwd)"
cmake -B "$root/build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build "$root/build"
if [ -f "$root/build/compile_commands.json" ]; then
ln -sf build/compile_commands.json "$root/compile_commands.json"
echo "Linked compile_commands.json -> build/compile_commands.json"
fi
echo "Ready. Install (default → ./bin): cmake --install $root/build"
echo "Start: $root/bin/hybbx-start or $root/scripts/hybbx.sh"
|