-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
102 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,6 +306,7 @@ setup_variable WITH_LEVELDB "yes" | |
|
||
setup_variable WITH_FMT "yes" | ||
setup_variable WITH_DOUBLE_CONVERSION "yes" | ||
setup_variable WITH_GFLAGS "yes" | ||
setup_variable WITH_FOLLY "yes" | ||
setup_variable WITH_PROXYGEN "yes" | ||
setup_variable WITH_GOOGLE_LOG "yes" | ||
|
@@ -631,6 +632,7 @@ echo -e "${COLOR_VAR_NAME}WITH_GOOGLE_LOG${COLOR_DOTS}........${COLOR_VAR_DESC}L | |
echo -e "${COLOR_VAR_NAME}WITH_WANGLE${COLOR_DOTS}............${COLOR_VAR_DESC}LibWangle${COLOR_DOTS}..............................${COLOR_VAR_VAL}$WITH_WANGLE${COLOR_RESET}" | ||
echo -e "${COLOR_VAR_NAME}WITH_FIZZ${COLOR_DOTS}..............${COLOR_VAR_DESC}LibFIZZ${COLOR_DOTS}................................${COLOR_VAR_VAL}$WITH_FIZZ${COLOR_RESET}" | ||
echo -e "${COLOR_VAR_NAME}WITH_ZSTD${COLOR_DOTS}..............${COLOR_VAR_DESC}LibZSTD${COLOR_DOTS}................................${COLOR_VAR_VAL}$WITH_ZSTD${COLOR_RESET}" | ||
echo -e "${COLOR_VAR_NAME}WITH_GFLAGS${COLOR_DOTS}............${COLOR_VAR_DESC}LibGFLAGS${COLOR_DOTS}..............................${COLOR_VAR_VAL}$WITH_GFLAGS${COLOR_RESET}" | ||
|
||
cd "$SOURCES_ROOT" | ||
|
||
|
@@ -2710,6 +2712,42 @@ then | |
fi | ||
fi | ||
|
||
|
||
#https://github.com/gflags/gflags | ||
#[email protected]:gflags/gflags.git | ||
#https://github.com/gflags/gflags.git | ||
if [ "$WITH_GFLAGS" = "yes" ]; | ||
then | ||
echo -e "${COLOR_SEPARATOR}==================== ${COLOR_PROJECT_NAME}libGFLAGS${COLOR_SEPARATOR} ====================================${COLOR_RESET}" | ||
if [ ! -f "$INSTALL_ROOT/lib/libgflags${DEBUG__DEBUG}.a" ]; | ||
then | ||
env_restore | ||
cd "$SOURCES_ROOT" | ||
if [ ! -d "gflags" ]; | ||
then | ||
echo -e "${COLOR_INFO}unpacking it${COLOR_DOTS}...${COLOR_RESET}" | ||
eval unzip -o "$PREDOWNLOADED_ROOT/gflags-master.zip" | ||
echo -e "${COLOR_INFO}configuring it${COLOR_DOTS}...${COLOR_RESET}" | ||
cd gflags-master | ||
eval mkdir -p build | ||
cd build | ||
eval "$CMAKE" "${CMAKE_CROSSCOMPILING_OPTS}" -DCMAKE_INSTALL_PREFIX="$INSTALL_ROOT" -DCMAKE_BUILD_TYPE="$TOP_CMAKE_BUILD_TYPE" \ | ||
-DBUILD_SHARED_LIBS=OFF \ | ||
.. | ||
cd .. | ||
else | ||
cd gflags-master | ||
fi | ||
echo -e "${COLOR_INFO}building it${COLOR_DOTS}...${COLOR_RESET}" | ||
cd build | ||
eval "$MAKE" "${PARALLEL_MAKE_OPTIONS}" | ||
eval "$MAKE" "${PARALLEL_MAKE_OPTIONS}" install | ||
cd "$SOURCES_ROOT" | ||
else | ||
echo -e "${COLOR_SUCCESS}SKIPPED${COLOR_RESET}" | ||
fi | ||
fi | ||
|
||
#https://github.com/facebook/folly | ||
#[email protected]:facebook/folly.git | ||
#https://github.com/facebook/folly.git | ||
|