Don't run bin2c discovery on macos

This commit is contained in:
Georg Hagen
2025-12-07 21:50:11 +01:00
parent 277546a574
commit 1ded3ab244

View File

@@ -15,11 +15,13 @@ SHADER_PATH="$2"
UNIQUE_ENTRY_NAME="$3" UNIQUE_ENTRY_NAME="$3"
BIN2C_EXE="${4:-bin2c}" BIN2C_EXE="${4:-bin2c}"
if [[ "$(uname)" != "Darwin" ]]; then
if [ -z "$4" ]; then if [ -z "$4" ]; then
if [ -e "$HOME/bin/bin2c" ]; then if [ -e "$HOME/bin/bin2c" ]; then
BIN2C_EXE="$HOME/bin/bin2c" BIN2C_EXE="$HOME/bin/bin2c"
fi fi
fi fi
fi
HEADER_PATH="$1"/"GeneratedShaderData_${3}.h" HEADER_PATH="$1"/"GeneratedShaderData_${3}.h"
C_PATH="$1"/"GeneratedShaderData_${3}.c" C_PATH="$1"/"GeneratedShaderData_${3}.c"