代码拉取完成,页面将自动刷新
#!/bin/bash
sh_folder=$(dirname $(readlink -f $0))
folder_name=$(basename $sh_folder)
# 定义编译的版本类型(DEBUG|RELEASE)
build_type=Debug
typeset -u arg1=$1
[ "$arg1" = "DEBUG" ] && build_type=Debug
[ "$arg1" = "RELEASE" ] && build_type=Release
echo build_type=$build_type
# 是否编译测试程序
build_test=True
pushd $sh_folder/..
[ -d $folder_name.gcc ] && rm -fr $folder_name.gcc
mkdir $folder_name.gcc
pushd $folder_name.gcc
conan install $sh_folder --build missing -of . -o build_test=$build_test -s build_type=$build_type || exit
cmake "$sh_folder" -G "Eclipse CDT4 - Unix Makefiles" \
-DCMAKE_BUILD_TYPE=$build_type \
-DCMAKE_TOOLCHAIN_FILE=./conan_toolchain.cmake \
-DAUTO_BUILD_TEST=$build_test \
-DCMAKE_INSTALL_PREFIX=$sh_folder/release/jpegwrapper-$(gcc -dumpmachine) || exit
cmake --build . --config $build_type || exit
cmake --install . --config $build_type || exit
popd
popd
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。