Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2012 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 | cc_defaults { |
| 18 | name: "bionic_tests_defaults", |
| 19 | host_supported: true, |
| 20 | target: { |
| 21 | darwin: { |
| 22 | enabled: false, |
| 23 | }, |
| 24 | }, |
| 25 | cflags: [ |
| 26 | "-fstack-protector-all", |
| 27 | "-g", |
| 28 | "-Wall", |
| 29 | "-Wextra", |
| 30 | "-Wunused", |
| 31 | "-Werror", |
| 32 | "-fno-builtin", |
| 33 | |
| 34 | // We want to test deprecated API too. |
| 35 | "-Wno-deprecated-declarations", |
| 36 | |
| 37 | // For glibc. |
| 38 | "-D__STDC_LIMIT_MACROS", |
| 39 | ], |
| 40 | stl: "libc++", |
| 41 | sanitize: { |
| 42 | never: true, |
| 43 | }, |
| 44 | } |
| 45 | |
| 46 | // ----------------------------------------------------------------------------- |
| 47 | // All standard tests. |
| 48 | // ----------------------------------------------------------------------------- |
| 49 | |
| 50 | cc_test_library { |
| 51 | name: "libBionicStandardTests", |
| 52 | defaults: ["bionic_tests_defaults"], |
| 53 | srcs: [ |
| 54 | "arpa_inet_test.cpp", |
Elliott Hughes | f6495c7 | 2016-07-25 09:20:57 -0700 | [diff] [blame] | 55 | "assert_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 56 | "buffer_tests.cpp", |
| 57 | "bug_26110743_test.cpp", |
| 58 | "complex_test.cpp", |
| 59 | "ctype_test.cpp", |
| 60 | "dirent_test.cpp", |
| 61 | "error_test.cpp", |
| 62 | "eventfd_test.cpp", |
| 63 | "fcntl_test.cpp", |
| 64 | "fenv_test.cpp", |
| 65 | "ftw_test.cpp", |
| 66 | "getauxval_test.cpp", |
| 67 | "getcwd_test.cpp", |
| 68 | "grp_pwd_test.cpp", |
| 69 | "ifaddrs_test.cpp", |
| 70 | "inttypes_test.cpp", |
Elliott Hughes | fc8e688 | 2016-11-18 16:27:29 -0800 | [diff] [blame] | 71 | "langinfo_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 72 | "libc_logging_test.cpp", |
| 73 | "libgen_basename_test.cpp", |
| 74 | "libgen_test.cpp", |
| 75 | "locale_test.cpp", |
| 76 | "malloc_test.cpp", |
| 77 | "math_test.cpp", |
| 78 | "mntent_test.cpp", |
| 79 | "netdb_test.cpp", |
| 80 | "net_if_test.cpp", |
| 81 | "netinet_ether_test.cpp", |
| 82 | "netinet_in_test.cpp", |
| 83 | "netinet_udp_test.cpp", |
| 84 | "nl_types_test.cpp", |
| 85 | "pthread_test.cpp", |
| 86 | "pty_test.cpp", |
| 87 | "regex_test.cpp", |
| 88 | "resolv_test.cpp", |
| 89 | "sched_test.cpp", |
| 90 | "search_test.cpp", |
| 91 | "semaphore_test.cpp", |
| 92 | "setjmp_test.cpp", |
| 93 | "signal_test.cpp", |
| 94 | "stack_protector_test.cpp", |
| 95 | "stack_protector_test_helper.cpp", |
| 96 | "stack_unwinding_test.cpp", |
| 97 | "stdatomic_test.cpp", |
| 98 | "stdint_test.cpp", |
| 99 | "stdio_nofortify_test.cpp", |
| 100 | "stdio_test.cpp", |
| 101 | "stdio_ext_test.cpp", |
| 102 | "stdlib_test.cpp", |
| 103 | "string_nofortify_test.cpp", |
| 104 | "string_test.cpp", |
| 105 | "string_posix_strerror_r_test.cpp", |
| 106 | "strings_nofortify_test.cpp", |
| 107 | "strings_test.cpp", |
| 108 | "sstream_test.cpp", |
| 109 | "sys_epoll_test.cpp", |
| 110 | "sys_mman_test.cpp", |
Elliott Hughes | 7c59f3f | 2016-08-16 18:14:26 -0700 | [diff] [blame] | 111 | "sys_msg_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 112 | "sys_personality_test.cpp", |
| 113 | "sys_prctl_test.cpp", |
| 114 | "sys_procfs_test.cpp", |
| 115 | "sys_ptrace_test.cpp", |
| 116 | "sys_quota_test.cpp", |
| 117 | "sys_resource_test.cpp", |
| 118 | "sys_select_test.cpp", |
Elliott Hughes | 7c59f3f | 2016-08-16 18:14:26 -0700 | [diff] [blame] | 119 | "sys_sem_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 120 | "sys_sendfile_test.cpp", |
Elliott Hughes | 7c59f3f | 2016-08-16 18:14:26 -0700 | [diff] [blame] | 121 | "sys_shm_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 122 | "sys_socket_test.cpp", |
| 123 | "sys_stat_test.cpp", |
| 124 | "sys_statvfs_test.cpp", |
| 125 | "sys_syscall_test.cpp", |
| 126 | "sys_sysinfo_test.cpp", |
| 127 | "sys_sysmacros_test.cpp", |
| 128 | "sys_time_test.cpp", |
| 129 | "sys_timex_test.cpp", |
| 130 | "sys_types_test.cpp", |
| 131 | "sys_uio_test.cpp", |
| 132 | "sys_vfs_test.cpp", |
| 133 | "sys_xattr_test.cpp", |
| 134 | "system_properties_test.cpp", |
| 135 | "time_test.cpp", |
| 136 | "uchar_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 137 | "unistd_nofortify_test.cpp", |
| 138 | "unistd_test.cpp", |
| 139 | "utmp_test.cpp", |
| 140 | "wchar_test.cpp", |
| 141 | "wctype_test.cpp", |
| 142 | ], |
| 143 | |
| 144 | include_dirs: [ |
| 145 | "bionic/libc", |
| 146 | "external/tinyxml2", |
| 147 | ], |
| 148 | |
Dan Willemsen | 4156770 | 2016-08-31 16:35:01 -0700 | [diff] [blame] | 149 | static_libs: [ |
| 150 | "libtinyxml2", |
| 151 | "liblog", |
| 152 | "libbase", |
| 153 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 154 | host_ldlibs: ["-lrt"], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 155 | shared: { |
| 156 | enabled: false, |
| 157 | }, |
Elliott Hughes | 3f6eee9 | 2016-12-13 23:47:25 +0000 | [diff] [blame^] | 158 | |
| 159 | generated_headers: ["generated_android_ids"], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 160 | } |
| 161 | |
| 162 | // ----------------------------------------------------------------------------- |
| 163 | // Fortify tests. |
| 164 | // ----------------------------------------------------------------------------- |
| 165 | |
| 166 | cc_defaults { |
| 167 | name: "bionic_fortify_tests_defaults", |
| 168 | cflags: [ |
| 169 | "-Wno-error", |
| 170 | "-U_FORTIFY_SOURCE", |
| 171 | ], |
| 172 | srcs: ["fortify_test_main.cpp"], |
| 173 | target: { |
| 174 | host: { |
| 175 | clang_cflags: ["-D__clang__"], |
| 176 | }, |
| 177 | }, |
| 178 | } |
| 179 | |
| 180 | cc_test_library { |
| 181 | name: "libfortify1-tests-gcc", |
| 182 | defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"], |
| 183 | clang: false, |
| 184 | cflags: [ |
| 185 | "-D_FORTIFY_SOURCE=1", |
| 186 | "-DTEST_NAME=Fortify1_gcc" |
| 187 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 188 | shared: { |
| 189 | enabled: false, |
| 190 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | cc_test_library { |
| 194 | name: "libfortify2-tests-gcc", |
| 195 | defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"], |
| 196 | clang: false, |
| 197 | cflags: [ |
| 198 | "-D_FORTIFY_SOURCE=2", |
| 199 | "-DTEST_NAME=Fortify2_gcc" |
| 200 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 201 | shared: { |
| 202 | enabled: false, |
| 203 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 204 | } |
| 205 | |
| 206 | cc_test_library { |
| 207 | name: "libfortify1-tests-clang", |
| 208 | defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"], |
| 209 | clang: true, |
| 210 | cflags: [ |
| 211 | "-D_FORTIFY_SOURCE=1", |
| 212 | "-DTEST_NAME=Fortify1_clang" |
| 213 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 214 | shared: { |
| 215 | enabled: false, |
| 216 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 217 | } |
| 218 | |
| 219 | cc_test_library { |
| 220 | name: "libfortify2-tests-clang", |
| 221 | defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"], |
| 222 | clang: true, |
| 223 | cflags: [ |
| 224 | "-D_FORTIFY_SOURCE=2", |
| 225 | "-DTEST_NAME=Fortify2_clang" |
| 226 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 227 | shared: { |
| 228 | enabled: false, |
| 229 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 230 | } |
| 231 | |
| 232 | // ----------------------------------------------------------------------------- |
| 233 | // Library of all tests (excluding the dynamic linker tests). |
| 234 | // ----------------------------------------------------------------------------- |
| 235 | cc_test_library { |
| 236 | name: "libBionicTests", |
| 237 | defaults: ["bionic_tests_defaults"], |
| 238 | whole_static_libs: [ |
| 239 | "libBionicStandardTests", |
| 240 | "libfortify1-tests-gcc", |
| 241 | "libfortify2-tests-gcc", |
| 242 | "libfortify1-tests-clang", |
| 243 | "libfortify2-tests-clang", |
| 244 | ], |
Dan Willemsen | 4156770 | 2016-08-31 16:35:01 -0700 | [diff] [blame] | 245 | shared: { |
| 246 | enabled: false, |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 247 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 248 | } |
| 249 | |
| 250 | // ----------------------------------------------------------------------------- |
| 251 | // Library of bionic customized gtest main function, with simplified output format. |
| 252 | // ----------------------------------------------------------------------------- |
| 253 | cc_test_library { |
| 254 | name: "libBionicGtestMain", |
| 255 | defaults: ["bionic_tests_defaults"], |
Dimitry Ivanov | 927877c | 2016-09-21 11:17:13 -0700 | [diff] [blame] | 256 | srcs: [ |
| 257 | "gtest_main.cpp", |
| 258 | "gtest_globals.cpp", |
| 259 | ], |
| 260 | static_libs: [ |
| 261 | "libbase", |
| 262 | ], |
| 263 | include_dirs: [ |
| 264 | "bionic/libc", |
| 265 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 266 | target: { |
| 267 | darwin: { |
| 268 | enabled: true, |
| 269 | }, |
| 270 | }, |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 271 | shared: { |
| 272 | enabled: false, |
| 273 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 274 | } |
| 275 | |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 276 | cc_test_library { |
| 277 | name: "libBionicLoaderTests", |
| 278 | defaults: ["bionic_tests_defaults"], |
| 279 | srcs: [ |
| 280 | "atexit_test.cpp", |
| 281 | "dl_test.cpp", |
Dimitry Ivanov | 708589f | 2016-09-19 10:50:28 -0700 | [diff] [blame] | 282 | "dlfcn_symlink_support.cpp", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 283 | "dlfcn_test.cpp", |
| 284 | "pthread_dlfcn_test.cpp", |
| 285 | ], |
| 286 | static_libs: [ |
| 287 | "libbase", |
| 288 | ], |
| 289 | include_dirs: [ |
| 290 | "bionic/libc", |
| 291 | ], |
| 292 | shared: { |
| 293 | enabled: false, |
| 294 | }, |
| 295 | target: { |
| 296 | android: { |
| 297 | srcs: [ |
| 298 | "dlext_test.cpp", |
| 299 | "libdl_test.cpp", |
| 300 | ], |
| 301 | static_libs: [ |
| 302 | "libpagemap", |
| 303 | ], |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 308 | // ----------------------------------------------------------------------------- |
| 309 | // Library of bionic customized gtest main function, with normal gtest output format, |
| 310 | // which is needed by bionic cts test. |
| 311 | // ----------------------------------------------------------------------------- |
| 312 | cc_test_library { |
| 313 | name: "libBionicCtsGtestMain", |
| 314 | defaults: ["bionic_tests_defaults"], |
Dimitry Ivanov | 927877c | 2016-09-21 11:17:13 -0700 | [diff] [blame] | 315 | srcs: [ |
| 316 | "gtest_main.cpp", |
| 317 | "gtest_globals_cts.cpp", |
| 318 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 319 | cppflags: ["-DUSING_GTEST_OUTPUT_FORMAT"], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 320 | shared: { |
| 321 | enabled: false, |
| 322 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 323 | } |
| 324 | |
| 325 | // ----------------------------------------------------------------------------- |
| 326 | // Tests for the device using bionic's .so. Run with: |
| 327 | // adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests32 |
| 328 | // adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests64 |
| 329 | // adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc32 |
| 330 | // adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc64 |
| 331 | // ----------------------------------------------------------------------------- |
| 332 | cc_defaults { |
| 333 | name: "bionic_unit_tests_defaults", |
| 334 | host_supported: false, |
| 335 | |
| 336 | whole_static_libs: [ |
| 337 | "libBionicTests", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 338 | "libBionicLoaderTests", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 339 | "libBionicGtestMain", |
| 340 | ], |
| 341 | |
| 342 | static_libs: [ |
| 343 | "libtinyxml2", |
| 344 | "liblog", |
| 345 | "libbase", |
| 346 | ], |
| 347 | |
| 348 | srcs: [ |
| 349 | // TODO: Include __cxa_thread_atexit_test.cpp to glibc tests once it is upgraded (glibc 2.18+) |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 350 | "__cxa_thread_atexit_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 351 | "thread_local_test.cpp", |
| 352 | ], |
| 353 | |
| 354 | conlyflags: [ |
| 355 | "-fexceptions", |
| 356 | "-fnon-call-exceptions", |
| 357 | ], |
| 358 | |
| 359 | ldflags: ["-Wl,--export-dynamic"], |
| 360 | |
| 361 | include_dirs: ["bionic/libc"], |
| 362 | |
| 363 | target: { |
| 364 | android: { |
| 365 | shared_libs: [ |
| 366 | "libdl", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 367 | "libdl_preempt_test_1", |
| 368 | "libdl_preempt_test_2", |
| 369 | "libdl_test_df_1_global", |
| 370 | ], |
| 371 | static_libs: [ |
| 372 | // The order of these libraries matters, do not shuffle them. |
| 373 | "libbase", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 374 | "libpagemap", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 375 | "libziparchive", |
| 376 | "libz", |
| 377 | "libutils", |
| 378 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 379 | ldflags: [ |
Colin Cross | 7b29495 | 2016-09-29 14:08:13 -0700 | [diff] [blame] | 380 | "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs", |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 381 | "-Wl,--enable-new-dtags", |
| 382 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 383 | }, |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | cc_test { |
| 388 | name: "bionic-unit-tests", |
| 389 | defaults: ["bionic_unit_tests_defaults", "bionic_tests_defaults"], |
| 390 | clang: true, |
Elliott Hughes | a57ca0d | 2016-11-17 18:18:08 -0800 | [diff] [blame] | 391 | |
| 392 | target: { |
| 393 | android: { |
| 394 | shared_libs: ["libicuuc"], |
| 395 | }, |
| 396 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 397 | } |
| 398 | |
| 399 | cc_test { |
| 400 | name: "bionic-unit-tests-gcc", |
| 401 | defaults: ["bionic_unit_tests_defaults", "bionic_tests_defaults"], |
| 402 | clang: false, |
| 403 | } |
| 404 | |
| 405 | // ----------------------------------------------------------------------------- |
| 406 | // Tests for the device linked against bionic's static library. Run with: |
| 407 | // adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static32 |
| 408 | // adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static64 |
| 409 | // ----------------------------------------------------------------------------- |
| 410 | cc_test { |
| 411 | name: "bionic-unit-tests-static", |
| 412 | defaults: ["bionic_tests_defaults"], |
| 413 | host_supported: false, |
| 414 | |
| 415 | whole_static_libs: [ |
| 416 | "libBionicTests", |
| 417 | "libBionicGtestMain", |
| 418 | ], |
| 419 | |
| 420 | static_libs: [ |
| 421 | "libm", |
| 422 | "libc", |
| 423 | "libc++_static", |
| 424 | "libdl", |
| 425 | "libtinyxml2", |
| 426 | "liblog", |
| 427 | "libbase", |
| 428 | ], |
| 429 | |
| 430 | static_executable: true, |
| 431 | stl: "libc++_static", |
| 432 | |
| 433 | // libc and libc++ both define std::nothrow. libc's is a private symbol, but this |
| 434 | // still causes issues when linking libc.a and libc++.a, since private isn't |
| 435 | // effective until it has been linked. To fix this, just allow multiple symbol |
| 436 | // definitions for the static tests. |
| 437 | ldflags: ["-Wl,--allow-multiple-definition"], |
| 438 | } |
| 439 | |
| 440 | // ----------------------------------------------------------------------------- |
| 441 | // Tests to run on the host and linked against glibc. Run with: |
| 442 | // cd bionic/tests; mm bionic-unit-tests-glibc-run |
| 443 | // ----------------------------------------------------------------------------- |
| 444 | |
| 445 | cc_test_host { |
| 446 | name: "bionic-unit-tests-glibc", |
| 447 | defaults: ["bionic_tests_defaults"], |
| 448 | |
| 449 | srcs: [ |
| 450 | "atexit_test.cpp", |
Dimitry Ivanov | 708589f | 2016-09-19 10:50:28 -0700 | [diff] [blame] | 451 | "dlfcn_symlink_support.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 452 | "dlfcn_test.cpp", |
| 453 | "dl_test.cpp", |
| 454 | "pthread_dlfcn_test.cpp", |
| 455 | ], |
| 456 | |
| 457 | shared_libs: [ |
| 458 | "libdl_preempt_test_1", |
| 459 | "libdl_preempt_test_2", |
| 460 | |
| 461 | "libdl_test_df_1_global", |
| 462 | ], |
| 463 | |
| 464 | whole_static_libs: [ |
| 465 | "libBionicStandardTests", |
| 466 | "libBionicGtestMain", |
| 467 | "libfortify1-tests-gcc", |
| 468 | "libfortify2-tests-gcc", |
| 469 | "libfortify1-tests-clang", |
| 470 | "libfortify2-tests-clang", |
| 471 | ], |
| 472 | |
| 473 | static_libs: [ |
| 474 | "libbase", |
| 475 | "liblog", |
| 476 | "libcutils", |
| 477 | ], |
| 478 | |
| 479 | host_ldlibs: [ |
| 480 | "-lresolv", |
| 481 | "-lrt", |
| 482 | "-ldl", |
| 483 | "-lutil", |
| 484 | ], |
| 485 | |
| 486 | include_dirs: ["bionic/libc"], |
| 487 | |
Dimitry Ivanov | d0b5c3a | 2016-11-25 12:23:11 -0800 | [diff] [blame] | 488 | ldflags: [ |
| 489 | "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs", |
| 490 | "-Wl,--export-dynamic", |
| 491 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 492 | |
| 493 | sanitize: { |
| 494 | never: false, |
| 495 | }, |
| 496 | } |
| 497 | |
| 498 | subdirs = ["libs"] |