vulkzample/build.sh
Rebekah Rowe a6c67dd91f
Initial Commit
This took alot of love to build.
It is build off of the combo of the Vulkan Tutorial and Sample files
from the vulkanHPP library.

The VulkanHPP Library appears compatible with the GPL license as per it
being the Apache 2 license.
2024-07-13 20:29:05 -04:00

26 lines
633 B
Bash

#/bin/sh -e
SCRIPT_PATH="$(readlink -f "$0")"
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
cd "$SCRIPT_DIR"
if [ -z "$ENABLE_DEBUG" ]; then
EXT_CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release"
else
EXT_CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug"
if [ -n "$ENABLE_ASAN" ]; then
EXT_CMAKE_OPTIONS="$EXT_CMAKE_OPTIONS -DENABLE_ASAN=ON"
else
EXT_CMAKE_OPTIONS="$EXT_CMAKE_OPTIONS -DENABLE_ASAN=OFF"
fi
fi
if [ -n "$ENABLE_TESTS" ]; then
EXT_CMAKE_OPTIONS="$EXT_CMAKE_OPTIONS -DENABLE_TESTS=ON"
else
EXT_CMAKE_OPTIONS="$EXT_CMAKE_OPTIONS -DENABLE_TESTS=OFF"
fi
cmake $EXT_CMAKE_OPTIONS -S ./ -B ./build/
cmake --build ./build/ --parallel