3 Star 1 Fork 0

Gitee 极速下载/stellar-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/stellar/stellar-core
克隆/下载
make-mks 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
Garand Tyson 提交于 2024-06-05 01:34 +08:00 . Added multithreaded http server library
#!/bin/sh -e
case "$0" in
*/*)
cd $(dirname $0)
;;
esac
if [ -z "$NOGIT" ] ; then
# Bail if not under git
git rev-parse
getFilesRaw() {
git ls-files --recurse-submodules
}
else
getFilesRaw() {
find . -type f
}
fi
getFiles() {
getFilesRaw | tr " " "\n" | sort | uniq
}
trap 'rm -f src/src.mk lib/medida.mk lib/lib.mk' 0
message="# This file was generated by make-mks; don't edit it by hand."
# Use only files git knows about, to avoid picking up autogenrated
# files or other random cruft. When adding a new file foo.cpp, you
# must run "git add -N foo.cpp" before running this script.
(cd src
echo "$message"
echo "SRC_H_FILES" = $(getFiles | egrep -e '\.h$' -e '\.[ih]pp$' | egrep -v '(test|simulation)/' | tr "\n" " ")
echo "SRC_CXX_FILES" = $(getFiles | egrep '\.cpp$' | egrep -v '(test|simulation)/' | tr "\n" " ")
echo "SRC_X_FILES" = $(getFiles | egrep '\.x$' | tr "\n" " ")
echo "SRC_TEST_H_FILES" = $(getFiles | egrep -e '\.h$' -e '\.[ih]pp$' | egrep '(test|simulation)/' | tr "\n" " ")
echo "SRC_TEST_CXX_FILES" = $(getFiles | egrep '\.cpp$' | egrep '(test|simulation)/' | tr "\n" " ")
echo "SRC_RUST_FILES" = $(getFiles | egrep '\.rs$' | tr "\n" " ")
) > src/src.mk
# Hacks for shell third-party libraries without autoconf. You may
# need to re-run this after updating submodules.
listall() {
find "$@" -type f \
\( -name '*.[ch]' -o -name '*.[chi]pp' -o -name '*.cc' \) -print
}
(cd lib
if test -f libmedida/src/medida/medida.h; then
echo "$message"
echo INTERNAL_MEDIDA_FILES = $(listall libmedida/src/medida)
fi) > lib/medida.mk
(cd lib
echo "$message"
echo SOCI_FILES = $(listall soci/src/backends/sqlite3 soci/src/core)
echo SOCI_PG_FILES = $(listall soci/src/backends/postgresql)
echo SQLITE3_FILES = $(listall sqlite)
echo UTIL_FILES = $(listall util http httpthreaded)
echo ASIO_H_FILES = $(listall asio/asio/include)
# The following does not work without boost or -DASIO_STANDALONE=1
#echo ASIO_CXX_FILES = asio/src/*.cpp
echo ASIO_CXX_FILES = asio.cpp
echo TRACY_CXX_FILES = tracy/public/TracyClient.cpp
echo JSON_FILES = $(listall json)
echo SPDLOG_FILES = spdlog.cpp
echo MISC_H_FILES = *.hpp $(listall autocheck cereal fmt)
) > lib/lib.mk
trap '' 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/stellar-core.git
git@gitee.com:mirrors/stellar-core.git
mirrors
stellar-core
stellar-core
master

搜索帮助