2021-04-05 12:26:41 -07:00
|
|
|
# Copyright (c) 2009-2021, Google LLC
|
2021-04-05 10:47:53 -07:00
|
|
|
# All rights reserved.
|
|
|
|
|
#
|
2023-09-08 17:13:32 -07:00
|
|
|
# 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
|
2021-08-11 14:10:28 -07:00
|
|
|
|
2022-02-05 19:26:15 -08:00
|
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
2023-12-05 20:49:29 -08:00
|
|
|
load("@bazel_skylib//lib:selects.bzl", "selects")
|
2024-03-26 18:50:37 -07:00
|
|
|
load("@rules_python//python:defs.bzl", "py_binary")
|
2022-02-05 19:26:15 -08:00
|
|
|
|
2023-05-23 16:36:40 -07:00
|
|
|
# begin:google_only
|
2023-09-12 13:06:39 -07:00
|
|
|
# package(default_applicable_licenses = ["//upb:license"])
|
2023-05-23 16:36:40 -07:00
|
|
|
# end:google_only
|
|
|
|
|
|
2022-02-19 17:35:17 -05:00
|
|
|
licenses(["notice"])
|
|
|
|
|
|
2023-12-05 20:49:29 -08:00
|
|
|
# begin:google_only
|
|
|
|
|
# selects.config_setting_group(
|
|
|
|
|
# name = "android_opt",
|
|
|
|
|
# match_all = [
|
|
|
|
|
# "//tools/cc_target_os:android",
|
|
|
|
|
# "//tools/compilation_mode:opt",
|
|
|
|
|
# ],
|
|
|
|
|
# )
|
|
|
|
|
# end:google_only
|
|
|
|
|
|
2021-08-11 14:10:28 -07:00
|
|
|
py_binary(
|
|
|
|
|
name = "amalgamate",
|
|
|
|
|
srcs = ["amalgamate.py"],
|
2023-09-12 13:06:39 -07:00
|
|
|
visibility = ["//upb:__pkg__"],
|
2021-08-11 14:10:28 -07:00
|
|
|
)
|
2022-02-05 19:26:15 -08:00
|
|
|
|
|
|
|
|
# py_proto_library() is private rule, only intended for internal use by upb.
|
2023-10-17 10:21:10 -07:00
|
|
|
# Hopefully py_proto_library() will eventually be available in rules_proto or
|
2022-02-05 19:26:15 -08:00
|
|
|
# another upstream package.
|
|
|
|
|
bzl_library(
|
|
|
|
|
name = "py_proto_library_bzl",
|
|
|
|
|
srcs = ["py_proto_library.bzl"],
|
2023-11-20 11:51:50 -08:00
|
|
|
deps = [
|
|
|
|
|
"@rules_python//python:py_info_bzl",
|
|
|
|
|
],
|
2022-02-05 19:26:15 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
bzl_library(
|
2023-09-13 08:36:31 -07:00
|
|
|
name = "upb_proto_library_internal_bzl",
|
|
|
|
|
srcs = [
|
|
|
|
|
"upb_proto_library_internal/aspect.bzl",
|
|
|
|
|
"upb_proto_library_internal/cc_library_func.bzl",
|
|
|
|
|
"upb_proto_library_internal/copts.bzl",
|
|
|
|
|
"upb_proto_library_internal/rule.bzl",
|
|
|
|
|
],
|
2022-02-05 19:26:15 -08:00
|
|
|
deps = [
|
2023-04-28 11:19:13 -07:00
|
|
|
"@bazel_skylib//lib:paths",
|
2023-04-28 09:22:26 -07:00
|
|
|
"@bazel_tools//tools/cpp:toolchain_utils.bzl",
|
2023-12-28 14:40:25 -08:00
|
|
|
"@rules_proto//proto:defs",
|
2023-09-13 08:36:31 -07:00
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
|
name = "upb_proto_library_bzl",
|
|
|
|
|
srcs = [
|
|
|
|
|
"upb_c_proto_library.bzl",
|
2023-09-14 17:03:20 -07:00
|
|
|
"upb_minitable_proto_library.bzl",
|
2023-09-13 08:36:31 -07:00
|
|
|
"upb_proto_library.bzl",
|
|
|
|
|
"upb_proto_reflection_library.bzl",
|
|
|
|
|
],
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
deps = [
|
|
|
|
|
":upb_proto_library_internal_bzl",
|
2023-04-28 11:19:13 -07:00
|
|
|
"@rules_proto//proto:defs",
|
2022-02-05 19:26:15 -08:00
|
|
|
],
|
|
|
|
|
)
|