1 Star 0 Fork 1

leo/opengl-es-compute-shader-sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 852 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhanyuan 提交于 2020-06-16 11:57 +08:00 . opengl es sample
#!/bin/bash
PREDICT_PLATFORM="x86"
# PREDICT_PLATFORM="arm64"
check_android_ndk() {
if [[ "$ANDROID_NDK" == "" ]]; then
echo "Please set ANDROID_NDK in enviroment variable, for example: export ANDROID_NDK=/root/usr/android-ndk-r18b/"
exit
fi
}
core=$(< /proc/cpuinfo grep -c "processor")
rm -rf build
mkdir build
cd build
if [[ "X$PREDICT_PLATFORM" == "Xx86" ]]; then
cmake -DCMAKE_BUILD_TYPE="Release" -DENABLE_ARM=off ..
else
check_android_ndk
cmake -DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" \
-DANDROID_NATIVE_API_LEVEL="19" -DANDROID_NDK="${ANDROID_NDK}" -DANDROID_ABI="arm64-v8a" \
-DANDROID_TOOLCHAIN_NAME="aarch64-linux-android-clang" -DANDROID_STL="c++_static" \
-DCMAKE_BUILD_TYPE="Release" -DENABLE_ARM=on ..
fi
make VERBOSE=2 -j${core}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/leoxc/opengl-es-compute-shader-sample.git
git@gitee.com:leoxc/opengl-es-compute-shader-sample.git
leoxc
opengl-es-compute-shader-sample
opengl-es-compute-shader-sample
master

搜索帮助