0 Star 0 Fork 9

大国青年/rk3588-librga

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cmake-linux.sh 657 Bytes
一键复制 编辑 原始数据 按行查看 历史
Genan 提交于 2023-01-13 16:03 . init rk3588 librga
#!/bin/bash
SCRIPT_DIR=$(cd $(dirname ${BASH_SOURCE[0]}); pwd)
SOURCE_PATH=${SCRIPT_DIR}
# Modify to the local toolchain path.
TOOLCHAIN_PATH=${SOURCE_PATH}/toolchains/toolchain_linux.cmake
BUILD_DIR=build/build_linux
BUILD_TYPE=Release
if [ "$1" = "drm" ];then
echo "using drm"
BUILD_WITH_LIBDRM=true
else
echo "Default mode $1"
BUILD_WITH_LIBDRM=false
fi
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
pushd $BUILD_DIR
cmake ../.. \
-DCMAKE_BUILD_TARGET=buildroot \
-DBUILD_WITH_LIBDRM=${BUILD_WITH_LIBDRM} \
-DBUILD_TOOLCHAINS_PATH=${TOOLCHAIN_PATH} \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_INSTALL_PREFIX=install \
make -j8
make install
popd
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vipox/rk3588-librga.git
[email protected]:vipox/rk3588-librga.git
vipox
rk3588-librga
rk3588-librga
master

搜索帮助