2017-11-15 20:45:23 +01:00
|
|
|
// Copyright (C) 2018 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.
|
|
|
|
|
2021-02-13 03:00:57 +01:00
|
|
|
package {
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
// all of the 'license_kinds' from "bootable_recovery_license"
|
|
|
|
// to get the below license kinds:
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
default_applicable_licenses: ["bootable_recovery_license"],
|
|
|
|
}
|
|
|
|
|
2017-11-15 20:45:23 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "minadbd_defaults",
|
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-DADB_HOST=0",
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
|
|
|
|
2019-01-02 18:35:59 +01:00
|
|
|
cpp_std: "experimental",
|
|
|
|
|
2017-11-15 20:45:23 +01:00
|
|
|
include_dirs: [
|
2020-10-18 17:07:17 +02:00
|
|
|
"packages/modules/adb",
|
2017-11-15 20:45:23 +01:00
|
|
|
],
|
2019-09-26 09:02:29 +02:00
|
|
|
|
|
|
|
header_libs: [
|
|
|
|
"libminadbd_headers",
|
|
|
|
],
|
2017-11-15 20:45:23 +01:00
|
|
|
}
|
|
|
|
|
2018-08-13 20:15:29 +02:00
|
|
|
// `libminadbd_services` is analogous to the `libadbd_services` for regular `adbd`, but providing
|
|
|
|
// the sideload service only.
|
2020-03-28 04:37:07 +01:00
|
|
|
cc_library_static {
|
2018-08-13 20:15:29 +02:00
|
|
|
name: "libminadbd_services",
|
2018-08-07 23:38:51 +02:00
|
|
|
recovery_available: true,
|
2017-11-15 20:45:23 +01:00
|
|
|
|
|
|
|
defaults: [
|
|
|
|
"minadbd_defaults",
|
2019-10-01 01:16:07 +02:00
|
|
|
"librecovery_utils_defaults",
|
2017-11-15 20:45:23 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"fuse_adb_provider.cpp",
|
|
|
|
"minadbd_services.cpp",
|
|
|
|
],
|
|
|
|
|
2019-03-22 16:54:35 +01:00
|
|
|
static_libs: [
|
2019-10-01 01:16:07 +02:00
|
|
|
"librecovery_utils",
|
2019-03-22 16:54:35 +01:00
|
|
|
"libotautil",
|
|
|
|
],
|
|
|
|
|
2018-08-13 20:15:29 +02:00
|
|
|
shared_libs: [
|
|
|
|
"libadbd",
|
2017-11-15 20:45:23 +01:00
|
|
|
"libbase",
|
|
|
|
"libcrypto",
|
2018-08-13 20:15:29 +02:00
|
|
|
"libfusesideload",
|
2017-11-15 20:45:23 +01:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-04-06 01:16:07 +02:00
|
|
|
cc_library_headers {
|
|
|
|
name: "libminadbd_headers",
|
|
|
|
recovery_available: true,
|
|
|
|
export_include_dirs: [
|
2019-09-26 09:02:29 +02:00
|
|
|
"include",
|
|
|
|
],
|
|
|
|
// adb_install.cpp
|
|
|
|
visibility: [
|
|
|
|
"//bootable/recovery/install",
|
2019-04-06 01:16:07 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "minadbd",
|
|
|
|
recovery: true,
|
|
|
|
|
|
|
|
defaults: [
|
|
|
|
"minadbd_defaults",
|
2020-03-28 04:37:07 +01:00
|
|
|
"libadbd_binary_dependencies",
|
|
|
|
"librecovery_utils_defaults",
|
2019-04-06 01:16:07 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"minadbd.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
2021-12-01 01:39:00 +01:00
|
|
|
"android.hardware.health-V1-ndk", // from librecovery_utils
|
2019-04-06 01:16:07 +02:00
|
|
|
"libbase",
|
|
|
|
"libcrypto",
|
2020-03-28 04:37:07 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
static_libs: [
|
2019-04-06 01:16:07 +02:00
|
|
|
"libminadbd_services",
|
2020-03-28 04:37:07 +01:00
|
|
|
"libfusesideload",
|
|
|
|
"librecovery_utils",
|
2019-04-06 01:16:07 +02:00
|
|
|
],
|
2019-10-23 01:10:48 +02:00
|
|
|
|
|
|
|
required: [
|
2020-06-02 03:58:57 +02:00
|
|
|
"adbd_system_api_recovery",
|
2019-10-23 01:10:48 +02:00
|
|
|
]
|
2019-04-06 01:16:07 +02:00
|
|
|
}
|
|
|
|
|
2017-11-15 20:45:23 +01:00
|
|
|
cc_test {
|
|
|
|
name: "minadbd_test",
|
2018-08-23 04:38:49 +02:00
|
|
|
isolated: true,
|
2017-11-15 20:45:23 +01:00
|
|
|
|
|
|
|
defaults: [
|
|
|
|
"minadbd_defaults",
|
2019-10-01 01:16:07 +02:00
|
|
|
"librecovery_utils_defaults",
|
2020-03-28 04:37:07 +01:00
|
|
|
"libadbd_binary_dependencies",
|
2017-11-15 20:45:23 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"fuse_adb_provider_test.cpp",
|
2019-04-17 23:43:58 +02:00
|
|
|
"minadbd_services_test.cpp",
|
2017-11-15 20:45:23 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
static_libs: [
|
2021-12-01 01:39:00 +01:00
|
|
|
"android.hardware.health-V1-ndk", // from librecovery_utils
|
2018-08-13 20:15:29 +02:00
|
|
|
"libminadbd_services",
|
2019-03-18 00:45:12 +01:00
|
|
|
"libfusesideload",
|
2019-10-01 01:16:07 +02:00
|
|
|
"librecovery_utils",
|
2019-03-22 16:54:35 +01:00
|
|
|
"libotautil",
|
2017-11-15 20:45:23 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
2019-09-12 20:53:46 +02:00
|
|
|
"libcrypto",
|
2017-11-15 20:45:23 +01:00
|
|
|
"libcutils",
|
|
|
|
"liblog",
|
|
|
|
],
|
|
|
|
|
|
|
|
test_suites: [
|
|
|
|
"device-tests",
|
|
|
|
],
|
2020-08-24 20:33:03 +02:00
|
|
|
require_root: true,
|
2017-11-15 20:45:23 +01:00
|
|
|
}
|