| Alex Light | 3979571 | 2017-12-14 11:58:21 -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 | |
| Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 19 | package { |
| 20 | default_applicable_licenses: ["art_dt_fd_forward_license"], |
| 21 | } |
| 22 | |
| 23 | // Added automatically by a large-scale-change that took the approach of |
| 24 | // 'apply every license found to every target'. While this makes sure we respect |
| 25 | // every license restriction, it may not be entirely correct. |
| 26 | // |
| 27 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 28 | // |
| 29 | // Please consider splitting the single license below into multiple licenses, |
| 30 | // taking care not to lose any license_kind information, and overriding the |
| 31 | // default license using the 'licenses: [...]' property on targets as needed. |
| 32 | // |
| 33 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 34 | // to attach the license to, and including a comment whether the files may be |
| 35 | // used in the current project. |
| 36 | // See: http://go/android-license-faq |
| 37 | license { |
| 38 | name: "art_dt_fd_forward_license", |
| 39 | visibility: [":__subpackages__"], |
| 40 | license_kinds: [ |
| 41 | "SPDX-license-identifier-Apache-2.0", |
| 42 | "SPDX-license-identifier-GPL-2.0", |
| 43 | "SPDX-license-identifier-GPL-with-classpath-exception", |
| 44 | ], |
| 45 | license_text: [ |
| 46 | "NOTICE", |
| 47 | ], |
| 48 | } |
| 49 | |
| Alex Light | 3979571 | 2017-12-14 11:58:21 -0800 | [diff] [blame] | 50 | cc_defaults { |
| 51 | name: "dt_fd_forward-defaults", |
| 52 | host_supported: true, |
| 53 | srcs: ["dt_fd_forward.cc"], |
| 54 | defaults: ["art_defaults"], |
| 55 | |
| 56 | // Note that this tool needs to be built for both 32-bit and 64-bit since it needs to be same |
| 57 | // ISA as what it is attached to. |
| 58 | compile_multilib: "both", |
| 59 | |
| 60 | shared_libs: [ |
| 61 | "libbase", |
| 62 | ], |
| 63 | target: { |
| 64 | android: { |
| 65 | }, |
| 66 | host: { |
| 67 | }, |
| Alex Light | c7547c3 | 2017-12-20 08:05:06 -0800 | [diff] [blame] | 68 | darwin: { |
| 69 | enabled: false, |
| 70 | }, |
| Alex Light | 3979571 | 2017-12-14 11:58:21 -0800 | [diff] [blame] | 71 | }, |
| 72 | header_libs: [ |
| 73 | "javavm_headers", |
| 74 | "dt_fd_forward_export", |
| Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 75 | "art_libartbase_headers", // For strlcpy emulation. |
| Alex Light | 3979571 | 2017-12-14 11:58:21 -0800 | [diff] [blame] | 76 | ], |
| Alex Light | 3979571 | 2017-12-14 11:58:21 -0800 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | art_cc_library { |
| 80 | name: "libdt_fd_forward", |
| 81 | defaults: ["dt_fd_forward-defaults"], |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 82 | apex_available: [ |
| Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 83 | "com.android.art", |
| Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 84 | "com.android.art.debug", |
| 85 | ], |
| Alex Light | 3979571 | 2017-12-14 11:58:21 -0800 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | art_cc_library { |
| 89 | name: "libdt_fd_forwardd", |
| 90 | defaults: [ |
| 91 | "art_debug_defaults", |
| 92 | "dt_fd_forward-defaults", |
| 93 | ], |
| 94 | } |