From 73ee41cbb205a03e638f0b8b0f4f5d8591c83ca3 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 23 May 2023 16:36:40 -0700 Subject: [PATCH] license changes PiperOrigin-RevId: 534600788 --- BUILD | 10 ++++++++++ bazel/BUILD | 4 ++++ benchmarks/BUILD | 4 ++++ protos/BUILD | 4 ++++ protos/bazel/BUILD | 4 ++++ protos_generator/BUILD | 4 ++++ protos_generator/tests/BUILD | 4 ++++ python/BUILD | 3 +++ python/pb_unit_tests/BUILD | 4 ++++ upb/conformance/BUILD | 4 ++++ upb/io/BUILD | 4 ++++ upb/test/BUILD | 4 ++++ upb/util/BUILD | 4 ++++ upbc/BUILD | 4 ++++ 14 files changed, 61 insertions(+) diff --git a/BUILD b/BUILD index 0b400f10f5..1eed2611b8 100644 --- a/BUILD +++ b/BUILD @@ -46,6 +46,7 @@ load( # "//third_party/bazel_rules/rules_kotlin/kotlin/native:native_interop_hint.bzl", # "kt_native_interop_hint", # ) +# load("//tools/build_defs/license:license.bzl", "license") # end:google_only # begin:github_only @@ -56,6 +57,15 @@ load( load("@rules_pkg//:mappings.bzl", "pkg_files") # end:github_only +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# +# license( +# name = "license", +# package_name = "upb", +# ) +# end:google_only + licenses(["notice"]) exports_files(["LICENSE"]) diff --git a/bazel/BUILD b/bazel/BUILD index 3fc1d98b4c..5196c0cd38 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -25,6 +25,10 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) exports_files( diff --git a/benchmarks/BUILD b/benchmarks/BUILD index e219c42c80..92873f3bdc 100644 --- a/benchmarks/BUILD +++ b/benchmarks/BUILD @@ -40,6 +40,10 @@ load( "tmpl_cc_binary", ) +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) proto_library( diff --git a/protos/BUILD b/protos/BUILD index 65d1e97615..604ceff7a3 100644 --- a/protos/BUILD +++ b/protos/BUILD @@ -32,6 +32,10 @@ load( "upb_cc_proto_library_copts", ) +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) cc_library( diff --git a/protos/bazel/BUILD b/protos/bazel/BUILD index 607edae9ca..e56be4c452 100644 --- a/protos/bazel/BUILD +++ b/protos/bazel/BUILD @@ -25,6 +25,10 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) bzl_library( diff --git a/protos_generator/BUILD b/protos_generator/BUILD index 825b92e643..2414ff5135 100644 --- a/protos_generator/BUILD +++ b/protos_generator/BUILD @@ -28,6 +28,10 @@ load( "UPB_DEFAULT_CPPOPTS", ) +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) cc_binary( diff --git a/protos_generator/tests/BUILD b/protos_generator/tests/BUILD index a854eaca72..efdc4d76c3 100644 --- a/protos_generator/tests/BUILD +++ b/protos_generator/tests/BUILD @@ -40,6 +40,10 @@ load( "cc_proto_library", ) +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) proto_library( diff --git a/python/BUILD b/python/BUILD index 798ecb00e5..cefe185998 100644 --- a/python/BUILD +++ b/python/BUILD @@ -38,6 +38,9 @@ load("@rules_pkg//:mappings.bzl", "pkg_files") licenses(["notice"]) package( + # begin:google_only +# default_applicable_licenses = ["//:license"], + # end:google_only default_visibility = ["//python/dist:__pkg__"], ) diff --git a/python/pb_unit_tests/BUILD b/python/pb_unit_tests/BUILD index 5f586c9179..d63a081417 100644 --- a/python/pb_unit_tests/BUILD +++ b/python/pb_unit_tests/BUILD @@ -28,6 +28,10 @@ load(":pyproto_test_wrapper.bzl", "pyproto_test_wrapper") load("@pip_deps//:requirements.bzl", "requirement") # end:github_only +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) pyproto_test_wrapper(name = "descriptor_database_test") diff --git a/upb/conformance/BUILD b/upb/conformance/BUILD index 57a11dc583..3420557ea9 100644 --- a/upb/conformance/BUILD +++ b/upb/conformance/BUILD @@ -34,6 +34,10 @@ load( "upb_proto_reflection_library", ) +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) config_setting( diff --git a/upb/io/BUILD b/upb/io/BUILD index d7ecc5578c..539ca67c4f 100644 --- a/upb/io/BUILD +++ b/upb/io/BUILD @@ -1,3 +1,7 @@ +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + cc_library( name = "string", hdrs = ["string.h"], diff --git a/upb/test/BUILD b/upb/test/BUILD index ea30218730..6fbf7bf693 100644 --- a/upb/test/BUILD +++ b/upb/test/BUILD @@ -33,6 +33,10 @@ load( "upb_proto_reflection_library", ) +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + cc_library( name = "parse_text_proto", testonly = 1, diff --git a/upb/util/BUILD b/upb/util/BUILD index 7948bcfaa6..bdace2282b 100644 --- a/upb/util/BUILD +++ b/upb/util/BUILD @@ -8,6 +8,10 @@ load( load("@rules_pkg//:mappings.bzl", "pkg_files") # end:github_only +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) # Def to Proto diff --git a/upbc/BUILD b/upbc/BUILD index 262545c333..ef348b5095 100644 --- a/upbc/BUILD +++ b/upbc/BUILD @@ -40,6 +40,10 @@ load( "bootstrap_upb_proto_library", ) +# begin:google_only +# package(default_applicable_licenses = ["//:license"]) +# end:google_only + licenses(["notice"]) proto_library(