| # Protocol Buffers - Google's data interchange format | |
| # Copyright 2026 Google LLC | |
| # | |
| # Use of this source code is governed by a BSD-style | |
| # license that can be found in the LICENSE file or at | |
| # https://developers.google.com/open-source/licenses/bsd | |
| load("@rules_testing//lib:util.bzl", "PREVENT_IMPLICIT_BUILDING_TAGS") | |
| load("//bazel:cc_proto_library.bzl", "cc_proto_library") | |
| load("//bazel:proto_library.bzl", "proto_library") | |
| load("//bazel/tests:proto_bzl_test_suite.bzl", "bzl_test_suite") | |
| load(":tests.bzl", "TESTS") | |
| package(default_applicable_licenses = ["//:license"]) | |
| proto_library( | |
| name = "foo_proto", | |
| srcs = ["foo.proto"], | |
| tags = PREVENT_IMPLICIT_BUILDING_TAGS, | |
| ) | |
| cc_proto_library( | |
| name = "foo_cc_proto", | |
| tags = PREVENT_IMPLICIT_BUILDING_TAGS, | |
| deps = [":foo_proto"], | |
| ) | |
| bzl_test_suite( | |
| name = "tests", | |
| config_settings = { | |
| "//command_line_option:features": [ | |
| "supports_dynamic_linker", | |
| "supports_interface_shared_libraries", | |
| ], | |
| }, | |
| tests = TESTS, | |
| ) |