blob: fc615dd4dc3554a06da2d174f7bbc61e1b5cda7e [file]
# Copyright (c) 2025, Google LLC
# All rights reserved.
#
# 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_cc//cc:defs.bzl", "cc_library")
package(default_applicable_licenses = ["//:license"])
cc_library(
name = "types",
hdrs = ["types.h"],
visibility = ["//hpb:__subpackages__"],
deps = [
"//hpb:multibackend",
] + select({
"//hpb:hpb_backend_cpp": [
"//hpb/backend/cpp:error",
"//src/google/protobuf:arena",
],
"//hpb:hpb_backend_upb": [
"//hpb/backend/upb:error",
"//upb/mem",
],
}),
)