blob: b20533a60bbf22b043bb98984d0764976802827b [file] [log] [blame]
Kelvin Zhang73202a92022-06-02 10:19:54 -07001// Copyright (C) 2022 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
15//
16// Module-specific defaults.
17//
18// For module X, if we need to build it both as a library and an executable:
19// - A default rule `releasetools_X_defaults` is created, which lists `srcs`, `libs` and
20// `required` properties.
21// - `python_library_host` and `python_binary_host` are created by listing
22// `releasetools_X_defaults` in their defaults.
23//
24
25python_library_host {
26 name: "update_payload",
27
28 srcs: [
29 "update_payload/__init__.py",
30 "update_payload/payload.py",
31 "update_payload/checker.py",
Kelvin Zhang73202a92022-06-02 10:19:54 -070032 "update_payload/common.py",
33 "update_payload/error.py",
34 "update_payload/histogram.py",
35 "update_payload/format_utils.py",
36 ],
37 proto: {
38 canonical_path_from_root: false,
39 },
40 libs: [
41 "update_metadata-protos-python",
42 ],
43}