David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2011 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 | |
Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "art_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["art_license"], |
| 24 | } |
| 25 | |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 26 | cc_defaults { |
| 27 | name: "libartbase_defaults", |
| 28 | defaults: ["art_defaults"], |
| 29 | host_supported: true, |
| 30 | srcs: [ |
David Sehr | c3e1895 | 2018-05-11 16:59:31 -0700 | [diff] [blame] | 31 | "arch/instruction_set.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 32 | "base/allocator.cc", |
David Sehr | 1ce2b3b | 2018-04-05 11:02:03 -0700 | [diff] [blame] | 33 | "base/arena_allocator.cc", |
| 34 | "base/arena_bit_vector.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 35 | "base/bit_vector.cc", |
Eric Holk | c7ac91b | 2021-02-04 21:44:01 +0000 | [diff] [blame] | 36 | "base/compiler_filter.cc", |
Andreas Gampe | 8764dc3 | 2019-01-07 15:20:12 -0800 | [diff] [blame] | 37 | "base/enums.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 38 | "base/file_magic.cc", |
David Sehr | c3e1895 | 2018-05-11 16:59:31 -0700 | [diff] [blame] | 39 | "base/file_utils.cc", |
Calin Juravle | 09eacd9 | 2021-05-19 17:03:55 -0700 | [diff] [blame] | 40 | "base/flags.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 41 | "base/hex_dump.cc", |
David Brazdil | dcfa89b | 2018-10-31 11:04:10 +0000 | [diff] [blame] | 42 | "base/hiddenapi_flags.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 43 | "base/logging.cc", |
David Sehr | 1ce2b3b | 2018-04-05 11:02:03 -0700 | [diff] [blame] | 44 | "base/malloc_arena_pool.cc", |
Orion Hodson | 563ada2 | 2018-09-04 11:28:31 +0100 | [diff] [blame] | 45 | "base/membarrier.cc", |
| 46 | "base/memfd.cc", |
David Sehr | 1ce2b3b | 2018-04-05 11:02:03 -0700 | [diff] [blame] | 47 | "base/memory_region.cc", |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 48 | "base/mem_map.cc", |
Steve Austin | 882ed6b | 2018-06-08 11:40:38 -0700 | [diff] [blame] | 49 | // "base/mem_map_fuchsia.cc", put in target when fuchsia supported by soong |
Eric Holk | 480d981 | 2021-01-27 23:41:45 +0000 | [diff] [blame] | 50 | "base/metrics/metrics_common.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 51 | "base/os_linux.cc", |
| 52 | "base/runtime_debug.cc", |
| 53 | "base/safe_copy.cc", |
David Sehr | 1ce2b3b | 2018-04-05 11:02:03 -0700 | [diff] [blame] | 54 | "base/scoped_arena_allocator.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 55 | "base/scoped_flock.cc", |
Elliott Hughes | c2efd4d | 2018-10-25 13:14:55 -0700 | [diff] [blame] | 56 | "base/socket_peer_is_trusted.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 57 | "base/time_utils.cc", |
| 58 | "base/unix_file/fd_file.cc", |
| 59 | "base/unix_file/random_access_file_utils.cc", |
| 60 | "base/utils.cc", |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 61 | "base/zip_archive.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 62 | ], |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 63 | target: { |
| 64 | android: { |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 65 | srcs: [ |
Martin Stjernholm | c372314 | 2020-09-23 01:17:33 +0100 | [diff] [blame] | 66 | "base/globals_unix.cc", |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 67 | "base/mem_map_unix.cc", |
| 68 | ], |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 69 | static_libs: [ |
| 70 | // ZipArchive support, the order matters here to get all symbols. |
| 71 | "libziparchive", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 72 | ], |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 73 | shared_libs: [ |
Jiyong Park | b1c8e16 | 2020-05-18 19:04:42 +0900 | [diff] [blame] | 74 | "libz", |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 75 | "liblog", |
| 76 | // For ashmem. |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 77 | "libartpalette", |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 78 | // For common macros. |
| 79 | "libbase", |
| 80 | ], |
Martin Stjernholm | e407d97 | 2020-09-17 01:31:10 +0100 | [diff] [blame] | 81 | export_shared_lib_headers: ["libbase"], // ART's macros.h depends on libbase's macros.h. |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 82 | }, |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 83 | not_windows: { |
| 84 | srcs: [ |
Orion Hodson | cbe6d4a | 2019-05-09 10:29:52 +0100 | [diff] [blame] | 85 | "base/globals_unix.cc", |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 86 | "base/mem_map_unix.cc", |
| 87 | ], |
Martin Stjernholm | a28438a | 2020-09-23 01:40:03 +0100 | [diff] [blame] | 88 | static: { |
| 89 | cflags: ["-DART_STATIC_LIBARTBASE"], |
| 90 | }, |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 91 | shared_libs: [ |
| 92 | "libziparchive", |
| 93 | "libz", |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 94 | "liblog", |
| 95 | // For ashmem. |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 96 | "libartpalette", |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 97 | // For common macros. |
| 98 | "libbase", |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 99 | ], |
Martin Stjernholm | e407d97 | 2020-09-17 01:31:10 +0100 | [diff] [blame] | 100 | export_shared_lib_headers: ["libbase"], // ART's macros.h depends on libbase's macros.h. |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 101 | }, |
Martin Stjernholm | 4355162 | 2018-11-09 15:14:54 +0000 | [diff] [blame] | 102 | windows: { |
David Sehr | 9d9227a | 2018-12-19 12:32:50 -0800 | [diff] [blame] | 103 | srcs: [ |
| 104 | "base/mem_map_windows.cc", |
| 105 | ], |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 106 | static_libs: [ |
| 107 | "libziparchive", |
| 108 | "libz", |
| 109 | "liblog", |
| 110 | // For ashmem. |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 111 | "libartpalette", |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 112 | // For common macros. |
| 113 | "libbase", |
| 114 | ], |
Martin Stjernholm | e407d97 | 2020-09-17 01:31:10 +0100 | [diff] [blame] | 115 | export_static_lib_headers: ["libbase"], // ART's macros.h depends on libbase's macros.h. |
| 116 | |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 117 | cflags: ["-Wno-thread-safety"], |
Martin Stjernholm | 4355162 | 2018-11-09 15:14:54 +0000 | [diff] [blame] | 118 | }, |
David Srbecky | d53f606 | 2019-03-22 14:55:21 +0000 | [diff] [blame] | 119 | darwin: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 120 | enabled: true, // for libdexfile. |
David Srbecky | d53f606 | 2019-03-22 14:55:21 +0000 | [diff] [blame] | 121 | }, |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 122 | }, |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 123 | generated_sources: ["art_libartbase_operator_srcs"], |
Martin Stjernholm | 4355162 | 2018-11-09 15:14:54 +0000 | [diff] [blame] | 124 | |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 125 | export_include_dirs: ["."], |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 126 | } |
| 127 | |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 128 | cc_defaults { |
| 129 | name: "libartbase_static_base_defaults", |
Martin Stjernholm | 35f765b | 2020-09-23 00:38:38 +0100 | [diff] [blame] | 130 | whole_static_libs: [ |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 131 | "libbase", |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 132 | "libartpalette", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 133 | "liblog", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 134 | "libz", |
| 135 | "libziparchive", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 136 | ], |
| 137 | } |
| 138 | |
| 139 | cc_defaults { |
| 140 | name: "libartbase_static_defaults", |
| 141 | defaults: ["libartbase_static_base_defaults"], |
Martin Stjernholm | 35f765b | 2020-09-23 00:38:38 +0100 | [diff] [blame] | 142 | whole_static_libs: ["libartbase"], |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 143 | } |
| 144 | |
| 145 | cc_defaults { |
| 146 | name: "libartbased_static_defaults", |
| 147 | defaults: ["libartbase_static_base_defaults"], |
Martin Stjernholm | 35f765b | 2020-09-23 00:38:38 +0100 | [diff] [blame] | 148 | whole_static_libs: ["libartbased"], |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 149 | } |
| 150 | |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 151 | gensrcs { |
| 152 | name: "art_libartbase_operator_srcs", |
| 153 | cmd: "$(location generate_operator_out) art/libartbase $(in) > $(out)", |
| 154 | tools: ["generate_operator_out"], |
| 155 | srcs: [ |
David Sehr | c3e1895 | 2018-05-11 16:59:31 -0700 | [diff] [blame] | 156 | "arch/instruction_set.h", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 157 | "base/allocator.h", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 158 | "base/unix_file/fd_file.h", |
| 159 | ], |
| 160 | output_extension: "operator_out.cc", |
| 161 | } |
| 162 | |
| 163 | art_cc_library { |
| 164 | name: "libartbase", |
Christopher Ferris | 0d38e85 | 2019-12-11 09:37:19 -0800 | [diff] [blame] | 165 | defaults: [ |
| 166 | "libartbase_defaults", |
| 167 | "libart_nativeunwind_defaults", |
| 168 | ], |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 169 | visibility: [ |
Martin Stjernholm | 4312f74 | 2021-03-23 00:30:57 +0000 | [diff] [blame] | 170 | // TODO(b/183483755): Please visibility checks when the prebuilt |
| 171 | // libartbase is present but not preferred, and the prebuilt libdexfile |
| 172 | // hence depends on the source instead. |
| 173 | // TODO(b/172480617): Alternatively, clean up when we no longer need to |
| 174 | // support both prebuilts and sources present simultaneously. |
| 175 | "//prebuilts/module_sdk/art/current/host-exports", |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 176 | // TODO(b/133140750): Clean this up. |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 177 | "//packages/modules/NetworkStack/tests:__subpackages__", |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 178 | ], |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 179 | apex_available: [ |
Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 180 | "com.android.art", |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 181 | "com.android.art.debug", |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 182 | ], |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 183 | |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 184 | shared_libs: [ |
| 185 | "libbase", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 186 | "libziparchive", |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 187 | ], |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 188 | export_shared_lib_headers: ["libbase"], |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 189 | target: { |
| 190 | windows: { |
| 191 | enabled: true, |
| 192 | shared: { |
| 193 | enabled: false, |
| 194 | }, |
| 195 | }, |
| 196 | }, |
Yi Kong | 1bad13f | 2021-12-29 14:16:59 +0800 | [diff] [blame] | 197 | afdo: true, |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 198 | } |
| 199 | |
| 200 | art_cc_library { |
| 201 | name: "libartbased", |
| 202 | defaults: [ |
| 203 | "art_debug_defaults", |
| 204 | "libartbase_defaults", |
| 205 | ], |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 206 | apex_available: [ |
| 207 | "com.android.art.debug", |
| 208 | ], |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 209 | shared_libs: [ |
| 210 | "libbase", |
| 211 | "libziparchive", |
| 212 | ], |
| 213 | export_shared_lib_headers: ["libbase"], |
David Sehr | 10db8fe | 2018-07-18 11:01:20 -0700 | [diff] [blame] | 214 | target: { |
| 215 | windows: { |
| 216 | enabled: true, |
| 217 | shared: { |
| 218 | enabled: false, |
| 219 | }, |
| 220 | }, |
| 221 | }, |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 222 | } |
| 223 | |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 224 | art_cc_defaults { |
| 225 | name: "libartbase-art-gtest-defaults", |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 226 | srcs: [ |
| 227 | "base/common_art_test.cc", |
| 228 | ], |
| 229 | shared_libs: [ |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 230 | "libbase", |
| 231 | "libbacktrace", |
| 232 | ], |
| 233 | header_libs: [ |
| 234 | "libnativehelper_header_only", |
| 235 | ], |
Alex Light | 5515310 | 2019-05-08 17:03:10 -0700 | [diff] [blame] | 236 | static: { |
Jiakai Zhang | 5514c8e | 2021-10-19 05:40:32 +0000 | [diff] [blame] | 237 | whole_static_libs: [ |
| 238 | "libc++fs", |
Jiakai Zhang | 5514c8e | 2021-10-19 05:40:32 +0000 | [diff] [blame] | 239 | ], |
Alex Light | 5515310 | 2019-05-08 17:03:10 -0700 | [diff] [blame] | 240 | }, |
| 241 | shared: { |
Jiakai Zhang | 5514c8e | 2021-10-19 05:40:32 +0000 | [diff] [blame] | 242 | static_libs: [ |
| 243 | "libc++fs", |
Jiakai Zhang | 5514c8e | 2021-10-19 05:40:32 +0000 | [diff] [blame] | 244 | ], |
Alex Light | 5515310 | 2019-05-08 17:03:10 -0700 | [diff] [blame] | 245 | }, |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 246 | } |
| 247 | |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 248 | art_cc_library { |
| 249 | name: "libartbase-art-gtest", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 250 | defaults: [ |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 251 | "libart-gtest-defaults", |
| 252 | "libartbase-art-gtest-defaults", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 253 | ], |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 254 | shared_libs: [ |
| 255 | "libartbase", |
Jiakai Zhang | d539f86 | 2022-02-08 14:56:05 +0000 | [diff] [blame] | 256 | "libartbase-testing", |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 257 | "libdexfile", |
| 258 | ], |
| 259 | } |
| 260 | |
| 261 | art_cc_library { |
| 262 | name: "libartbased-art-gtest", |
| 263 | defaults: [ |
| 264 | "libartd-gtest-defaults", |
| 265 | "libartbase-art-gtest-defaults", |
| 266 | ], |
| 267 | shared_libs: [ |
| 268 | "libartbased", |
Jiakai Zhang | d539f86 | 2022-02-08 14:56:05 +0000 | [diff] [blame] | 269 | "libartbased-testing", |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 270 | "libdexfiled", |
| 271 | ], |
| 272 | } |
| 273 | |
| 274 | art_cc_defaults { |
Jiakai Zhang | d539f86 | 2022-02-08 14:56:05 +0000 | [diff] [blame] | 275 | name: "libartbase-testing-defaults", |
| 276 | defaults: [ |
| 277 | "art_defaults", |
| 278 | ], |
| 279 | host_supported: true, |
| 280 | srcs: [ |
| 281 | "base/testing.cc", |
| 282 | ], |
| 283 | shared_libs: [ |
| 284 | "libbase", |
| 285 | ], |
| 286 | apex_available: [ |
| 287 | "com.android.art.debug", |
| 288 | // TODO(b/183882457): This lib doesn't go into com.android.art, but |
| 289 | // apex_available lists need to be the same for internal libs to avoid |
| 290 | // stubs, and this depends on libdexfiled and others. |
| 291 | "com.android.art", |
| 292 | ], |
| 293 | } |
| 294 | |
| 295 | art_cc_library { |
| 296 | name: "libartbase-testing", |
| 297 | defaults: [ |
| 298 | "libartbase-testing-defaults", |
| 299 | ], |
| 300 | shared_libs: [ |
| 301 | "libartbase", |
| 302 | ], |
| 303 | } |
| 304 | |
| 305 | art_cc_library { |
| 306 | name: "libartbased-testing", |
| 307 | defaults: [ |
| 308 | "libartbase-testing-defaults", |
| 309 | ], |
| 310 | shared_libs: [ |
| 311 | "libartbased", |
| 312 | ], |
| 313 | } |
| 314 | |
| 315 | art_cc_defaults { |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 316 | name: "art_libartbase_tests_defaults", |
Chih-Hung Hsieh | a0a5f00 | 2022-02-17 21:14:37 -0800 | [diff] [blame] | 317 | tidy_timeout_srcs: [ |
| 318 | "base/bit_utils_test.cc", |
| 319 | "base/intrusive_forward_list_test.cc", |
| 320 | ], |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 321 | srcs: [ |
David Sehr | c3e1895 | 2018-05-11 16:59:31 -0700 | [diff] [blame] | 322 | "arch/instruction_set_test.cc", |
David Sehr | 1ce2b3b | 2018-04-05 11:02:03 -0700 | [diff] [blame] | 323 | "base/arena_allocator_test.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 324 | "base/bit_field_test.cc", |
David Srbecky | 68fefac | 2018-05-10 17:49:33 +0100 | [diff] [blame] | 325 | "base/bit_memory_region_test.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 326 | "base/bit_string_test.cc", |
| 327 | "base/bit_struct_test.cc", |
David Srbecky | 052f8ca | 2018-04-26 15:42:54 +0100 | [diff] [blame] | 328 | "base/bit_table_test.cc", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 329 | "base/bit_utils_test.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 330 | "base/bit_vector_test.cc", |
Eric Holk | c7ac91b | 2021-02-04 21:44:01 +0000 | [diff] [blame] | 331 | "base/compiler_filter_test.cc", |
David Sehr | c3e1895 | 2018-05-11 16:59:31 -0700 | [diff] [blame] | 332 | "base/file_utils_test.cc", |
Calin Juravle | 09eacd9 | 2021-05-19 17:03:55 -0700 | [diff] [blame] | 333 | "base/flags_test.cc", |
Vladimir Marko | 33247ee | 2020-07-03 13:31:56 +0100 | [diff] [blame] | 334 | "base/hash_map_test.cc", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 335 | "base/hash_set_test.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 336 | "base/hex_dump_test.cc", |
| 337 | "base/histogram_test.cc", |
David Sehr | 9c4a015 | 2018-04-05 12:23:54 -0700 | [diff] [blame] | 338 | "base/indenter_test.cc", |
Vladimir Marko | 3fae129 | 2019-06-07 11:26:25 +0100 | [diff] [blame] | 339 | "base/intrusive_forward_list_test.cc", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 340 | "base/leb128_test.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 341 | "base/logging_test.cc", |
Orion Hodson | 563ada2 | 2018-09-04 11:28:31 +0100 | [diff] [blame] | 342 | "base/memfd_test.cc", |
| 343 | "base/membarrier_test.cc", |
David Sehr | 1ce2b3b | 2018-04-05 11:02:03 -0700 | [diff] [blame] | 344 | "base/memory_region_test.cc", |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 345 | "base/mem_map_test.cc", |
Eric Holk | 480d981 | 2021-01-27 23:41:45 +0000 | [diff] [blame] | 346 | "base/metrics/metrics_test.cc", |
David Sehr | c431b9d | 2018-03-02 12:01:51 -0800 | [diff] [blame] | 347 | "base/safe_copy_test.cc", |
| 348 | "base/scoped_flock_test.cc", |
| 349 | "base/time_utils_test.cc", |
| 350 | "base/transform_array_ref_test.cc", |
| 351 | "base/transform_iterator_test.cc", |
| 352 | "base/unix_file/fd_file_test.cc", |
| 353 | "base/utils_test.cc", |
| 354 | "base/variant_map_test.cc", |
David Sehr | 79e2607 | 2018-04-06 17:58:50 -0700 | [diff] [blame] | 355 | "base/zip_archive_test.cc", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 356 | ], |
| 357 | shared_libs: [ |
| 358 | "libbase", |
| 359 | ], |
Roland Levillain | f040914 | 2021-03-22 15:45:03 +0000 | [diff] [blame] | 360 | static_libs: [ |
| 361 | "libgmock", |
| 362 | ], |
| 363 | } |
| 364 | |
| 365 | // Version of ART gtest `art_libartbase_tests` bundled with the ART APEX on target. |
| 366 | // TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete. |
| 367 | art_cc_test { |
| 368 | name: "art_libartbase_tests", |
| 369 | defaults: [ |
| 370 | "art_gtest_defaults", |
| 371 | "art_libartbase_tests_defaults", |
| 372 | ], |
| 373 | } |
| 374 | |
| 375 | // Standalone version of ART gtest `art_libartbase_tests`, not bundled with the ART APEX on target. |
| 376 | art_cc_test { |
| 377 | name: "art_standalone_libartbase_tests", |
| 378 | defaults: [ |
| 379 | "art_standalone_gtest_defaults", |
| 380 | "art_libartbase_tests_defaults", |
| 381 | ], |
Jiakai Zhang | d539f86 | 2022-02-08 14:56:05 +0000 | [diff] [blame] | 382 | data: [":generate-boot-image"], |
| 383 | test_config_template: ":art-gtests-target-standalone-with-boot-image-template", |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 384 | } |
| 385 | |
| 386 | cc_library_headers { |
| 387 | name: "art_libartbase_headers", |
Martin Stjernholm | e10abe7 | 2021-10-28 03:49:55 +0100 | [diff] [blame] | 388 | defaults: ["art_defaults"], |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 389 | host_supported: true, |
| 390 | export_include_dirs: ["."], |
| 391 | shared_libs: ["libbase"], |
| 392 | export_shared_lib_headers: ["libbase"], |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 393 | |
| 394 | apex_available: [ |
Martin Stjernholm | 3e9abfc | 2020-10-09 22:17:51 +0100 | [diff] [blame] | 395 | "com.android.art", |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 396 | "com.android.art.debug", |
Jiyong Park | 71f661c | 2020-04-28 18:20:43 +0900 | [diff] [blame] | 397 | ], |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 398 | } |