Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

download gflags/gtest/protobuf and use native bazel rules to compile #2528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -698,3 +698,22 @@ new_http_archive(
])
)
# end pex repos

http_archive(
name = "com_github_gflags_gflags",
urls = ["https://github.com/gflags/gflags/archive/v2.2.1.tar.gz"],
strip_prefix = "gflags-2.2.1",
)

http_archive(
name = "com_google_protobuf",
urls = ["https://github.com/google/protobuf/archive/v3.4.1.tar.gz"],
strip_prefix = "protobuf-3.4.1",
)

new_http_archive(
name = "com_google_googletest",
urls = ["https://github.com/google/googletest/archive/release-1.8.0.tar.gz"],
strip_prefix = "googletest-release-1.8.0",
build_file = "third_party/gtest/gtest.BUILD",
)
2 changes: 1 addition & 1 deletion heron/api/tests/cpp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cc_test(
deps = [
"//heron/api/src/cpp:cxx-api",
"//heron/common/src/cpp/basics:basics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron/api/src/cpp",
Expand Down
3 changes: 2 additions & 1 deletion heron/common/src/cpp/basics/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ cc_library(
deps = [
"//config:config-cxx",
"//third_party/glog:glog-cxx",
"@com_github_gflags_gflags//:gflags",
"//third_party/gperftools:tcmalloc-cxx",
"//third_party/kashmir:kashmir-cxx",
"//third_party/protobuf:protobuf-cxx",
"@com_google_protobuf//:protobuf",
] + select({
"//tools/platform:darwin": [],
"//conditions:default": ["//third_party/libunwind:libunwind-cxx"],
Expand Down
2 changes: 1 addition & 1 deletion heron/common/src/cpp/metrics/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cc_library(
"//heron/common/src/cpp/network:network-cxx",
"//heron/common/src/cpp/config:config-cxx",
"//third_party/glog:glog-cxx",
"//third_party/protobuf:protobuf-cxx",
"@com_google_protobuf//:protobuf",
],
linkstatic = 1,
)
8 changes: 4 additions & 4 deletions heron/common/tests/cpp/basics/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cc_test(
srcs = ["fileutils_unittest.cpp"],
deps = [
"//heron/common/src/cpp/basics:basics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-I.",
Expand All @@ -20,7 +20,7 @@ cc_test(
srcs = ["rid_unittest.cpp"],
deps = [
"//heron/common/src/cpp/basics:basics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-I.",
Expand All @@ -35,7 +35,7 @@ cc_test(
srcs = ["strutils_unittest.cpp"],
deps = [
"//heron/common/src/cpp/basics:basics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-I.",
Expand All @@ -50,7 +50,7 @@ cc_test(
srcs = ["utils_unittest.cpp"],
deps = [
"//heron/common/src/cpp/basics:basics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-I.",
Expand Down
6 changes: 3 additions & 3 deletions heron/common/tests/cpp/errors/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/errors:errors-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-I.",
Expand All @@ -61,7 +61,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/errors:errors-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-I.",
Expand All @@ -83,7 +83,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/errors:errors-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-I.",
Expand Down
10 changes: 5 additions & 5 deletions heron/common/tests/cpp/metrics/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/metrics:metrics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -26,7 +26,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/metrics:metrics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -45,7 +45,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/metrics:metrics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -64,7 +64,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/metrics:metrics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -83,7 +83,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/metrics:metrics-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand Down
10 changes: 5 additions & 5 deletions heron/common/tests/cpp/network/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/network:network-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron/common/src/cpp",
Expand All @@ -47,7 +47,7 @@ cc_test(
deps = [
":proto_unittests_cc",
"//heron/common/src/cpp/network:network-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron/common/src/cpp",
Expand All @@ -67,7 +67,7 @@ cc_test(
deps = [
":proto_unittests_cc",
"//heron/common/src/cpp/network:network-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron/common/src/cpp",
Expand All @@ -92,7 +92,7 @@ cc_test(
deps = [
":proto_unittests_cc",
"//heron/common/src/cpp/network:network-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron/common/src/cpp",
Expand All @@ -111,7 +111,7 @@ cc_test(
],
deps = [
"//heron/common/src/cpp/network:network-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron/common/src/cpp",
Expand Down
2 changes: 1 addition & 1 deletion heron/common/tests/cpp/threads/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cc_test(
srcs = ["spcountdownlatch_unittest.cpp"],
deps = [
"//heron/common/src/cpp/threads:threads-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron/common/src/cpp",
Expand Down
2 changes: 1 addition & 1 deletion heron/proto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ cc_library(
":proto_topology_cc",
":proto_stats_cc",
":proto_common_cc",
"//third_party/protobuf:protobuf-cxx",
"@com_google_protobuf//:protobuf",
],
linkstatic = 1,
)
Expand Down
3 changes: 1 addition & 2 deletions heron/statemgrs/tests/cpp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ cc_test(
],
deps = [
"//heron/statemgrs/src/cpp:statemgrs-cxx",
"//third_party/gtest:gmock-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand Down
10 changes: 5 additions & 5 deletions heron/stmgr/tests/cpp/grouping/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:grouping-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -27,7 +27,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:grouping-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -47,7 +47,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:grouping-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -67,7 +67,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:grouping-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -87,7 +87,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:grouping-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand Down
6 changes: 3 additions & 3 deletions heron/stmgr/tests/cpp/server/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cc_test(
"//heron/stmgr/src/cpp:util-cxx",
# TODO: Stmgr unit tests should not depend on tmaster
"//heron/tmaster/src/cpp:tmaster-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
data = [
"//heron/config/src/yaml:test-config-internals-yaml",
Expand Down Expand Up @@ -48,7 +48,7 @@ cc_test(
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/stmgr/src/cpp:grouping-cxx",
"//heron/stmgr/src/cpp:util-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand Down Expand Up @@ -78,7 +78,7 @@ cc_test(
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/stmgr/src/cpp:grouping-cxx",
"//heron/stmgr/src/cpp:util-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
data = ["//heron/config/src/yaml:test-config-internals-yaml"],
copts = [
Expand Down
8 changes: 4 additions & 4 deletions heron/stmgr/tests/cpp/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:util-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -28,7 +28,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:util-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
data = ["//heron/config/src/yaml:test-config-internals-yaml"],
copts = [
Expand All @@ -50,7 +50,7 @@ cc_test(
],
deps = [
"//heron/stmgr/src/cpp:util-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
data = ["//heron/config/src/yaml:test-config-internals-yaml"],
copts = [
Expand All @@ -73,7 +73,7 @@ cc_test(
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/stmgr/src/cpp:grouping-cxx",
"//heron/stmgr/src/cpp:util-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand Down
8 changes: 4 additions & 4 deletions heron/tmaster/tests/cpp/server/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cc_test(
deps = [
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/tmaster/src/cpp:tmaster-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
data = [
"//heron/config/src/yaml:test-config-internals-yaml",
Expand Down Expand Up @@ -39,7 +39,7 @@ cc_test(
deps = [
"//heron/stmgr/src/cpp:manager-cxx",
"//heron/tmaster/src/cpp:tmaster-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand Down Expand Up @@ -67,7 +67,7 @@ cc_test(
],
deps = [
"//heron/tmaster/src/cpp:tmaster-cxx",
"//third_party/gtest:gtest-cxx",
"@com_google_googletest//:gtest",
],
copts = [
"-Iheron",
Expand All @@ -81,4 +81,4 @@ cc_test(
size = "small",
flaky = 1,
linkstatic = 1,
)
)
Loading