Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
urhero
Paddle
提交
6a989170
P
Paddle
项目概览
urhero
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6a989170
编写于
12月 13, 2016
作者:
Y
Yi Wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix all building errors
上级
f9f2741f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
50 addition
and
32 deletion
+50
-32
WORKSPACE
WORKSPACE
+14
-15
third_party/gflags.BUILD
third_party/gflags.BUILD
+12
-0
third_party/glog.BUILD
third_party/glog.BUILD
+0
-13
third_party/glog_test/BUILD
third_party/glog_test/BUILD
+11
-0
third_party/glog_test/glog_test.cc
third_party/glog_test/glog_test.cc
+9
-0
third_party/protobuf_test/BUILD
third_party/protobuf_test/BUILD
+4
-4
未找到文件。
WORKSPACE
浏览文件 @
6a989170
...
@@ -8,26 +8,25 @@ http_archive(
...
@@ -8,26 +8,25 @@ http_archive(
# External dependency to gtest 1.7.0. This method comes from
# External dependency to gtest 1.7.0. This method comes from
# https://www.bazel.io/versions/master/docs/tutorial/cpp.html.
# https://www.bazel.io/versions/master/docs/tutorial/cpp.html.
new_http_archive
(
new_http_archive
(
name
=
"gtest"
,
name
=
"gtest"
,
url
=
"https://github.com/google/googletest/archive/release-1.7.0.zip"
,
url
=
"https://github.com/google/googletest/archive/release-1.7.0.zip"
,
sha256
=
"b58cb7547a28b2c718d1e38aee18a3659c9e3ff52440297e965f5edffe34b6d0"
,
sha256
=
"b58cb7547a28b2c718d1e38aee18a3659c9e3ff52440297e965f5edffe34b6d0"
,
build_file
=
"third_party/gtest.BUILD"
,
build_file
=
"third_party/gtest.BUILD"
,
strip_prefix
=
"googletest-release-1.7.0"
,
strip_prefix
=
"googletest-release-1.7.0"
,
)
)
# External dependency to gflags. This method comes from
# External dependency to gflags. This method comes from
# https://github.com/gflags/example/blob/master/WORKSPACE.
# https://github.com/gflags/example/blob/master/WORKSPACE.
git_repository
(
new_git_repository
(
name
=
"gflags"
,
name
=
"gflags"
,
tag
=
"v2.2.0"
,
tag
=
"v2.2.0"
,
remote
=
"https://github.com/gflags/gflags.git"
remote
=
"https://github.com/gflags/gflags.git"
,
build_file
=
"third_party/gflags.BUILD"
,
)
)
# External dependency to glog. This method comes from
# External dependency to glog. This method comes from
# https://github.com/reyoung/bazel_playground/blob/master/WORKSPACE
# https://github.com/reyoung/bazel_playground/blob/master/WORKSPACE
new_git_repository
(
new_git_repository
(
name
=
"glog"
,
name
=
"glog"
,
remote
=
"https://github.com/google/glog.git"
,
remote
=
"https://github.com/google/glog.git"
,
commit
=
"b6a5e0524c28178985f0d228e9eaa43808dbec3c"
,
commit
=
"b6a5e0524c28178985f0d228e9eaa43808dbec3c"
,
build_file
=
"third_party/glog.BUILD"
build_file
=
"third_party/glog.BUILD"
)
)
third_party/gflags.BUILD
0 → 100644
浏览文件 @
6a989170
# Bazel (http://bazel.io/) BUILD file for gflags.
#
# See INSTALL.md for instructions for adding gflags to a Bazel workspace.
licenses(["notice"])
exports_files(["src/gflags_complections.sh", "COPYING.txt"])
load(":bazel/gflags.bzl", "gflags_sources", "gflags_library")
(hdrs, srcs) = gflags_sources(namespace=["google", "gflags"])
gflags_library(hdrs=hdrs, srcs=srcs, threads=0)
gflags_library(hdrs=hdrs, srcs=srcs, threads=1)
third_party/glog.BUILD
浏览文件 @
6a989170
...
@@ -3,10 +3,6 @@ licenses(["notice"])
...
@@ -3,10 +3,6 @@ licenses(["notice"])
cc_library(
cc_library(
visibility = ["//visibility:public"],
visibility = ["//visibility:public"],
name = "glog",
name = "glog",
deps = [
#"//third_party/libunwind:libunwind-k8",
"@gflags//:gflags",
],
includes = [
includes = [
".",
".",
"src",
"src",
...
@@ -24,9 +20,6 @@ cc_library(
...
@@ -24,9 +20,6 @@ cc_library(
"-DHAVE_INTTYPES_H",
"-DHAVE_INTTYPES_H",
"-DHAVE_LIBPTHREAD",
"-DHAVE_LIBPTHREAD",
"-DHAVE_SYS_SYSCALL_H",
"-DHAVE_SYS_SYSCALL_H",
#"-DHAVE_LIBUNWIND_H",
"-DHAVE_LIB_GFLAGS",
#"-DHAVE_LIB_UNWIND",
"-DHAVE_MEMORY_H",
"-DHAVE_MEMORY_H",
"-DHAVE_NAMESPACES",
"-DHAVE_NAMESPACES",
"-DHAVE_PREAD",
"-DHAVE_PREAD",
...
@@ -51,7 +44,6 @@ cc_library(
...
@@ -51,7 +44,6 @@ cc_library(
#"-fno-sanitize=thread",
#"-fno-sanitize=thread",
#"-fno-sanitize=address",
#"-fno-sanitize=address",
"-Iexternal/glog/src",
"-Iexternal/glog/src",
#"-I/usr/local/include", # XXX import libunwind
],
],
srcs = [
srcs = [
"src/demangle.cc",
"src/demangle.cc",
...
@@ -71,7 +63,6 @@ cc_library(
...
@@ -71,7 +63,6 @@ cc_library(
"src/demangle.h",
"src/demangle.h",
"src/mock-log.h",
"src/mock-log.h",
"src/stacktrace.h",
"src/stacktrace.h",
#"src/stacktrace_libunwind-inl.h",
"src/symbolize.h",
"src/symbolize.h",
"src/utilities.h",
"src/utilities.h",
"src/base/commandlineflags.h",
"src/base/commandlineflags.h",
...
@@ -79,10 +70,6 @@ cc_library(
...
@@ -79,10 +70,6 @@ cc_library(
"src/base/mutex.h",
"src/base/mutex.h",
"src/glog/log_severity.h",
"src/glog/log_severity.h",
],
],
linkopts = [
#"-pthread",
#"-L/usr/local/lib -lunwind",
],
)
)
genrule(
genrule(
...
...
third_party/glog_test/BUILD
0 → 100644
浏览文件 @
6a989170
licenses
([
"notice"
])
# Apache 2.0
cc_test
(
name
=
"glog_test"
,
srcs
=
[
"glog_test.cc"
],
copts
=
[
"-Iexternal/gtest/include"
],
deps
=
[
"@gtest//:gtest"
,
"@glog//:glog"
,
],
)
third_party/glog_test/glog_test.cc
0 → 100644
浏览文件 @
6a989170
#include <iostream>
#include <string>
#include "glog/logging.h"
#include "gtest/gtest.h"
TEST
(
GlogTest
,
Logging
)
{
LOG
(
INFO
)
<<
"Hello world"
;
}
third_party/protobuf_test/BUILD
浏览文件 @
6a989170
...
@@ -15,10 +15,10 @@ cc_library(
...
@@ -15,10 +15,10 @@ cc_library(
deps
=
[
":example_proto"
],
)
deps
=
[
":example_proto"
],
)
cc_test
(
cc_test
(
name
=
"example_lib_test"
,
name
=
"example_lib_test"
,
srcs
=
[
"example_lib_test.cc"
],
srcs
=
[
"example_lib_test.cc"
],
copts
=
[
"-Iexternal/gtest/include"
],
copts
=
[
"-Iexternal/gtest/include"
],
deps
=
[
deps
=
[
"@gtest//:gtest"
,
"@gtest//:gtest"
,
":example_lib"
,
":example_lib"
,
],
)
],
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录