Alex Light | 95c9ef9 | 2018-08-30 12:50:46 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 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 | cc_defaults { |
Alex Light | 05e4b02 | 2019-06-04 11:06:50 -0700 | [diff] [blame] | 19 | name: "fieldnull-base-defaults", |
Alex Light | 95c9ef9 | 2018-08-30 12:50:46 -0700 | [diff] [blame] | 20 | srcs: ["fieldnull.cc"], |
| 21 | defaults: ["art_defaults"], |
| 22 | |
| 23 | // Note that this tool needs to be built for both 32-bit and 64-bit since it requires |
| 24 | // to be same ISA as what it is attached to. |
| 25 | compile_multilib: "both", |
Alex Light | 95c9ef9 | 2018-08-30 12:50:46 -0700 | [diff] [blame] | 26 | header_libs: [ |
Orion Hodson | 00cb81d | 2020-04-03 06:47:07 +0100 | [diff] [blame] | 27 | "jni_headers", |
Alex Light | 95c9ef9 | 2018-08-30 12:50:46 -0700 | [diff] [blame] | 28 | "libopenjdkjvmti_headers", |
| 29 | ], |
Alex Light | 95c9ef9 | 2018-08-30 12:50:46 -0700 | [diff] [blame] | 30 | } |
| 31 | |
Alex Light | 05e4b02 | 2019-06-04 11:06:50 -0700 | [diff] [blame] | 32 | cc_defaults { |
| 33 | name: "fieldnull-defaults", |
| 34 | host_supported: true, |
| 35 | shared_libs: [ |
| 36 | "libbase", |
| 37 | ], |
| 38 | defaults: ["fieldnull-base-defaults"], |
| 39 | } |
| 40 | |
| 41 | cc_defaults { |
| 42 | name: "fieldnull-static-defaults", |
| 43 | host_supported: false, |
| 44 | defaults: ["fieldnull-base-defaults"], |
| 45 | |
| 46 | shared_libs: [ |
| 47 | "liblog", |
| 48 | ], |
| 49 | static_libs: [ |
| 50 | "libbase_ndk", |
| 51 | ], |
| 52 | sdk_version: "current", |
| 53 | stl: "c++_static", |
| 54 | } |
| 55 | |
| 56 | cc_library { |
| 57 | name: "libfieldnulls", |
| 58 | defaults: ["fieldnull-static-defaults"], |
| 59 | } |
| 60 | |
Alex Light | 95c9ef9 | 2018-08-30 12:50:46 -0700 | [diff] [blame] | 61 | art_cc_library { |
| 62 | name: "libfieldnull", |
| 63 | defaults: ["fieldnull-defaults"], |
| 64 | } |
| 65 | |
| 66 | art_cc_library { |
| 67 | name: "libfieldnulld", |
| 68 | defaults: [ |
| 69 | "art_debug_defaults", |
| 70 | "fieldnull-defaults", |
| 71 | ], |
| 72 | } |