代码拉取完成,页面将自动刷新
#!/bin/bash
if test \( $# -ne 1 \);
then
echo "Usage: build.sh arch config"
echo ""
echo "Configs:"
echo " debug - build with the debug configuration"
echo " release - build with the release configuration"
echo ""
exit 1
fi
if test \( \( -n "$1" \) -a \( "$1" = "debug" \) \);then
CMAKE_ARG_BUILD_TYPE_CONFIG="-DCMAKE_BUILD_TYPE=Debug"
elif test \( \( -n "$1" \) -a \( "$1" = "release" \) \);then
CMAKE_ARG_BUILD_TYPE_CONFIG="-DCMAKE_BUILD_TYPE=Release"
else
echo "The config \"$1\" is not supported!"
echo ""
echo "Configs:"
echo " debug - build with the debug configuration"
echo " release - build with the release configuration"
echo ""
exit 1
fi
MY_DIR="$(cd "$(dirname "$0")" 1>/dev/null 2>/dev/null && pwd)"
cd "${MY_DIR}"
mkdir -p "engine/shader/generated/spv"
# export PATH=/home/boomingtech/Documents/cmake-3.22.3-linux-x86_64/bin${PATH:+:${PATH}}
export CC=clang
export CXX=clang++
cmake -S engine -B build "${CMAKE_ARG_BUILD_TYPE_CONFIG}" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build "${MY_DIR}/build"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。