#!/bin/bash
set -e
cd /home/fabian/sd-restapi/build
rm -f CMakeCache.txt
echo "=== CMAKE ==="
cmake .. -DSD_VULKAN=ON -DGGML_VULKAN=ON -DSDCPP_WEBUI=ON -DSDCPP_WEBSOCKET=ON -DCMAKE_BUILD_TYPE=Release 2>&1 | grep -E "WebSocket|Web UI|===|Vulkan"
echo "=== BUILD ==="
make -j12 2>&1 | tail -5
echo "=== RESULT ==="
ls -la bin/sdcpp-restapi
echo "BUILD SUCCESS"
