github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/pkg/protoc/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "protoc",
     5      srcs = [
     6          "depsresolver.go",
     7          "file.go",
     8          "intent.go",
     9          "language_config.go",
    10          "language_plugin_config.go",
    11          "language_rule.go",
    12          "language_rule_config.go",
    13          "other_proto_library.go",
    14          "package.go",
    15          "package_config.go",
    16          "plugin.go",
    17          "plugin_configuration.go",
    18          "plugin_context.go",
    19          "plugin_registry.go",
    20          "proto_compile.go",
    21          "proto_compiled_sources.go",
    22          "proto_descriptor_set.go",
    23          "proto_library.go",
    24          "protoc_configuration.go",
    25          "registry.go",
    26          "resolver.go",
    27          "rewrite.go",
    28          "rule_provider.go",
    29          "rule_registry.go",
    30          "ruleindex.go",
    31          "starlark_plugin.go",
    32          "starlark_rule.go",
    33          "starlark_util.go",
    34          "syntaxutil.go",
    35          "yconfig.go",
    36      ],
    37      importpath = "github.com/stackb/rules_proto/pkg/protoc",
    38      visibility = ["//visibility:public"],
    39      deps = [
    40          "@bazel_gazelle//config:go_default_library",
    41          "@bazel_gazelle//label:go_default_library",
    42          "@bazel_gazelle//resolve:go_default_library",
    43          "@bazel_gazelle//rule:go_default_library",
    44          "@com_github_bazelbuild_buildtools//build:go_default_library",
    45          "@com_github_emicklei_proto//:proto",
    46          "@in_gopkg_yaml_v3//:yaml_v3",
    47          "@net_starlark_go//starlark",
    48          "@net_starlark_go//starlarkstruct",
    49      ],
    50  )
    51  
    52  go_test(
    53      name = "protoc_test",
    54      srcs = [
    55          "depsresolver_test.go",
    56          "fake_proto_library_test.go",
    57          "file_test.go",
    58          "intent_test.go",
    59          "language_config_test.go",
    60          "language_rule_config_test.go",
    61          "other_proto_library_test.go",
    62          "package_config_test.go",
    63          "package_test.go",
    64          "proto_plugin_config_test.go",
    65          "protoc_configuration_test.go",
    66          "resolver_test.go",
    67          "rewrite_test.go",
    68          "starlark_plugin_test.go",
    69          "starlark_rule_test.go",
    70          "starlark_util_test.go",
    71      ],
    72      embed = [":protoc"],
    73      deps = [
    74          "@bazel_gazelle//config:go_default_library",
    75          "@bazel_gazelle//label:go_default_library",
    76          "@bazel_gazelle//resolve:go_default_library",
    77          "@bazel_gazelle//rule:go_default_library",
    78          "@com_github_emicklei_proto//:proto",
    79          "@com_github_google_go_cmp//cmp",
    80          "@com_github_google_go_cmp//cmp/cmpopts",
    81          "@com_github_stretchr_testify//assert",
    82          "@net_starlark_go//starlark",
    83          "@net_starlark_go//starlarkstruct",
    84      ],
    85  )
    86  
    87  filegroup(
    88      name = "all_files",
    89      testonly = True,
    90      srcs = [
    91          "BUILD.bazel",
    92      ] + glob(["*.go"]),
    93      visibility = ["//pkg:__pkg__"],
    94  )