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.
|
|
|
|
|
|
|
|
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: [
|
|
|
|
"system/core/adb",
|
|
|
|
],
|
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.
|
|
|
|
cc_library {
|
|
|
|
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",
|
|
|
|
],
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"minadbd.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libadbd",
|
|
|
|
"libbase",
|
|
|
|
"libcrypto",
|
|
|
|
"libminadbd_services",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
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",
|
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: [
|
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",
|
2018-08-13 20:15:29 +02:00
|
|
|
"libadbd",
|
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",
|
|
|
|
],
|
|
|
|
}
|