Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2014 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 | common_cflags = [ |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 18 | "-D_REENTRANT", |
Alex Naidis | 5a22dd0 | 2016-08-19 22:57:27 +0200 | [diff] [blame] | 19 | "-O3", |
| 20 | "-funroll-loops", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 21 | "-fvisibility=hidden", |
Chih-Hung Hsieh | 033b6fd | 2017-09-28 12:17:52 -0700 | [diff] [blame] | 22 | "-Werror", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 23 | "-Wno-unused-parameter", |
Colin Cross | 7027478 | 2015-12-29 16:56:11 -0800 | [diff] [blame] | 24 | "-Wno-type-limits", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 25 | ] |
| 26 | |
| 27 | // These parameters change the way jemalloc works. |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 28 | // ANDROID_MAX_ARENAS=XX |
| 29 | // The total number of arenas will be less than or equal to this number. |
| 30 | // The number of arenas will be calculated as 2 * the number of cpus |
| 31 | // but no larger than XX. |
| 32 | // ANDROID_TCACHE_NSLOTS_SMALL_MAX=XX |
| 33 | // The number of small slots held in the tcache. The higher this number |
| 34 | // is, the higher amount of PSS consumed. If this number is set too low |
| 35 | // then small allocations will take longer to complete. |
| 36 | // ANDROID_TCACHE_NSLOTS_LARGE=XX |
| 37 | // The number of large slots held in the tcache. The higher this number |
| 38 | // is, the higher amount of PSS consumed. If this number is set too low |
| 39 | // then large allocations will take longer to complete. |
| 40 | // ANDROID_LG_TCACHE_MAXCLASS_DEFAULT=XX |
| 41 | // 1 << XX is the maximum sized allocation that will be in the tcache. |
| 42 | // ANDROID_LG_CHUNK_DEFAULT=XX |
| 43 | // 1 << XX is the default chunk size used by the system. Decreasing this |
| 44 | // usually decreases the amount of PSS used, but can increase |
| 45 | // fragmentation. |
Christopher Ferris | 53bf335 | 2016-07-19 14:05:20 -0700 | [diff] [blame] | 46 | |
| 47 | // Default to a single arena for svelte configurations to minimize |
| 48 | // PSS consumed by jemalloc. |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 49 | common_cflags += [ |
Christopher Ferris | 53bf335 | 2016-07-19 14:05:20 -0700 | [diff] [blame] | 50 | "-DANDROID_MAX_ARENAS=1", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 51 | "-DANDROID_LG_TCACHE_MAXCLASS_DEFAULT=16", |
| 52 | ] |
| 53 | |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 54 | common_c_local_includes = [ |
| 55 | "src", |
| 56 | "include", |
| 57 | ] |
| 58 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 59 | common_product_variables = { |
| 60 | // Only enable the tcache on non-svelte configurations, to save PSS. |
| 61 | malloc_not_svelte: { |
Christopher Ferris | 53bf335 | 2016-07-19 14:05:20 -0700 | [diff] [blame] | 62 | cflags: [ |
| 63 | "-UANDROID_MAX_ARENAS", |
| 64 | "-DANDROID_MAX_ARENAS=2", |
| 65 | "-DJEMALLOC_TCACHE", |
| 66 | "-DANDROID_TCACHE_NSLOTS_SMALL_MAX=8", |
| 67 | "-DANDROID_TCACHE_NSLOTS_LARGE=16", |
| 68 | ], |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 69 | }, |
| 70 | } |
| 71 | |
| 72 | cc_defaults { |
| 73 | name: "jemalloc_defaults", |
Dan Willemsen | ba738bb | 2016-11-04 12:25:48 -0700 | [diff] [blame] | 74 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 75 | cflags: common_cflags, |
| 76 | |
| 77 | product_variables: common_product_variables, |
| 78 | |
| 79 | multilib: { |
| 80 | lib32: { |
| 81 | // Use a 512K chunk size on 32 bit systems. |
| 82 | // This keeps the total amount of virtual address space consumed |
| 83 | // by jemalloc lower. |
| 84 | cflags: [ |
| 85 | "-DANDROID_LG_CHUNK_DEFAULT=19", |
| 86 | ], |
| 87 | }, |
| 88 | lib64: { |
| 89 | // Use a 2MB chunk size on 64 bit systems. |
| 90 | // This is the default currently used by 4.0.0 |
| 91 | cflags: [ |
| 92 | "-DANDROID_LG_CHUNK_DEFAULT=21", |
| 93 | ], |
| 94 | }, |
| 95 | }, |
| 96 | |
| 97 | local_include_dirs: common_c_local_includes, |
Colin Cross | 4daa75d | 2016-04-07 13:28:20 -0700 | [diff] [blame] | 98 | stl: "none", |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 99 | } |
| 100 | |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 101 | lib_src_files = [ |
| 102 | "src/arena.c", |
| 103 | "src/atomic.c", |
| 104 | "src/base.c", |
| 105 | "src/bitmap.c", |
| 106 | "src/chunk.c", |
| 107 | "src/chunk_dss.c", |
| 108 | "src/chunk_mmap.c", |
| 109 | "src/ckh.c", |
| 110 | "src/ctl.c", |
| 111 | "src/extent.c", |
| 112 | "src/hash.c", |
| 113 | "src/huge.c", |
| 114 | "src/jemalloc.c", |
| 115 | "src/mb.c", |
| 116 | "src/mutex.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 117 | "src/nstime.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 118 | "src/pages.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 119 | "src/prng.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 120 | "src/prof.c", |
| 121 | "src/quarantine.c", |
| 122 | "src/rtree.c", |
Christopher Ferris | fb1f094 | 2016-11-08 14:47:48 -0800 | [diff] [blame] | 123 | "src/spin.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 124 | "src/stats.c", |
| 125 | "src/tcache.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 126 | "src/ticker.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 127 | "src/tsd.c", |
| 128 | "src/util.c", |
Christopher Ferris | 3545247 | 2016-06-14 14:28:47 -0700 | [diff] [blame] | 129 | "src/witness.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 130 | ] |
| 131 | |
| 132 | //----------------------------------------------------------------------- |
| 133 | // jemalloc static library |
| 134 | //----------------------------------------------------------------------- |
| 135 | cc_library_static { |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 136 | name: "libjemalloc", |
Jiyong Park | 20a932e | 2018-04-27 21:47:48 +0900 | [diff] [blame^] | 137 | recovery_available: true, |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 138 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 139 | defaults: ["jemalloc_defaults"], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 140 | |
Christopher Ferris | be92dfd | 2017-04-25 13:25:48 -0700 | [diff] [blame] | 141 | cflags: ["-include bionic/libc/async_safe/include/async_safe/log.h"], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 142 | |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 143 | srcs: lib_src_files, |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | //----------------------------------------------------------------------- |
| 147 | // jemalloc static jet library |
| 148 | //----------------------------------------------------------------------- |
| 149 | cc_library_static { |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 150 | name: "libjemalloc_jet", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 151 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 152 | defaults: ["jemalloc_defaults"], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 153 | |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 154 | cflags: [ |
| 155 | "-DJEMALLOC_JET", |
Christopher Ferris | be92dfd | 2017-04-25 13:25:48 -0700 | [diff] [blame] | 156 | "-include android/include/log.h", |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 157 | ], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 158 | |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 159 | srcs: lib_src_files, |
| 160 | |
| 161 | } |
| 162 | |
| 163 | jemalloc_testlib_srcs = [ |
| 164 | "test/src/btalloc.c", |
| 165 | "test/src/btalloc_0.c", |
| 166 | "test/src/btalloc_1.c", |
| 167 | "test/src/math.c", |
| 168 | "test/src/mq.c", |
| 169 | "test/src/mtx.c", |
| 170 | "test/src/SFMT.c", |
| 171 | "test/src/test.c", |
| 172 | "test/src/thd.c", |
| 173 | "test/src/timer.c", |
| 174 | ] |
| 175 | |
| 176 | //----------------------------------------------------------------------- |
| 177 | // jemalloc unit test library |
| 178 | //----------------------------------------------------------------------- |
| 179 | cc_library_static { |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 180 | name: "libjemalloc_unittest", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 181 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 182 | defaults: ["jemalloc_defaults"], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 183 | |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 184 | cflags: [ |
| 185 | "-DJEMALLOC_UNIT_TEST", |
Christopher Ferris | be92dfd | 2017-04-25 13:25:48 -0700 | [diff] [blame] | 186 | "-include android/include/log.h", |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 187 | ], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 188 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 189 | local_include_dirs: [ |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 190 | "test/src", |
| 191 | "test/include", |
| 192 | ], |
| 193 | |
| 194 | srcs: jemalloc_testlib_srcs, |
| 195 | |
| 196 | whole_static_libs: ["libjemalloc_jet"], |
| 197 | |
| 198 | } |
| 199 | |
| 200 | //----------------------------------------------------------------------- |
| 201 | // jemalloc unit tests |
| 202 | //----------------------------------------------------------------------- |
| 203 | unit_tests = [ |
Christopher Ferris | 3545247 | 2016-06-14 14:28:47 -0700 | [diff] [blame] | 204 | "test/unit/a0.c", |
| 205 | "test/unit/arena_reset.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 206 | "test/unit/atomic.c", |
| 207 | "test/unit/bitmap.c", |
| 208 | "test/unit/ckh.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 209 | "test/unit/decay.c", |
Christopher Ferris | 3545247 | 2016-06-14 14:28:47 -0700 | [diff] [blame] | 210 | "test/unit/fork.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 211 | "test/unit/hash.c", |
| 212 | "test/unit/junk.c", |
| 213 | "test/unit/junk_alloc.c", |
| 214 | "test/unit/junk_free.c", |
| 215 | "test/unit/lg_chunk.c", |
| 216 | "test/unit/mallctl.c", |
| 217 | "test/unit/math.c", |
| 218 | "test/unit/mq.c", |
| 219 | "test/unit/mtx.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 220 | "test/unit/nstime.c", |
Christopher Ferris | bf9b018 | 2016-12-08 11:56:18 -0800 | [diff] [blame] | 221 | "test/unit/pack.c", |
| 222 | "test/unit/pages.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 223 | "test/unit/prng.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 224 | "test/unit/prof_accum.c", |
| 225 | "test/unit/prof_active.c", |
| 226 | "test/unit/prof_gdump.c", |
| 227 | "test/unit/prof_idump.c", |
| 228 | "test/unit/prof_reset.c", |
| 229 | "test/unit/prof_thread_name.c", |
| 230 | "test/unit/ql.c", |
| 231 | "test/unit/qr.c", |
| 232 | "test/unit/quarantine.c", |
| 233 | "test/unit/rb.c", |
| 234 | "test/unit/rtree.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 235 | "test/unit/run_quantize.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 236 | "test/unit/SFMT.c", |
| 237 | "test/unit/size_classes.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 238 | "test/unit/smoothstep.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 239 | "test/unit/stats.c", |
Dan Willemsen | ec006d8 | 2016-03-07 16:22:25 -0800 | [diff] [blame] | 240 | "test/unit/ticker.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 241 | "test/unit/tsd.c", |
| 242 | "test/unit/util.c", |
Christopher Ferris | 3545247 | 2016-06-14 14:28:47 -0700 | [diff] [blame] | 243 | "test/unit/witness.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 244 | "test/unit/zero.c", |
| 245 | ] |
| 246 | |
Dan Willemsen | f0f4585 | 2015-12-21 15:29:32 -0800 | [diff] [blame] | 247 | cc_test { |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 248 | name: "jemalloc_unittests", |
Dan Willemsen | f0f4585 | 2015-12-21 15:29:32 -0800 | [diff] [blame] | 249 | |
| 250 | gtest: false, |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 251 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 252 | product_variables: common_product_variables, |
| 253 | |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 254 | cflags: common_cflags + [ |
| 255 | "-DJEMALLOC_UNIT_TEST", |
Christopher Ferris | be92dfd | 2017-04-25 13:25:48 -0700 | [diff] [blame] | 256 | "-include android/include/log.h", |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 257 | ], |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 258 | |
| 259 | local_include_dirs: common_c_local_includes + [ |
| 260 | "test/src", |
| 261 | "test/include", |
| 262 | ], |
| 263 | |
| 264 | srcs: unit_tests, |
| 265 | |
| 266 | static_libs: ["libjemalloc_unittest"], |
| 267 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 268 | shared_libs: ["liblog"], |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 269 | |
| 270 | test_per_src: true, |
| 271 | } |
| 272 | |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 273 | //----------------------------------------------------------------------- |
| 274 | // jemalloc integration test library |
| 275 | //----------------------------------------------------------------------- |
| 276 | cc_library_static { |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 277 | name: "libjemalloc_integrationtest", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 278 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 279 | defaults: ["jemalloc_defaults"], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 280 | |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 281 | cflags: [ |
| 282 | "-DJEMALLOC_INTEGRATION_TEST", |
Christopher Ferris | be92dfd | 2017-04-25 13:25:48 -0700 | [diff] [blame] | 283 | "-include android/include/log.h", |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 284 | ], |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 285 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 286 | local_include_dirs: [ |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 287 | "test/src", |
| 288 | "test/include", |
| 289 | ], |
| 290 | |
| 291 | srcs: jemalloc_testlib_srcs + lib_src_files, |
| 292 | |
| 293 | } |
| 294 | |
| 295 | //----------------------------------------------------------------------- |
| 296 | // jemalloc integration tests |
| 297 | //----------------------------------------------------------------------- |
| 298 | integration_tests = [ |
| 299 | "test/integration/aligned_alloc.c", |
| 300 | "test/integration/allocated.c", |
| 301 | "test/integration/chunk.c", |
Colin Cross | 6ab5f60 | 2015-12-29 16:56:53 -0800 | [diff] [blame] | 302 | "test/integration/iterate.c", |
Dan Willemsen | 1bd7889 | 2015-09-11 13:08:19 -0700 | [diff] [blame] | 303 | "test/integration/MALLOCX_ARENA.c", |
| 304 | "test/integration/mallocx.c", |
| 305 | "test/integration/overflow.c", |
| 306 | "test/integration/posix_memalign.c", |
| 307 | "test/integration/rallocx.c", |
| 308 | "test/integration/sdallocx.c", |
| 309 | "test/integration/thread_arena.c", |
| 310 | "test/integration/thread_tcache_enabled.c", |
| 311 | "test/integration/xallocx.c", |
| 312 | ] |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 313 | |
Dan Willemsen | f0f4585 | 2015-12-21 15:29:32 -0800 | [diff] [blame] | 314 | cc_test { |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 315 | |
| 316 | name: "jemalloc_integrationtests", |
Dan Willemsen | f0f4585 | 2015-12-21 15:29:32 -0800 | [diff] [blame] | 317 | |
| 318 | gtest: false, |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 319 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 320 | product_variables: common_product_variables, |
| 321 | |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 322 | cflags: common_cflags + [ |
| 323 | "-DJEMALLOC_INTEGRATION_TEST", |
Christopher Ferris | be92dfd | 2017-04-25 13:25:48 -0700 | [diff] [blame] | 324 | "-include android/include/log.h", |
Dan Willemsen | 2ee91d8 | 2016-05-25 15:06:55 -0700 | [diff] [blame] | 325 | ], |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 326 | |
| 327 | local_include_dirs: common_c_local_includes + [ |
| 328 | "test/src", |
| 329 | "test/include", |
| 330 | ], |
| 331 | |
| 332 | srcs: integration_tests, |
| 333 | |
| 334 | static_libs: ["libjemalloc_integrationtest"], |
| 335 | |
Dan Willemsen | e67f1d5 | 2016-03-01 17:23:40 -0800 | [diff] [blame] | 336 | shared_libs: ["liblog"], |
Colin Cross | 89d0f3c | 2015-09-17 15:34:16 -0700 | [diff] [blame] | 337 | |
| 338 | test_per_src: true, |
| 339 | } |