blob: ce3b4995b4577175998bc128f5a44f545f73e333 [file] [log] [blame]
Inseob Kimeb92a492021-10-14 13:08:27 +09001// 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
Bob Badour7b1df9e2021-11-18 12:53:28 -080015package {
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
Inseob Kimeb92a492021-10-14 13:08:27 +090024python_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 },
Inseob Kimeb92a492021-10-14 13:08:27 +090035}
Victor Hsiehd3309f52022-01-05 15:34:20 -080036
Andrew Scull6be43462022-07-04 17:33:32 +000037python_binary_host {
38 name: "fsverity_manifest_generator",
39 srcs: ["fsverity_manifest_generator.py"],
40 libs: ["fsverity_digests_proto_python"],
41}
42
Victor Hsiehd3309f52022-01-05 15:34:20 -080043rust_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}
Inseob Kim76671222022-01-20 13:23:36 +090054
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}