1 Star 0 Fork 0

yyzz990/Pilot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_linux.sh 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Hongyu Wei 提交于 2022-04-04 19:56 . Init Commit
#!/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"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yyzz990/Pilot.git
git@gitee.com:yyzz990/Pilot.git
yyzz990
Pilot
Pilot
main

搜索帮助