Alex Light | fbf9670 | 2017-12-14 13:27:13 -0800 | [diff] [blame] | 1 | // |
| 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 | |
| 19 | cc_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 Light | fbf9670 | 2017-12-14 13:27:13 -0800 | [diff] [blame] | 33 | host: { |
| 34 | }, |
Alex Light | c7547c3 | 2017-12-20 08:05:06 -0800 | [diff] [blame] | 35 | darwin: { |
| 36 | enabled: false, |
| 37 | }, |
Alex Light | fbf9670 | 2017-12-14 13:27:13 -0800 | [diff] [blame] | 38 | }, |
| 39 | header_libs: [ |
| 40 | "libnativehelper_header_only", |
| 41 | "dt_fd_forward_export", |
| 42 | ], |
| 43 | multilib: { |
| 44 | lib32: { |
| 45 | suffix: "32", |
| 46 | }, |
| 47 | lib64: { |
| 48 | suffix: "64", |
| 49 | }, |
| 50 | }, |
| 51 | symlink_preferred_arch: true, |
| 52 | required: [ |
| 53 | "libjdwp", |
| 54 | "libdt_fd_forward", |
| 55 | ], |
| 56 | } |
| 57 | |
| 58 | art_cc_library { |
| 59 | name: "libadbconnection", |
| 60 | defaults: ["adbconnection-defaults"], |
| 61 | shared_libs: [ |
| 62 | "libart", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 63 | "libartbase", |
Alex Light | fbf9670 | 2017-12-14 13:27:13 -0800 | [diff] [blame] | 64 | ], |
| 65 | } |
| 66 | |
| 67 | art_cc_library { |
| 68 | name: "libadbconnectiond", |
| 69 | defaults: [ |
| 70 | "art_debug_defaults", |
| 71 | "adbconnection-defaults", |
| 72 | ], |
| 73 | shared_libs: [ |
| 74 | "libartd", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 75 | "libartbased", |
Alex Light | fbf9670 | 2017-12-14 13:27:13 -0800 | [diff] [blame] | 76 | ], |
| 77 | } |