Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
63b86837
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看板
提交
63b86837
编写于
7月 31, 2019
作者:
Y
yangrui07
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix cube-api dependency path
上级
25ebc9b3
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
24 addition
and
22 deletion
+24
-22
CMakeLists.txt
CMakeLists.txt
+1
-1
cube/cube-api/CMakeLists.txt
cube/cube-api/CMakeLists.txt
+14
-12
cube/cube-api/include/cube_api.h
cube/cube-api/include/cube_api.h
+2
-2
cube/cube-api/include/cube_api_bvar.h
cube/cube-api/include/cube_api_bvar.h
+0
-0
cube/cube-api/include/error.h
cube/cube-api/include/error.h
+0
-0
cube/cube-api/include/meta.h
cube/cube-api/include/meta.h
+0
-0
cube/cube-api/src/cube_api.cpp
cube/cube-api/src/cube_api.cpp
+4
-4
cube/cube-api/src/cube_cli.cpp
cube/cube-api/src/cube_cli.cpp
+1
-1
cube/cube-api/src/meta.cpp
cube/cube-api/src/meta.cpp
+2
-2
未找到文件。
CMakeLists.txt
浏览文件 @
63b86837
...
...
@@ -105,12 +105,12 @@ if (NOT CLIENT_ONLY)
list
(
APPEND EXTERNAL_LIBS opencv
)
endif
()
add_subdirectory
(
cube
)
add_subdirectory
(
configure
)
add_subdirectory
(
pdcodegen
)
add_subdirectory
(
sdk-cpp
)
add_subdirectory
(
demo-client
)
add_subdirectory
(
kvdb
)
add_subdirectory
(
cube
)
if
(
NOT CLIENT_ONLY
)
add_subdirectory
(
predictor
)
...
...
cube/cube-api/CMakeLists.txt
浏览文件 @
63b86837
...
...
@@ -25,9 +25,6 @@ execute_process(
set
(
CMAKE_PREFIX_PATH
${
OUTPUT_PATH
}
)
include_directories
(
SYSTEM
${
CMAKE_CURRENT_LIST_DIR
}
/include
)
include_directories
(
SYSTEM
${
CMAKE_CURRENT_BINARY_DIR
}
/../
)
include
(
FindThreads
)
include
(
FindProtobuf
)
protobuf_generate_cpp
(
PROTO_SRC PROTO_HEADER idl/cube.proto idl/control.proto
)
...
...
@@ -91,12 +88,11 @@ if (NOT CRYPTO_LIB)
message
(
FATAL_ERROR
"Fail to find crypto"
)
endif
()
add_executable
(
cube
_
cli src/cube_cli.cpp src/cube_api.cpp src/meta.cpp
add_executable
(
cube
-
cli src/cube_cli.cpp src/cube_api.cpp src/meta.cpp
${
PROTO_SRC
}
${
PROTO_HEADER
}
)
add_library
(
cube
_
api STATIC src/cube_api.cpp src/meta.cpp
add_library
(
cube
-
api STATIC src/cube_api.cpp src/meta.cpp
${
PROTO_SRC
}
${
PROTO_HEADER
}
)
install
(
TARGETS cube_api ARCHIVE DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/lib/
)
set
(
DYNAMIC_LIB
${
CMAKE_THREAD_LIBS_INIT
}
...
...
@@ -122,10 +118,16 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
"-Wl,-U,_ProfilerStop"
)
endif
()
target_link_libraries
(
cube_cli
${
DYNAMIC_LIB
}
brpc -lpthread -ldl -lz
)
target_link_libraries
(
cube_api
${
DYNAMIC_LIB
}
brpc -lpthread -ldl -lz
)
target_link_libraries
(
cube-cli
${
DYNAMIC_LIB
}
brpc -lpthread -ldl -lz
)
target_link_libraries
(
cube-api
${
DYNAMIC_LIB
}
brpc -lpthread -ldl -lz
)
# install
install
(
TARGETS cube-api
ARCHIVE DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/lib
)
install
(
DIRECTORY
${
CMAKE_CURRENT_LIST_DIR
}
/include
DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/include/
)
file
(
GLOB cube_api_headers
"
${
CMAKE_CURRENT_LIST_DIR
}
/src/*.h"
)
install
(
FILES
${
cube_api_headers
}
DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/include/cube_api/
)
message
(
STATUS
"CUBE_API_INSTALL_DIR:
${
PADDLE_SERVING_INSTALL_DIR
}
/include/cube_api/"
)
FILE
(
GLOB inc
${
CMAKE_CURRENT_BINARY_DIR
}
/*.pb.h
)
install
(
FILES
${
inc
}
DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/include/cube-api
)
cube/cube-api/include/cube
/cube
_api.h
→
cube/cube-api/include/cube_api.h
浏览文件 @
63b86837
...
...
@@ -19,8 +19,8 @@
#include <vector>
#include "brpc/server.h"
#include "cube-api/cube.pb.h"
#include "cube/meta.h"
#include "cube
/cube
-api/cube.pb.h"
#include "cube/
cube-api/include/
meta.h"
namespace
rec
{
namespace
mcube
{
...
...
cube/cube-api/include/cube
/cube
_api_bvar.h
→
cube/cube-api/include/cube_api_bvar.h
浏览文件 @
63b86837
文件已移动
cube/cube-api/include/
cube/
error.h
→
cube/cube-api/include/error.h
浏览文件 @
63b86837
文件已移动
cube/cube-api/include/
cube/
meta.h
→
cube/cube-api/include/meta.h
浏览文件 @
63b86837
文件已移动
cube/cube-api/src/cube_api.cpp
浏览文件 @
63b86837
...
...
@@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "cube/cube_api.h"
#include "cube/cube
-api/include/cube
_api.h"
#include <brpc/channel.h>
#include <brpc/parallel_channel.h>
#include <google/protobuf/descriptor.h>
#include "cube/cube_api_bvar.h"
#include "cube/cube
-api/include/cube
_api_bvar.h"
#include "cube/error.h"
#include "cube/meta.h"
#include "cube/
cube-api/include/
error.h"
#include "cube/
cube-api/include/
meta.h"
namespace
{
static
::
rec
::
mcube
::
CubeAPI
*
g_ins
=
NULL
;
...
...
cube/cube-api/src/cube_cli.cpp
浏览文件 @
63b86837
...
...
@@ -15,7 +15,7 @@
#include <gflags/gflags.h>
#include <atomic>
#include "cube/cube_api.h"
#include "cube/cube
-api/include/cube
_api.h"
#define TIME_FLAG(flag) \
struct timeval flag; \
...
...
cube/cube-api/src/meta.cpp
浏览文件 @
63b86837
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "cube/meta.h"
#include "cube/
cube-api/include/
meta.h"
#include <google/protobuf/descriptor.h>
#include <string.h>
...
...
@@ -20,7 +20,7 @@
#include <new>
#include <sstream>
#include "cube-api/cube.pb.h"
#include "cube
/cube
-api/cube.pb.h"
namespace
{
static
::
rec
::
mcube
::
Meta
*
g_ins
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录