blob: bbd3a4e17e193caae1b84ce6099a3db9109c260c [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
Bob Badour5ee85032022-08-25 09:29:02 -070025package {
26 // See: http://go/android-license-faq
27 // A large-scale-change added 'default_applicable_licenses' to import
28 // all of the 'license_kinds' from "system_update_engine_license"
29 // to get the below license kinds:
30 // SPDX-license-identifier-Apache-2.0
31 default_applicable_licenses: ["system_update_engine_license"],
32}
33
Kelvin Zhang73202a92022-06-02 10:19:54 -070034python_library_host {
35 name: "update_payload",
36
37 srcs: [
38 "update_payload/__init__.py",
39 "update_payload/payload.py",
40 "update_payload/checker.py",
Kelvin Zhang73202a92022-06-02 10:19:54 -070041 "update_payload/common.py",
42 "update_payload/error.py",
43 "update_payload/histogram.py",
44 "update_payload/format_utils.py",
45 ],
46 proto: {
47 canonical_path_from_root: false,
48 },
49 libs: [
50 "update_metadata-protos-python",
51 ],
52}