Inseob Kim | eb92a49 | 2021-10-14 13:08:27 +0900 | [diff] [blame] | 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 | |
Bob Badour | 7b1df9e | 2021-11-18 12:53:28 -0800 | [diff] [blame] | 15 | package { |
| 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 Kim | eb92a49 | 2021-10-14 13:08:27 +0900 | [diff] [blame] | 24 | python_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 Kim | eb92a49 | 2021-10-14 13:08:27 +0900 | [diff] [blame] | 35 | } |
Victor Hsieh | d3309f5 | 2022-01-05 15:34:20 -0800 | [diff] [blame] | 36 | |
Andrew Scull | 6be4346 | 2022-07-04 17:33:32 +0000 | [diff] [blame] | 37 | python_binary_host { |
| 38 | name: "fsverity_manifest_generator", |
| 39 | srcs: ["fsverity_manifest_generator.py"], |
| 40 | libs: ["fsverity_digests_proto_python"], |
| 41 | } |
| 42 | |
Victor Hsieh | d3309f5 | 2022-01-05 15:34:20 -0800 | [diff] [blame] | 43 | rust_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 Kim | 7667122 | 2022-01-20 13:23:36 +0900 | [diff] [blame] | 54 | |
| 55 | cc_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 | } |