1 Star 0 Fork 346

tiwer / swoole-src

forked from swoole / swoole-src 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
make.sh 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
韩天峰 提交于 2020-12-15 22:19 . support capture_peer_cert (#3930)
#!/bin/sh -e
__DIR__=$(cd "$(dirname "$0")";pwd)
__EXT_DIR__=$(php-config --extension-dir)
cd "${__DIR__}"
if [ "$1" = "cmake" ] ;then
phpize
./configure --enable-openssl --enable-swoole-json --enable-swoole-curl --enable-sockets --enable-mysqlnd --enable-http2
cmake .
make -j 8
exit 0
fi
if [ "$1" = "clean" ] ;then
make clean
phpize --clean
exit 0
fi
if [ "$1" = "install-module" ] ;then
make ext-swoole
cp lib/swoole.so "${__EXT_DIR__}"
echo "cp lib/swoole.so ${__EXT_DIR__}"
exit 0
fi
if [ "$1" = "sync-module" ] ;then
# thirtparty
git submodule init
git submodule update
exit 0
fi
if [ "$1" = "library" ] ;then
set -e
cd ${__DIR__}
set +e
echo "rm ext-src/php_swoole.lo"
rm -f ext-src/php_swoole.lo
echo "rm ext-src/php_swoole_library.h"
rm -f ext-src/php_swoole_library.h
set -e
if [ "$2" = "dev" ] ;then
/usr/bin/env php tools/build-library.php dev
else
/usr/bin/env php tools/build-library.php
fi
echo "remake..."
make
echo "done"
exit 0
fi
if [ "$1" = "help" ] ;then
echo "./make.sh cmake"
echo "./make.sh install-module"
echo "./make.sh sync-module"
echo "./make.sh clean"
echo "./make.sh debug"
echo "./make.sh"
echo "./make.sh library"
exit 0
fi
phpize
if [ "$1" = "debug" ] ;then
./configure --enable-openssl --enable-swoole-json --enable-swoole-curl --enable-sockets --enable-mysqlnd --enable-http2 --enable-debug-log
else
./configure --enable-openssl --enable-swoole-json --enable-swoole-curl --enable-sockets --enable-mysqlnd --enable-http2
fi
make clean
make -j 8
make install
C
1
https://gitee.com/tiwer/swoole.git
git@gitee.com:tiwer/swoole.git
tiwer
swoole
swoole-src
master

搜索帮助