kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/examples/proto/BUILD (about)

     1  load("@rules_proto//proto:defs.bzl", "proto_library")
     2  
     3  package(default_visibility = ["//kythe:default_visibility"])
     4  
     5  # TODO(fromberger): The baseline proto_library rule does not have a hook to
     6  # request metadata. That probably means these examples do not work at present,
     7  # though there are no tests to verify that.  Once we have unblocked Bazel
     8  # upgrades, revisit how this should work.
     9  
    10  proto_library(
    11      name = "example_proto",
    12      srcs = ["example.proto"],
    13  )
    14  
    15  cc_proto_library(
    16      name = "example_cc_proto",
    17      deps = [":example_proto"],
    18  )
    19  
    20  cc_library(
    21      name = "proto_user",
    22      srcs = ["proto_user.cc"],
    23      copts = [
    24          "-Wno-non-virtual-dtor",
    25          "-Wno-unused-variable",
    26          "-Wno-implicit-fallthrough",
    27      ],
    28      deps = [":example_cc_proto"],
    29  )
    30  
    31  cc_binary(
    32      name = "proto_indexer",
    33      srcs = ["proto_indexer.cc"],
    34      copts = [
    35          "-Wno-non-virtual-dtor",
    36          "-Wno-unused-variable",
    37          "-Wno-implicit-fallthrough",
    38      ],
    39      deps = [
    40          "//kythe/cxx/common:lib",
    41          "//kythe/cxx/common/indexing:caching_output",
    42          "@com_google_absl//absl/flags:flag",
    43          "@com_google_absl//absl/flags:parse",
    44          "@com_google_absl//absl/log",
    45          "@com_google_absl//absl/log:initialize",
    46      ],
    47  )