blob: 0eb938e7e5d79acbfe83d2e79deb269b0727b216 [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
2
David Chenb78bbd52016-03-16 13:17:57 +00003# Protobuf expects an //external:python_headers label which would contain the
4# Python headers if fast Python protos is enabled. Since we are not using fast
5# Python protos, bind python_headers to a dummy target.
6bind(
7 name = "python_headers",
8 actual = "//:dummy",
9)
10
Damien Martin-Guillerez0c1a8cf2016-02-05 18:37:12 +000011# Bind to dummy targets if no android SDK/NDK is present.
12bind(
13 name = "android_sdk_for_testing",
14 actual = "//:dummy",
15)
16
17bind(
18 name = "android_ndk_for_testing",
19 actual = "//:dummy",
20)
21
Alpha Lama1a79cb2016-05-15 19:13:52 +000022# Protobuf code generation for GRPC requires three external labels:
23# //external:grpc-java_plugin
24# //external:grpc-jar
25# //external:guava
26bind(
27 name = "grpc-java-plugin",
28 actual = "//third_party/grpc:grpc-java-plugin",
29)
30
31bind(
32 name = "grpc-jar",
33 actual = "//third_party/grpc:grpc-jar",
34)
35
36bind(
37 name = "guava",
38 actual = "//third_party:guava",
39)
40
Damien Martin-Guillerez9b889202016-03-03 00:35:13 +000041# For tools/cpp/test/...
42load("//tools/cpp/test:docker_repository.bzl", "docker_repository")
43docker_repository()
44
Steven Deec74d3e42016-02-02 16:32:23 +000045# In order to run the Android integration tests, run
46# scripts/workspace_user.sh and uncomment the next two lines.
47# load("/WORKSPACE.user", "android_repositories")
48# android_repositories()
Cal Peyser2152bc12016-04-22 17:08:59 +000049
Adam Michael8a136d82016-11-16 23:04:46 +000050# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
51# instructions above for the Android integration tests and uncomment the
52# following lines:
53# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
54# maven_dependency_plugin()
55
Cal Peyser2152bc12016-04-22 17:08:59 +000056# This allows rules written in skylark to locate apple build tools.
57bind(name = "xcrunwrapper", actual = "@bazel_tools//tools/objc:xcrunwrapper")
Carmi Grushkobfaff292016-08-17 18:37:55 +000058
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000059new_local_repository(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000060 name = "com_google_protobuf",
Irina Iancue50388e2017-02-24 13:04:14 +010061 path = "./third_party/protobuf/3.0.0/",
62 build_file = "./third_party/protobuf/3.0.0/BUILD",
Carmi Grushko0fd73d62017-02-17 06:49:40 +000063)
64
65new_local_repository(
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000066 name = "com_google_protobuf_java",
Irina Iancue50388e2017-02-24 13:04:14 +010067 path = "./third_party/protobuf/3.0.0/",
68 build_file = "./third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD",
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000069)