blob: 1f959bbf259609238ffcd8cb6c10ad448e5bce7e [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
17python_binary_host {
18 name: "gen_provenance_metadata",
19 srcs: [
20 "gen_provenance_metadata.py",
21 ],
22 version: {
23 py3: {
24 embedded_launcher: true,
25 },
26 },
27 libs: [
28 "provenance_metadata_proto",
29 "libprotobuf-python",
30 ],
31}
32
33python_test_host {
34 name: "gen_provenance_metadata_test",
35 main: "gen_provenance_metadata_test.py",
36 srcs: [
37 "gen_provenance_metadata_test.py",
38 ],
39 data: [
40 ":gen_provenance_metadata",
41 ],
42 libs: [
43 "provenance_metadata_proto",
44 "libprotobuf-python",
45 ],
46 test_suites: ["general-tests"],
47}