kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/cxx/indexer/textproto/BUILD (about)

     1  package(features = ["layering_check"])
     2  
     3  cc_binary(
     4      name = "textproto_indexer",
     5      srcs = ["textproto_indexer_main.cc"],
     6      features = [
     7          "-layering_check",  # TODO: protocolbuffers/protobuf#10889
     8      ],
     9      visibility = ["//visibility:public"],
    10      deps = [
    11          ":analyzer",
    12          ":plugin_registry",
    13          "//kythe/cxx/common:init",
    14          "//kythe/cxx/common:kzip_reader",
    15          "//kythe/cxx/common/indexing:caching_output",
    16          "//kythe/cxx/common/indexing:output",
    17          "//kythe/proto:analysis_cc_proto",
    18          "//kythe/proto:buildinfo_cc_proto",
    19          "@com_google_absl//absl/flags:flag",
    20          "@com_google_absl//absl/flags:parse",
    21          "@com_google_absl//absl/flags:usage",
    22          "@com_google_absl//absl/log",
    23          "@com_google_absl//absl/log:check",
    24          "@com_google_absl//absl/status",
    25          "@com_google_absl//absl/status:statusor",
    26          "@com_google_protobuf//:protobuf",
    27          "@com_google_protobuf//src/google/protobuf/io",
    28      ],
    29  )
    30  
    31  cc_library(
    32      name = "analyzer",
    33      srcs = ["analyzer.cc"],
    34      hdrs = ["analyzer.h"],
    35      features = [
    36          "-layering_check",  # TODO: protocolbuffers/protobuf#10889
    37      ],
    38      deps = [
    39          ":plugin",
    40          ":recordio_textparser",
    41          "//kythe/cxx/common:lib",
    42          "//kythe/cxx/common:path_utils",
    43          "//kythe/cxx/common:utf8_line_index",
    44          "//kythe/cxx/common/indexing:output",
    45          "//kythe/cxx/extractor/textproto:textproto_schema",
    46          "//kythe/cxx/indexer/proto:offset_util",
    47          "//kythe/cxx/indexer/proto:search_path",
    48          "//kythe/cxx/indexer/proto:source_tree",
    49          "//kythe/cxx/indexer/proto:vname_util",
    50          "//kythe/proto:analysis_cc_proto",
    51          "@com_google_absl//absl/container:flat_hash_map",
    52          "@com_google_absl//absl/container:flat_hash_set",
    53          "@com_google_absl//absl/container:node_hash_map",
    54          "@com_google_absl//absl/log",
    55          "@com_google_absl//absl/log:check",
    56          "@com_google_absl//absl/status",
    57          "@com_google_absl//absl/status:statusor",
    58          "@com_google_absl//absl/strings",
    59          "@com_google_protobuf//:protobuf",
    60          "@com_google_protobuf//src/google/protobuf/io",
    61          "@com_googlesource_code_re2//:re2",
    62      ],
    63  )
    64  
    65  cc_library(
    66      name = "plugin",
    67      hdrs = ["plugin.h"],
    68      visibility = ["//visibility:public"],
    69      deps = [
    70          "//kythe/cxx/common/indexing:output",
    71          "//kythe/proto:analysis_cc_proto",
    72          "@com_google_absl//absl/status",
    73          "@com_google_absl//absl/strings",
    74      ],
    75  )
    76  
    77  cc_library(
    78      name = "plugin_registry",
    79      srcs = ["plugin_registry.cc"],
    80      hdrs = ["plugin_registry.h"],
    81      features = [
    82          "-layering_check",  # TODO: protocolbuffers/protobuf#10889
    83      ],
    84      deps = [
    85          ":plugin",
    86          "//kythe/cxx/indexer/textproto/plugins/example:plugin",
    87          "@com_google_absl//absl/flags:flag",
    88          "@com_google_absl//absl/strings",
    89          "@com_google_protobuf//:protobuf",
    90      ],
    91  )
    92  
    93  cc_library(
    94      name = "recordio_textparser",
    95      srcs = ["recordio_textparser.cc"],
    96      hdrs = ["recordio_textparser.h"],
    97      features = [
    98          "-layering_check",  # TODO: protocolbuffers/protobuf#10889
    99      ],
   100      deps = [
   101          "@com_google_absl//absl/flags:flag",
   102          "@com_google_absl//absl/functional:function_ref",
   103          "@com_google_absl//absl/log",
   104          "@com_google_absl//absl/strings",
   105          "@com_google_protobuf//:protobuf",
   106      ],
   107  )
   108  
   109  cc_test(
   110      name = "recordio_textparser_test",
   111      srcs = ["recordio_textparser_test.cc"],
   112      deps = [
   113          ":recordio_textparser",
   114          "//third_party:gtest",
   115          "//third_party:gtest_main",
   116          "@com_google_absl//absl/strings",
   117      ],
   118  )