1ffe3c632Sopenharmony_ciworkspace(name = "com_google_protobuf_examples")
2ffe3c632Sopenharmony_ci
3ffe3c632Sopenharmony_ciload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_ci# This com_google_protobuf repository is required for proto_library rule.
6ffe3c632Sopenharmony_ci# It provides the protocol compiler binary (i.e., protoc).
7ffe3c632Sopenharmony_ci#
8ffe3c632Sopenharmony_ci# We declare it as local_repository so we can test changes
9ffe3c632Sopenharmony_ci# before they get merged. You'll want to use the following instead:
10ffe3c632Sopenharmony_ci#
11ffe3c632Sopenharmony_ci# http_archive(
12ffe3c632Sopenharmony_ci#     name = "com_google_protobuf",
13ffe3c632Sopenharmony_ci#     strip_prefix = "protobuf-master",
14ffe3c632Sopenharmony_ci#     urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
15ffe3c632Sopenharmony_ci# )
16ffe3c632Sopenharmony_cilocal_repository(
17ffe3c632Sopenharmony_ci    name = "com_google_protobuf",
18ffe3c632Sopenharmony_ci    path = "..",
19ffe3c632Sopenharmony_ci)
20ffe3c632Sopenharmony_ci
21ffe3c632Sopenharmony_ci# Similar to com_google_protobuf but for Java lite. If you are building
22ffe3c632Sopenharmony_ci# for Android, the lite version should be preferred because it has a much
23ffe3c632Sopenharmony_ci# smaller code size.
24ffe3c632Sopenharmony_cilocal_repository(
25ffe3c632Sopenharmony_ci    name = "com_google_protobuf_javalite",
26ffe3c632Sopenharmony_ci    path = "..",
27ffe3c632Sopenharmony_ci)
28ffe3c632Sopenharmony_ci
29ffe3c632Sopenharmony_ciload("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
30ffe3c632Sopenharmony_ci
31ffe3c632Sopenharmony_ciprotobuf_deps()
32