first commit

This commit is contained in:
saarsena@gmail.com 2026-04-02 03:41:50 -04:00
commit 5c7d1905a9
25 changed files with 4034 additions and 0 deletions

27
build_web.sh Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash
# Build the Render Pipeline Visualizer for the web using Emscripten
set -e
# Source emsdk if not already in PATH
if ! command -v emcc &> /dev/null; then
source ~/emsdk/emsdk_env.sh
fi
BUILD_DIR="build-web"
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
emcmake cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DSDL_SHARED=OFF \
-DSDL_STATIC=ON \
-DSDL_TEST=OFF \
-DSDL_X11=OFF \
-DSDL_WAYLAND=OFF
emmake make -j$(nproc)
echo ""
echo "Build complete! Files are in $BUILD_DIR/"
echo "To test locally: cd $BUILD_DIR && python3 -m http.server 8080"
echo "Then open http://localhost:8080/sdl3_flecs_template.html"