xref: /aosp_15_r20/system/security/fsverity/Android.bp (revision e1997b9af69e3155ead6e072d106a0077849ffba)
1// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "system_security_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["system_security_license"],
22}
23
24python_library_host {
25    name: "fsverity_digests_proto_python",
26    srcs: [
27        "fsverity_digests.proto",
28    ],
29    required: [
30        "fsverity",
31    ],
32    proto: {
33        canonical_path_from_root: false,
34    },
35}
36
37python_binary_host {
38    name: "fsverity_manifest_generator",
39    srcs: ["fsverity_manifest_generator.py"],
40    libs: ["fsverity_digests_proto_python"],
41}
42
43rust_protobuf {
44    name: "libfsverity_digests_proto_rust",
45    crate_name: "fsverity_digests_proto",
46    source_stem: "fsverity_digests_proto",
47    protos: [
48        "fsverity_digests.proto",
49    ],
50    apex_available: [
51        "com.android.compos",
52    ],
53}
54
55cc_library_static {
56    name: "libfsverity_digests_proto_cc",
57    proto: {
58        type: "lite",
59        static: true,
60        canonical_path_from_root: false,
61        export_proto_headers: true,
62    },
63    srcs: ["fsverity_digests.proto"],
64}
65