Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
f9c7b181
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f9c7b181
编写于
5月 27, 2019
作者:
W
wangjiawei04
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
replace gtest with external third party
Change-Id: I5019541be132c3063879aaf16ae1a609cd36a071
上级
29f094fc
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
35 addition
and
31058 deletion
+35
-31058
CMakeLists.txt
CMakeLists.txt
+1
-0
cmake/external/gtest.cmake
cmake/external/gtest.cmake
+29
-68
kvdb/CMakeLists.txt
kvdb/CMakeLists.txt
+1
-3
kvdb/gtest-1.7.0/fused-src/gtest/CMakeLists.txt
kvdb/gtest-1.7.0/fused-src/gtest/CMakeLists.txt
+0
-2
kvdb/gtest-1.7.0/fused-src/gtest/gtest-all.cc
kvdb/gtest-1.7.0/fused-src/gtest/gtest-all.cc
+0
-10261
kvdb/gtest-1.7.0/fused-src/gtest/gtest-all.cc.d
kvdb/gtest-1.7.0/fused-src/gtest/gtest-all.cc.d
+0
-3
kvdb/gtest-1.7.0/fused-src/gtest/gtest.h
kvdb/gtest-1.7.0/fused-src/gtest/gtest.h
+0
-20721
predictor/conf/workflow.conf
predictor/conf/workflow.conf
+4
-0
未找到文件。
CMakeLists.txt
浏览文件 @
f9c7b181
...
...
@@ -69,6 +69,7 @@ include(external/brpc)
include
(
external/gflags
)
include
(
external/glog
)
include
(
external/snappy
)
include
(
external/gtest
)
#include(external/redis++)
include
(
generic
)
include
(
flags
)
...
...
cmake/external/gtest.cmake
浏览文件 @
f9c7b181
...
...
@@ -12,72 +12,33 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#FIXME:(gongwb) Move brpc's gtest dependency.
IF
(
WITH_TESTING
OR
(
WITH_DISTRIBUTE AND NOT WITH_GRPC
))
IF
(
WITH_TESTING
)
ENABLE_TESTING
()
ENDIF
(
WITH_TESTING
)
INCLUDE
(
ExternalProject
)
SET
(
GTEST_SOURCES_DIR
${
THIRD_PARTY_PATH
}
/gtest
)
SET
(
GTEST_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/gtest
)
SET
(
GTEST_INCLUDE_DIR
"
${
GTEST_INSTALL_DIR
}
/include"
CACHE PATH
"gtest include directory."
FORCE
)
SET
(
GTEST_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/lib/libgtest.a"
CACHE FILEPATH
"gtest library."
FORCE
)
INCLUDE_DIRECTORIES
(
${
GTEST_INCLUDE_DIR
}
)
ExternalProject_Add
(
extern_gtest
${
EXTERNAL_PROJECT_LOG_ARGS
}
PREFIX
${
GTEST_SOURCES_DIR
}
GIT_REPOSITORY
"https://github.com/google/googletest"
GIT_TAG master
UPDATE_COMMAND
""
CONFIGURE_COMMAND
""
BUILD_COMMAND CXXFLAGS=-fPIC && mkdir build && cd build && cmake .. && make -j
${
NUM_OF_PROCESSOR
}
gtest
INSTALL_COMMAND mkdir -p
${
GTEST_INSTALL_DIR
}
/lib/
&& cp
${
GTEST_SOURCES_DIR
}
/src/extern_gtest/build/lib/libgtest.a
${
GTEST_LIBRARIES
}
&& cp -r
${
GTEST_SOURCES_DIR
}
/src/extern_gtest/googletest/include
${
GTEST_INSTALL_DIR
}
/
BUILD_IN_SOURCE 1
)
ADD_DEPENDENCIES
(
extern_gtest snappy
)
ADD_LIBRARY
(
gtest STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET gtest PROPERTY IMPORTED_LOCATION
${
GTEST_LIBRARIES
}
)
LIST
(
APPEND external_project_dependencies gtest
)
INCLUDE
(
ExternalProject
)
SET
(
GTEST_SOURCES_DIR
${
THIRD_PARTY_PATH
}
/gtest
)
SET
(
GTEST_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/gtest
)
SET
(
GTEST_INCLUDE_DIR
"
${
GTEST_INSTALL_DIR
}
/include"
CACHE PATH
"gtest include directory."
FORCE
)
INCLUDE_DIRECTORIES
(
${
GTEST_INCLUDE_DIR
}
)
IF
(
WIN32
)
set
(
GTEST_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/lib/gtest.lib"
CACHE FILEPATH
"gtest libraries."
FORCE
)
set
(
GTEST_MAIN_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/lib/gtest_main.lib"
CACHE FILEPATH
"gtest main libraries."
FORCE
)
ELSE
(
WIN32
)
set
(
GTEST_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/lib/libgtest.a"
CACHE FILEPATH
"gtest libraries."
FORCE
)
set
(
GTEST_MAIN_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/lib/libgtest_main.a"
CACHE FILEPATH
"gtest main libraries."
FORCE
)
ENDIF
(
WIN32
)
IF
(
WITH_MKLML
)
# wait for mklml downloading completed
SET
(
GTEST_DEPENDS
${
MKLML_PROJECT
}
)
ENDIF
()
ExternalProject_Add
(
extern_gtest
${
EXTERNAL_PROJECT_LOG_ARGS
}
DEPENDS
${
GTEST_DEPENDS
}
GIT_REPOSITORY
"https://github.com/google/googletest.git"
GIT_TAG
"release-1.8.0"
PREFIX
${
GTEST_SOURCES_DIR
}
UPDATE_COMMAND
""
CMAKE_ARGS -DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
-DCMAKE_CXX_FLAGS=
${
CMAKE_CXX_FLAGS
}
-DCMAKE_CXX_FLAGS_RELEASE=
${
CMAKE_CXX_FLAGS_RELEASE
}
-DCMAKE_CXX_FLAGS_DEBUG=
${
CMAKE_CXX_FLAGS_DEBUG
}
-DCMAKE_C_FLAGS=
${
CMAKE_C_FLAGS
}
-DCMAKE_C_FLAGS_DEBUG=
${
CMAKE_C_FLAGS_DEBUG
}
-DCMAKE_C_FLAGS_RELEASE=
${
CMAKE_C_FLAGS_RELEASE
}
-DCMAKE_INSTALL_PREFIX=
${
GTEST_INSTALL_DIR
}
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DBUILD_GMOCK=ON
-Dgtest_disable_pthreads=ON
-Dgtest_force_shared_crt=ON
-DCMAKE_BUILD_TYPE=
${
THIRD_PARTY_BUILD_TYPE
}
${
EXTERNAL_OPTIONAL_ARGS
}
CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=
${
GTEST_INSTALL_DIR
}
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
-DCMAKE_BUILD_TYPE:STRING=
${
THIRD_PARTY_BUILD_TYPE
}
)
ADD_LIBRARY
(
gtest STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET gtest PROPERTY IMPORTED_LOCATION
${
GTEST_LIBRARIES
}
)
ADD_DEPENDENCIES
(
gtest extern_gtest
)
ADD_LIBRARY
(
gtest_main STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET gtest_main PROPERTY IMPORTED_LOCATION
${
GTEST_MAIN_LIBRARIES
}
)
ADD_DEPENDENCIES
(
gtest_main extern_gtest
)
LIST
(
APPEND external_project_dependencies gtest gtest_main
)
ENDIF
(
WITH_TESTING
OR
(
WITH_DISTRIBUTE AND NOT WITH_GRPC
))
kvdb/CMakeLists.txt
浏览文件 @
f9c7b181
include_directories
(
SYSTEM
${
CMAKE_CURRENT_LIST_DIR
}
/gtest-1.7.0/fused-src
${
CMAKE_CURRENT_LIST_DIR
}
/include
)
add_subdirectory
(
./gtest-1.7.0/fused-src/gtest
)
include_directories
(
SYSTEM
${
CMAKE_CURRENT_LIST_DIR
}
/include
)
set
(
SRC_LIST
${
CMAKE_CURRENT_LIST_DIR
}
/src/test_rocksdb.cpp
${
CMAKE_CURRENT_LIST_DIR
}
/src/rockskvdb_impl.cpp
...
...
kvdb/gtest-1.7.0/fused-src/gtest/CMakeLists.txt
已删除
100644 → 0
浏览文件 @
29f094fc
add_library
(
gtest gtest-all.cc
)
kvdb/gtest-1.7.0/fused-src/gtest/gtest-all.cc
已删除
100644 → 0
浏览文件 @
29f094fc
此差异已折叠。
点击以展开。
kvdb/gtest-1.7.0/fused-src/gtest/gtest-all.cc.d
已删除
100644 → 0
浏览文件 @
29f094fc
third
-
party
/
gtest
-
1.7.0
/
fused
-
src
/
gtest
/
gtest
-
all
.
cc
.
d
\
third
-
party
/
gtest
-
1.7.0
/
fused
-
src
/
gtest
/
gtest
-
all
.
o
:
\
third
-
party
/
gtest
-
1.7.0
/
fused
-
src
/
gtest
/
gtest
-
all
.
cc
kvdb/gtest-1.7.0/fused-src/gtest/gtest.h
已删除
100644 → 0
浏览文件 @
29f094fc
此差异已折叠。
点击以展开。
predictor/conf/workflow.conf
浏览文件 @
f9c7b181
...
...
@@ -13,3 +13,7 @@ name: workflow3
path
: ./
conf
file
:
echo_dag
.
conf
[@
Workflow
]
name
:
workflow7
path
: ./
conf
file
:
echo_kvdb_dag
.
conf
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录