aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYecheng Zhao <zyecheng@google.com>2023-10-10 21:16:57 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-10-10 21:16:57 +0000
commit4dc6beb6fed9bf92213163b9356630f463046472 (patch)
tree8cccda6f26f513ba45203e7d1937521771f31dbd
parent10e97098953e4468d4979de3182e9016496c7e81 (diff)
parent3f28382fadc14d829a4a9f86bac603afe016602b (diff)
downloadcrc32fast-4dc6beb6fed9bf92213163b9356630f463046472.tar.gz
Add BUILD file for crc32fast kleaf build am: 591d7f67ab am: 75df9aedc7 am: 1d3fc6482b am: 0c1cbe6559 am: 3f28382fad
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/crc32fast/+/2779524 Change-Id: If077809b96f9c69f18fa87efa650331de445f78b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--BUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..f0161e0
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,41 @@
+load("@rules_license//rules:license.bzl", "license")
+load("@rules_license//rules:license_kind.bzl", "license_kind")
+load("@rules_rust//rust:defs.bzl", "rust_library")
+
+package(
+ default_applicable_licenses = [":license"],
+ default_visibility = ["//visibility:public"],
+)
+
+license(
+ name = "license",
+ license_kinds = [
+ ":SPDX-license-identifier-Apache-2.0",
+ ":SPDX-license-identifier-MIT",
+ ],
+ license_text = "LICENSE-APACHE",
+ visibility = [":__subpackages__"],
+)
+
+license_kind(
+ name = "SPDX-license-identifier-Apache-2.0",
+ conditions = ["notice"],
+ url = "https://spdx.org/licenses/Apache-2.0.html",
+)
+
+license_kind(
+ name = "SPDX-license-identifier-MIT",
+ conditions = ["notice"],
+ url = "",
+)
+
+rust_library(
+ name = "crc32fast",
+ srcs = glob(["**/*.rs"]),
+ edition = "2015",
+ deps = [
+ # This should map to repo checked out from Android third party project
+ # "platform/external/rust/crates/cfg-if".
+ "@cfg-if"
+ ],
+)