blob: 239cecb2b9640e23bf1f5551efb23aa0808be6ba [file] [log] [blame]
Alex Lightfbf96702017-12-14 13:27:13 -08001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// Build variants {target,host} x {debug,ndebug} x {32,64}
18
19cc_defaults {
20 name: "adbconnection-defaults",
21 host_supported: true,
22 srcs: ["adbconnection.cc"],
23 defaults: ["art_defaults"],
24
25 // Note that this tool needs to be built for both 32-bit and 64-bit since it requires
26 // to be same ISA as what it is attached to.
27 compile_multilib: "both",
28
29 shared_libs: [
30 "libbase",
31 ],
32 target: {
Alex Lightfbf96702017-12-14 13:27:13 -080033 host: {
34 },
Alex Lightc7547c32017-12-20 08:05:06 -080035 darwin: {
36 enabled: false,
37 },
Alex Lightfbf96702017-12-14 13:27:13 -080038 },
39 header_libs: [
40 "libnativehelper_header_only",
41 "dt_fd_forward_export",
42 ],
Alex Lightfbf96702017-12-14 13:27:13 -080043 required: [
44 "libjdwp",
45 "libdt_fd_forward",
46 ],
47}
48
49art_cc_library {
50 name: "libadbconnection",
51 defaults: ["adbconnection-defaults"],
52 shared_libs: [
53 "libart",
David Sehr1f010162018-05-15 08:59:32 -070054 "libartbase",
Alex Lightfbf96702017-12-14 13:27:13 -080055 ],
56}
57
Josh Gao77e61872019-10-17 12:24:34 -070058// We export a library to do the server-side socket handling that gets loaded
59// by adbd from the art apex, so that we can update the socket handling
60// independently from the adbd apex.
Josh Gao00b831e2019-06-19 13:41:57 -070061cc_library {
62 name: "libadbconnection_server",
63 srcs: ["adbconnection_server.cc"],
Josh Gao77e61872019-10-17 12:24:34 -070064
Josh Gao00b831e2019-06-19 13:41:57 -070065 export_include_dirs: ["include"],
Josh Gao0d7232c2019-10-25 14:55:13 -070066
67 stl: "libc++_static",
68 shared_libs: ["liblog"],
69 whole_static_libs: ["libbase"],
Josh Gao77e61872019-10-17 12:24:34 -070070
71 defaults: ["art_defaults"],
72 visibility: [
73 "//system/core/adb",
74 ],
75 stubs: {
76 symbol_file: "libadbconnection_server.map.txt",
77 versions: ["1"],
78 },
79
Josh Gao00b831e2019-06-19 13:41:57 -070080 host_supported: true,
81 recovery_available: true,
82}
83
Alex Lightfbf96702017-12-14 13:27:13 -080084art_cc_library {
85 name: "libadbconnectiond",
86 defaults: [
87 "art_debug_defaults",
88 "adbconnection-defaults",
89 ],
90 shared_libs: [
91 "libartd",
David Sehr1f010162018-05-15 08:59:32 -070092 "libartbased",
Alex Lightfbf96702017-12-14 13:27:13 -080093 ],
94}