blob: 0eddd7636521c162ccaf72845abab9342f3c8f60 [file] [log] [blame]
Wei Li340ee8e2022-03-18 17:33:24 -07001/*
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 Badour618eee32022-04-07 10:36:08 -070017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Wei Li340ee8e2022-03-18 17:33:24 -070021python_binary_host {
22 name: "gen_provenance_metadata",
23 srcs: [
24 "gen_provenance_metadata.py",
25 ],
26 version: {
27 py3: {
28 embedded_launcher: true,
29 },
30 },
31 libs: [
32 "provenance_metadata_proto",
33 "libprotobuf-python",
34 ],
35}
36
37python_test_host {
38 name: "gen_provenance_metadata_test",
39 main: "gen_provenance_metadata_test.py",
40 srcs: [
41 "gen_provenance_metadata_test.py",
42 ],
43 data: [
44 ":gen_provenance_metadata",
45 ],
46 libs: [
47 "provenance_metadata_proto",
48 "libprotobuf-python",
49 ],
50 test_suites: ["general-tests"],
51}