1 Star 0 Fork 9

LanMeng/como

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MakeOptionalExternal.sh 1004 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# build result:
# ./external/libzmq/build/lib/libzmq.a
# ./external/phxpaxos/export_como/PhxPaxos.so
current_path=$(pwd);
function perror() {
echo -e "\033[0;31;1m$1\033[0m"
}
function psucc() {
echo -e "\e[1;32m$1\e[0m"
}
function go_back()
{
cd $current_path;
}
function check_dir_exist()
{
dir_path=$current_path"/$1";
if [ ! -d $dir_path ]; then
perror $dir_path" dir not exist.";
exit 1;
fi
}
function check_file_exist()
{
if [ ! -f $1 ]; then
return 1;
fi
return 0;
}
function build_libzmq()
{
cd ${ROOT}/external/libzmq;
mkdir build && cd build;
cmake ..;
make;
go_back;
psucc "make libzmq ok."
}
function build_phxpaxos()
{
cd ${ROOT}/external/phxpaxos;
./MakeMe.sh;
go_back;
psucc "make phxpaxos ok."
}
if [ ! -n "${ROOT}" ]; then
echo "Not in COMO build environment!";
exit 0;
fi
build_libzmq;
build_phxpaxos;
psucc "COMO build, Make optional external done."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lanmeng19980907/como.git
[email protected]:lanmeng19980907/como.git
lanmeng19980907
como
como
master

搜索帮助