blob: b03cd0d07b78deeb54731aca11a732b376715df1 [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",
Josh Gaobd396c02020-01-22 18:02:19 -080031 "libadbconnection_client",
Alex Lightfbf96702017-12-14 13:27:13 -080032 ],
33 target: {
Alex Lightfbf96702017-12-14 13:27:13 -080034 host: {
35 },
Alex Lightc7547c32017-12-20 08:05:06 -080036 darwin: {
37 enabled: false,
38 },
Alex Lightfbf96702017-12-14 13:27:13 -080039 },
40 header_libs: [
41 "libnativehelper_header_only",
42 "dt_fd_forward_export",
43 ],
Alex Lightfbf96702017-12-14 13:27:13 -080044 required: [
45 "libjdwp",
46 "libdt_fd_forward",
47 ],
48}
49
50art_cc_library {
51 name: "libadbconnection",
52 defaults: ["adbconnection-defaults"],
53 shared_libs: [
54 "libart",
David Sehr1f010162018-05-15 08:59:32 -070055 "libartbase",
Alex Lightfbf96702017-12-14 13:27:13 -080056 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000057 apex_available: [
58 "com.android.art.release",
59 "com.android.art.debug",
60 ],
Alex Lightfbf96702017-12-14 13:27:13 -080061}
62
63art_cc_library {
64 name: "libadbconnectiond",
65 defaults: [
66 "art_debug_defaults",
67 "adbconnection-defaults",
68 ],
69 shared_libs: [
70 "libartd",
David Sehr1f010162018-05-15 08:59:32 -070071 "libartbased",
Alex Lightfbf96702017-12-14 13:27:13 -080072 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000073 apex_available: [
74 "com.android.art.debug",
75 ],
Alex Lightfbf96702017-12-14 13:27:13 -080076}