Wei Li | 340ee8e | 2022-03-18 17:33:24 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Bob Badour | 618eee3 | 2022-04-07 10:36:08 -0700 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
Wei Li | 340ee8e | 2022-03-18 17:33:24 -0700 | [diff] [blame] | 21 | python_binary_host { |
| 22 | name: "gen_provenance_metadata", |
| 23 | srcs: [ |
| 24 | "gen_provenance_metadata.py", |
| 25 | ], |
Wei Li | 340ee8e | 2022-03-18 17:33:24 -0700 | [diff] [blame] | 26 | libs: [ |
| 27 | "provenance_metadata_proto", |
| 28 | "libprotobuf-python", |
| 29 | ], |
| 30 | } |
| 31 | |
| 32 | python_test_host { |
| 33 | name: "gen_provenance_metadata_test", |
| 34 | main: "gen_provenance_metadata_test.py", |
| 35 | srcs: [ |
| 36 | "gen_provenance_metadata_test.py", |
| 37 | ], |
| 38 | data: [ |
| 39 | ":gen_provenance_metadata", |
| 40 | ], |
| 41 | libs: [ |
| 42 | "provenance_metadata_proto", |
| 43 | "libprotobuf-python", |
| 44 | ], |
| 45 | test_suites: ["general-tests"], |
| 46 | } |