2019-04-09 09:12:30 +02:00
|
|
|
// Copyright (C) 2019 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
python_defaults {
|
2019-05-02 06:58:03 +02:00
|
|
|
name: "releasetools_defaults",
|
2019-04-09 09:12:30 +02:00
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
embedded_launcher: false,
|
|
|
|
},
|
|
|
|
py3: {
|
2019-05-02 06:58:03 +02:00
|
|
|
enabled: true,
|
|
|
|
embedded_launcher: false,
|
2019-04-09 09:12:30 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
python_library_host {
|
|
|
|
name: "releasetools_lib",
|
2019-05-02 06:58:03 +02:00
|
|
|
defaults: ["releasetools_defaults"],
|
2019-04-09 09:12:30 +02:00
|
|
|
srcs: [
|
|
|
|
"add_img_to_target_files.py",
|
|
|
|
"apex_utils.py",
|
|
|
|
"blockimgdiff.py",
|
|
|
|
"build_image.py",
|
|
|
|
"build_super_image.py",
|
|
|
|
"check_ota_package_signature.py",
|
|
|
|
"check_target_files_signatures.py",
|
|
|
|
"common.py",
|
|
|
|
"edify_generator.py",
|
|
|
|
"img_from_target_files.py",
|
2019-07-03 22:57:01 +02:00
|
|
|
"images.py",
|
2019-04-09 09:12:30 +02:00
|
|
|
"make_recovery_patch.py",
|
|
|
|
"merge_target_files.py",
|
|
|
|
"ota_from_target_files.py",
|
|
|
|
"ota_package_parser.py",
|
|
|
|
"rangelib.py",
|
2019-06-26 23:54:14 +02:00
|
|
|
"sign_apex.py",
|
2019-04-09 09:12:30 +02:00
|
|
|
"sign_target_files_apks.py",
|
|
|
|
"sparse_img.py",
|
|
|
|
"target_files_diff.py",
|
|
|
|
"validate_target_files.py",
|
|
|
|
"verity_utils.py",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-05-02 06:58:03 +02:00
|
|
|
python_defaults {
|
|
|
|
name: "releasetools_test_defaults",
|
|
|
|
defaults: ["releasetools_defaults"],
|
2019-04-09 09:12:30 +02:00
|
|
|
srcs: [
|
|
|
|
"test_*.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"releasetools_lib",
|
|
|
|
],
|
|
|
|
data: [
|
|
|
|
"testdata/*",
|
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"otatools",
|
|
|
|
],
|
2019-05-02 06:58:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "releasetools_test",
|
|
|
|
defaults: ["releasetools_test_defaults"],
|
|
|
|
main: "test_utils.py",
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
embedded_launcher: false,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
embedded_launcher: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "releasetools_py3_test",
|
|
|
|
defaults: ["releasetools_test_defaults"],
|
|
|
|
main: "test_utils.py",
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: false,
|
|
|
|
embedded_launcher: false,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: true,
|
|
|
|
embedded_launcher: false,
|
|
|
|
},
|
|
|
|
},
|
2019-04-09 09:12:30 +02:00
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|