Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
52cdedbb
Commit
52cdedbb
authored
Feb 19, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up building process with Nghttp2 and Folly
parent
593cf973
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
20 deletions
+14
-20
build/scripts/build_helper.fb_folly
build/scripts/build_helper.fb_folly
+3
-12
build/scripts/build_helper.smf
build/scripts/build_helper.smf
+11
-8
No files found.
build/scripts/build_helper.fb_folly
View file @
52cdedbb
...
@@ -49,27 +49,21 @@ install_fb_folly_from_source(){
...
@@ -49,27 +49,21 @@ install_fb_folly_from_source(){
then
then
if [[ "$OS_BASEDISTRO" == "fedora" ]]; then
if [[ "$OS_BASEDISTRO" == "fedora" ]]; then
$SUDO $INSTALLER install $OPTION \
$SUDO $INSTALLER install $OPTION \
gcc-c++ \
$CMAKE \
boost-devel \
boost-devel \
libevent-devel \
libevent-devel \
double-conversion-devel \
double-conversion-devel \
glog-devel \
glog-devel \
gflags-devel \
gflags-devel \
snappy-devel \
snappy-devel \
make \
lz4-devel \
lz4-devel \
zlib-devel \
zlib-devel \
binutils-devel \
binutils-devel \
jemalloc-devel \
jemalloc-devel \
openssl-devel \
openssl-devel
pkg-config
ret=$?;[[ $ret -ne 0 ]] && return $ret
ret=$?;[[ $ret -ne 0 ]] && return $ret
elif [[ $OS_DISTRO == "ubuntu" ]]; then
elif [[ $OS_DISTRO == "ubuntu" ]]; then
$SUDO $INSTALLER install $OPTION \
$SUDO $INSTALLER install $OPTION \
g++ \
g++ \
cmake \
libboost-all-dev \
libevent-dev \
libevent-dev \
libdouble-conversion-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libgoogle-glog-dev \
...
@@ -78,12 +72,10 @@ install_fb_folly_from_source(){
...
@@ -78,12 +72,10 @@ install_fb_folly_from_source(){
liblz4-dev \
liblz4-dev \
liblzma-dev \
liblzma-dev \
libsnappy-dev \
libsnappy-dev \
make
\
wget
\
zlib1g-dev \
zlib1g-dev \
binutils-dev \
binutils-dev \
libjemalloc-dev \
libjemalloc-dev
libssl-dev \
pkg-config
ret=$?;[[ $ret -ne 0 ]] && return $ret
ret=$?;[[ $ret -ne 0 ]] && return $ret
fi
fi
...
@@ -149,4 +141,3 @@ install_fb_folly_from_source(){
...
@@ -149,4 +141,3 @@ install_fb_folly_from_source(){
echo_success "End of folly installation"
echo_success "End of folly installation"
return 0
return 0
}
}
build/scripts/build_helper.smf
View file @
52cdedbb
...
@@ -67,6 +67,7 @@ install_fmt() {
...
@@ -67,6 +67,7 @@ install_fmt() {
fi
fi
return 0
return 0
}
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
#arg2 is debug (0 or 1) (install debug libraries)
...
@@ -140,7 +141,11 @@ install_pistache_from_git() {
...
@@ -140,7 +141,11 @@ install_pistache_from_git() {
cd pistache && git checkout e18ed9baeb2145af6f9ea41246cf48054ffd9907
cd pistache && git checkout e18ed9baeb2145af6f9ea41246cf48054ffd9907
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
mkdir _build && cd _build
mkdir _build && cd _build
$CMAKE -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
$CMAKE -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \
-DPISTACHE_BUILD_EXAMPLES=false \
-DPISTACHE_BUILD_TESTS=false \
-DPISTACHE_BUILD_DOCS=false \
..
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
make
make
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
...
@@ -151,9 +156,6 @@ install_pistache_from_git() {
...
@@ -151,9 +156,6 @@ install_pistache_from_git() {
return 0
return 0
}
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#arg1 is force (0 or 1) (no interactive script)
#arg1 is force (0 or 1) (no interactive script)
#arg2 is debug (0 or 1) (install debug libraries)
#arg2 is debug (0 or 1) (install debug libraries)
...
@@ -274,7 +276,7 @@ install_nghttp2_from_git() {
...
@@ -274,7 +276,7 @@ install_nghttp2_from_git() {
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
autoconf
autoconf
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
./configure --enable-asio-lib
./configure --enable-asio-lib
--enable-lib-only
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
make
make
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
ret=$?;[[ $ret -ne 0 ]] && popd && return $ret
...
@@ -349,7 +351,6 @@ check_install_smf_deps() {
...
@@ -349,7 +351,6 @@ check_install_smf_deps() {
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
ret=$?;[[ $ret -ne 0 ]] && return $ret
# Libraries
# Libraries
if [[ $OS_DISTRO == "ubuntu" ]]; then
if [[ $OS_DISTRO == "ubuntu" ]]; then
case "$(get_distribution_release)" in
case "$(get_distribution_release)" in
...
@@ -378,7 +379,8 @@ check_install_smf_deps() {
...
@@ -378,7 +379,8 @@ check_install_smf_deps() {
nettle-dev \
nettle-dev \
libcurl4 \
libcurl4 \
net-tools \
net-tools \
pkg-config"
pkg-config \
libasan2"
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
PACKAGE_LIST="\
PACKAGE_LIST="\
guile-devel \
guile-devel \
...
@@ -397,7 +399,8 @@ check_install_smf_deps() {
...
@@ -397,7 +399,8 @@ check_install_smf_deps() {
nettle-devel \
nettle-devel \
libcurl-devel \
libcurl-devel \
python2 \
python2 \
pkgconfig"
pkgconfig \
libasan"
else
else
echo_fatal "$OS_DISTRO is not a supported distribution."
echo_fatal "$OS_DISTRO is not a supported distribution."
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment