44 Star 335 Fork 129

寻根 / cppweb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
compile.sh 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
lemonzheng 提交于 2022-05-07 14:37 . cppweb.2.0.5版本
#!/bin/bash
name=`uname`
setup=cppshell/setup
if [ "$name" == "Linux" ]
then
setup=cppshell/setup
else
setup=cppshell/setup.exe
if [ `pwd | wc -w` -gt 1 ]
then
echo 'current path has space character'
exit -1
fi
fi
echo 'initialize configure'
echo '---------------------------------------------'
if [ -d C:/Windows/System32 ]
then
mkdir -p product/win/lib
mkdir -p product/win/dll
mkdir -p product/win/bin
gccpath=`pwd`/product/win/gcc/bin
if [ -d $gccpath ]
then
if [ `which g++ 2> /dev/null | wc -l` -eq 0 ]
then
export PATH=$PATH:$gccpath
fi
fi
if [ -f product/win/lib/openssl/lib/ssl.lib ]
then
echo '1.check openssl success'
else
echo 'please install openssl first'
exit -1
fi
else
mkdir -p product/lib
mkdir -p product/dll
mkdir -p product/bin
if [ `which openssl 2> /dev/null | wc -l` -eq 0 ]
then
echo 'please install openssl first'
exit -1
else
echo '1.check openssl success'
fi
fi
if [ -f cppshell/setup.cpp ]
then
rm -rf $setup
g++ -std=c++11 cppshell/setup.cpp -o $setup
if [ -f $setup ]
then
$setup
else
echo "compiler don't support c++11"
exit -1
fi
echo '2.check g++ compiler success'
else
echo '2.skip g++ compiler check'
fi
if [ `which javac 2> /dev/null | wc -l` -gt 0 ]
then
echo '3.check java compiler success'
else
echo '3.skip java module initialize'
fi
echo '4.create product directory success'
export CPPWEB_INSTALL_HOME=`pwd`
source .webprofile
echo '---------------------------------------------'
echo '>>> initialize build-essential success'
echo ''
echo '*** wait few minutes for compiling ***'
echo ''
make $1 $2 $3 $4
C++
1
https://gitee.com/xungen/cppweb.git
git@gitee.com:xungen/cppweb.git
xungen
cppweb
cppweb
master

搜索帮助