• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2009-2021, Google LLC
2# All rights reserved.
3#
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file or at
6# https://developers.google.com/open-source/licenses/bsd
7
8load("//upb/bazel:build_defs.bzl", "UPB_DEFAULT_COPTS")
9
10package(default_applicable_licenses = ["//:license"])
11
12cc_library(
13    name = "base",
14    srcs = [
15        "status.c",
16    ],
17    hdrs = [
18        "descriptor_constants.h",
19        "status.h",
20        "status.hpp",
21        "string_view.h",
22        "upcast.h",
23    ],
24    copts = UPB_DEFAULT_COPTS,
25    visibility = ["//visibility:public"],
26    deps = [
27        "//upb:port",
28    ],
29)
30
31cc_library(
32    name = "internal",
33    hdrs = [
34        "internal/endian.h",
35        "internal/log2.h",
36    ],
37    copts = UPB_DEFAULT_COPTS,
38    visibility = ["//visibility:public"],
39    deps = ["//upb:port"],
40)
41
42filegroup(
43    name = "source_files",
44    srcs = glob(
45        [
46            "**/*.c",
47            "**/*.h",
48            "**/*.hpp",
49        ],
50    ),
51    visibility = [
52        "//python/dist:__pkg__",
53        "//upb/cmake:__pkg__",
54    ],
55)
56