blob: efb86b8aa6057833706efa906774cde3f60ba5fb [file] [log] [blame]
Colin Cross2722ebb2016-07-11 16:20:06 -07001//
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
17cc_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
50cc_test_library {
51 name: "libBionicStandardTests",
52 defaults: ["bionic_tests_defaults"],
53 srcs: [
54 "arpa_inet_test.cpp",
Christopher Ferris7a3681e2017-04-24 17:48:32 -070055 "async_safe_test.cpp",
Elliott Hughesf6495c72016-07-25 09:20:57 -070056 "assert_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070057 "buffer_tests.cpp",
58 "bug_26110743_test.cpp",
59 "complex_test.cpp",
60 "ctype_test.cpp",
61 "dirent_test.cpp",
Elliott Hughesd390df12017-04-30 22:56:10 -070062 "elf_test.cpp",
Elliott Hughesba267f42017-02-24 16:19:53 -080063 "endian_test.cpp",
Elliott Hughese452cb12017-06-13 14:43:53 -070064 "errno_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070065 "error_test.cpp",
66 "eventfd_test.cpp",
67 "fcntl_test.cpp",
68 "fenv_test.cpp",
69 "ftw_test.cpp",
70 "getauxval_test.cpp",
71 "getcwd_test.cpp",
72 "grp_pwd_test.cpp",
73 "ifaddrs_test.cpp",
74 "inttypes_test.cpp",
Elliott Hughesfc8e6882016-11-18 16:27:29 -080075 "langinfo_test.cpp",
Josh Gao7d15dc32017-03-13 17:10:46 -070076 "leak_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070077 "libgen_basename_test.cpp",
78 "libgen_test.cpp",
Christopher Ferrisee1e0a32017-04-20 13:38:49 -070079 "linux_swab_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070080 "locale_test.cpp",
81 "malloc_test.cpp",
82 "math_test.cpp",
83 "mntent_test.cpp",
84 "netdb_test.cpp",
85 "net_if_test.cpp",
86 "netinet_ether_test.cpp",
87 "netinet_in_test.cpp",
88 "netinet_udp_test.cpp",
89 "nl_types_test.cpp",
90 "pthread_test.cpp",
91 "pty_test.cpp",
Xin Li4b1a3992017-05-19 10:13:08 -070092 "qsort_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070093 "regex_test.cpp",
94 "resolv_test.cpp",
95 "sched_test.cpp",
Elliott Hughes50599392017-05-25 17:13:32 -070096 "scsi_sg_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070097 "search_test.cpp",
98 "semaphore_test.cpp",
99 "setjmp_test.cpp",
100 "signal_test.cpp",
101 "stack_protector_test.cpp",
102 "stack_protector_test_helper.cpp",
103 "stack_unwinding_test.cpp",
104 "stdatomic_test.cpp",
105 "stdint_test.cpp",
106 "stdio_nofortify_test.cpp",
107 "stdio_test.cpp",
108 "stdio_ext_test.cpp",
109 "stdlib_test.cpp",
110 "string_nofortify_test.cpp",
111 "string_test.cpp",
112 "string_posix_strerror_r_test.cpp",
113 "strings_nofortify_test.cpp",
114 "strings_test.cpp",
115 "sstream_test.cpp",
116 "sys_epoll_test.cpp",
117 "sys_mman_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700118 "sys_msg_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700119 "sys_personality_test.cpp",
120 "sys_prctl_test.cpp",
121 "sys_procfs_test.cpp",
122 "sys_ptrace_test.cpp",
123 "sys_quota_test.cpp",
124 "sys_resource_test.cpp",
125 "sys_select_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700126 "sys_sem_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700127 "sys_sendfile_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700128 "sys_shm_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700129 "sys_socket_test.cpp",
130 "sys_stat_test.cpp",
131 "sys_statvfs_test.cpp",
132 "sys_syscall_test.cpp",
133 "sys_sysinfo_test.cpp",
134 "sys_sysmacros_test.cpp",
135 "sys_time_test.cpp",
136 "sys_timex_test.cpp",
137 "sys_types_test.cpp",
138 "sys_uio_test.cpp",
139 "sys_vfs_test.cpp",
140 "sys_xattr_test.cpp",
141 "system_properties_test.cpp",
Dimitry Ivanov16b2a4d2017-01-24 20:43:29 +0000142 "system_properties_test2.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700143 "time_test.cpp",
144 "uchar_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700145 "unistd_nofortify_test.cpp",
146 "unistd_test.cpp",
147 "utmp_test.cpp",
148 "wchar_test.cpp",
149 "wctype_test.cpp",
150 ],
151
152 include_dirs: [
153 "bionic/libc",
154 "external/tinyxml2",
155 ],
156
Christopher Ferris7a3681e2017-04-24 17:48:32 -0700157 target: {
158 android: {
159 whole_static_libs: ["libasync_safe"],
160 },
161 },
162
Dan Willemsen41567702016-08-31 16:35:01 -0700163 static_libs: [
164 "libtinyxml2",
165 "liblog",
166 "libbase",
167 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700168 host_ldlibs: ["-lrt"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700169 shared: {
170 enabled: false,
171 },
Elliott Hughes3f6eee92016-12-13 23:47:25 +0000172
173 generated_headers: ["generated_android_ids"],
Colin Cross2722ebb2016-07-11 16:20:06 -0700174}
175
176// -----------------------------------------------------------------------------
177// Fortify tests.
178// -----------------------------------------------------------------------------
179
180cc_defaults {
181 name: "bionic_fortify_tests_defaults",
182 cflags: [
183 "-Wno-error",
184 "-U_FORTIFY_SOURCE",
185 ],
186 srcs: ["fortify_test_main.cpp"],
187 target: {
188 host: {
189 clang_cflags: ["-D__clang__"],
190 },
191 },
192}
193
194cc_test_library {
Colin Cross2722ebb2016-07-11 16:20:06 -0700195 name: "libfortify1-tests-clang",
196 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
197 clang: true,
198 cflags: [
199 "-D_FORTIFY_SOURCE=1",
200 "-DTEST_NAME=Fortify1_clang"
201 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700202 shared: {
203 enabled: false,
204 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700205}
206
207cc_test_library {
208 name: "libfortify2-tests-clang",
209 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
210 clang: true,
211 cflags: [
212 "-D_FORTIFY_SOURCE=2",
213 "-DTEST_NAME=Fortify2_clang"
214 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700215 shared: {
216 enabled: false,
217 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700218}
219
220// -----------------------------------------------------------------------------
221// Library of all tests (excluding the dynamic linker tests).
222// -----------------------------------------------------------------------------
223cc_test_library {
224 name: "libBionicTests",
225 defaults: ["bionic_tests_defaults"],
226 whole_static_libs: [
227 "libBionicStandardTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700228 "libfortify1-tests-clang",
229 "libfortify2-tests-clang",
230 ],
Dan Willemsen41567702016-08-31 16:35:01 -0700231 shared: {
232 enabled: false,
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700233 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700234}
235
236// -----------------------------------------------------------------------------
237// Library of bionic customized gtest main function, with simplified output format.
238// -----------------------------------------------------------------------------
239cc_test_library {
240 name: "libBionicGtestMain",
241 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700242 srcs: [
243 "gtest_main.cpp",
244 "gtest_globals.cpp",
245 ],
246 static_libs: [
247 "libbase",
248 ],
249 include_dirs: [
250 "bionic/libc",
251 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700252 target: {
253 darwin: {
254 enabled: true,
255 },
256 },
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700257 shared: {
258 enabled: false,
259 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700260}
261
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700262cc_test_library {
263 name: "libBionicLoaderTests",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800264 defaults: ["bionic_tests_defaults", "llvm-defaults"],
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700265 srcs: [
266 "atexit_test.cpp",
267 "dl_test.cpp",
Dimitry Ivanov708589f2016-09-19 10:50:28 -0700268 "dlfcn_symlink_support.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700269 "dlfcn_test.cpp",
Elliott Hughes7c10abb2017-04-21 17:15:41 -0700270 "link_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700271 "pthread_dlfcn_test.cpp",
272 ],
273 static_libs: [
274 "libbase",
275 ],
276 include_dirs: [
277 "bionic/libc",
278 ],
279 shared: {
280 enabled: false,
281 },
282 target: {
283 android: {
284 srcs: [
Evgenii Stepanov0a3637d2016-07-06 13:20:59 -0700285 "cfi_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700286 "dlext_test.cpp",
287 "libdl_test.cpp",
288 ],
289 static_libs: [
290 "libpagemap",
Andreas Gampeb9797fe2017-07-05 22:36:20 -0700291 "libziparchive",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800292 "libLLVMObject",
293 "libLLVMBitReader",
294 "libLLVMMC",
295 "libLLVMMCParser",
296 "libLLVMCore",
297 "libLLVMSupport",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700298 ],
299 }
300 }
301}
302
Colin Cross2722ebb2016-07-11 16:20:06 -0700303// -----------------------------------------------------------------------------
304// Library of bionic customized gtest main function, with normal gtest output format,
305// which is needed by bionic cts test.
306// -----------------------------------------------------------------------------
307cc_test_library {
308 name: "libBionicCtsGtestMain",
309 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700310 srcs: [
311 "gtest_main.cpp",
312 "gtest_globals_cts.cpp",
313 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700314 cppflags: ["-DUSING_GTEST_OUTPUT_FORMAT"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700315 shared: {
316 enabled: false,
317 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700318}
319
320// -----------------------------------------------------------------------------
321// Tests for the device using bionic's .so. Run with:
322// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests32
323// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests64
324// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc32
325// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc64
326// -----------------------------------------------------------------------------
327cc_defaults {
328 name: "bionic_unit_tests_defaults",
329 host_supported: false,
330
331 whole_static_libs: [
332 "libBionicTests",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700333 "libBionicLoaderTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700334 "libBionicGtestMain",
335 ],
336
337 static_libs: [
338 "libtinyxml2",
339 "liblog",
340 "libbase",
341 ],
342
343 srcs: [
344 // TODO: Include __cxa_thread_atexit_test.cpp to glibc tests once it is upgraded (glibc 2.18+)
Colin Cross2722ebb2016-07-11 16:20:06 -0700345 "__cxa_thread_atexit_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700346 "thread_local_test.cpp",
347 ],
348
349 conlyflags: [
350 "-fexceptions",
351 "-fnon-call-exceptions",
352 ],
353
354 ldflags: ["-Wl,--export-dynamic"],
355
356 include_dirs: ["bionic/libc"],
357
Yabin Cui1f553ea2017-01-13 12:31:59 -0800358 stl: "libc++_static",
359
Colin Cross2722ebb2016-07-11 16:20:06 -0700360 target: {
361 android: {
362 shared_libs: [
363 "libdl",
Colin Cross2722ebb2016-07-11 16:20:06 -0700364 "libdl_preempt_test_1",
365 "libdl_preempt_test_2",
366 "libdl_test_df_1_global",
367 ],
368 static_libs: [
369 // The order of these libraries matters, do not shuffle them.
370 "libbase",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700371 "libpagemap",
Colin Cross2722ebb2016-07-11 16:20:06 -0700372 "libziparchive",
373 "libz",
374 "libutils",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800375 "libLLVMObject",
376 "libLLVMBitReader",
377 "libLLVMMC",
378 "libLLVMMCParser",
379 "libLLVMCore",
380 "libLLVMSupport",
Colin Cross2722ebb2016-07-11 16:20:06 -0700381 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700382 ldflags: [
Colin Cross7b294952016-09-29 14:08:13 -0700383 "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs",
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700384 "-Wl,--enable-new-dtags",
385 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700386 },
387 }
388}
389
390cc_test {
391 name: "bionic-unit-tests",
392 defaults: ["bionic_unit_tests_defaults", "bionic_tests_defaults"],
393 clang: true,
Elliott Hughesa57ca0d2016-11-17 18:18:08 -0800394
395 target: {
396 android: {
397 shared_libs: ["libicuuc"],
398 },
399 },
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700400
401 required: [
402 "cfi_test_helper",
403 "cfi_test_helper2",
404 "libtest_dt_runpath_a",
405 "libtest_dt_runpath_b",
406 "libtest_dt_runpath_c",
407 "libtest_dt_runpath_x",
408 "libatest_simple_zip",
409 "libcfi-test",
410 "libcfi-test-bad",
411 "libdlext_test_different_soname",
412 "libdlext_test_fd",
413 "libdlext_test_norelro",
414 "libdlext_test_runpath_zip_zipaligned",
415 "libdlext_test",
416 "libdlext_test_zip",
417 "libdlext_test_zip_zipaligned",
418 "libdl_preempt_test_1",
419 "libdl_preempt_test_2",
420 "libdl_test_df_1_global",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700421 "libgnu-hash-table-library",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700422 "libsysv-hash-table-library",
423 "libtest_atexit",
424 "libtest_check_order_dlsym_1_left",
425 "libtest_check_order_dlsym_2_right",
426 "libtest_check_order_dlsym_3_c",
427 "libtest_check_order_dlsym_a",
428 "libtest_check_order_dlsym_b",
429 "libtest_check_order_dlsym_d",
430 "libtest_check_order_dlsym",
431 "libtest_check_order_reloc_root_1",
432 "libtest_check_order_reloc_root_2",
433 "libtest_check_order_reloc_root",
434 "libtest_check_order_reloc_siblings_1",
435 "libtest_check_order_reloc_siblings_2",
436 "libtest_check_order_reloc_siblings_3",
437 "libtest_check_order_reloc_siblings_a",
438 "libtest_check_order_reloc_siblings_b",
439 "libtest_check_order_reloc_siblings_c_1",
440 "libtest_check_order_reloc_siblings_c_2",
441 "libtest_check_order_reloc_siblings_c",
442 "libtest_check_order_reloc_siblings_d",
443 "libtest_check_order_reloc_siblings_e",
444 "libtest_check_order_reloc_siblings_f",
445 "libtest_check_order_reloc_siblings",
446 "libtest_check_rtld_next_from_library",
447 "libtest_dlopen_from_ctor_main",
448 "libtest_dlopen_from_ctor",
449 "libtest_dlopen_weak_undefined_func",
450 "libtest_dlsym_df_1_global",
451 "libtest_dlsym_from_this_child",
452 "libtest_dlsym_from_this_grandchild",
453 "libtest_dlsym_from_this",
454 "libtest_dlsym_weak_func",
455 "libtest_dt_runpath_d",
456 "libtest_empty",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700457 "libtest_ifunc",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700458 "libtest_init_fini_order_child",
459 "libtest_init_fini_order_grand_child",
460 "libtest_init_fini_order_root2",
461 "libtest_init_fini_order_root",
462 "libtest_nodelete_1",
463 "libtest_nodelete_2",
464 "libtest_nodelete_dt_flags_1",
465 "libtest_pthread_atfork",
466 "libtest_relo_check_dt_needed_order_1",
467 "libtest_relo_check_dt_needed_order_2",
468 "libtest_relo_check_dt_needed_order",
469 "libtest_simple",
470 "libtest_two_parents_child",
471 "libtest_two_parents_parent1",
472 "libtest_two_parents_parent2",
473 "libtest_versioned_lib",
474 "libtest_versioned_libv1",
475 "libtest_versioned_libv2",
476 "libtest_versioned_otherlib_empty",
477 "libtest_versioned_otherlib",
478 "libtest_versioned_uselibv1",
479 "libtest_versioned_uselibv2_other",
480 "libtest_versioned_uselibv2",
481 "libtest_versioned_uselibv3_other",
482 "libtest_with_dependency_loop_a",
483 "libtest_with_dependency_loop_b",
484 "libtest_with_dependency_loop_c",
485 "libtest_with_dependency_loop",
486 "libtest_with_dependency",
487 "libtest_invalid-empty_shdr_table.so",
488 "libtest_invalid-rw_load_segment.so",
489 "libtest_invalid-unaligned_shdr_offset.so",
490 "libtest_invalid-zero_shdr_table_content.so",
491 "libtest_invalid-zero_shdr_table_offset.so",
492 "libtest_invalid-zero_shentsize.so",
493 "libtest_invalid-zero_shstrndx.so",
494 "libtest_invalid-textrels.so",
495 "libtest_invalid-textrels2.so",
496 "preinit_getauxval_test_helper",
497 "preinit_syscall_test_helper",
498 "libnstest_private_external",
499 "libnstest_dlopened",
500 "libnstest_private",
501 "libnstest_root_not_isolated",
502 "libnstest_root",
503 "libnstest_public",
504 "libnstest_public_internal",
505 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700506}
507
Colin Cross2722ebb2016-07-11 16:20:06 -0700508// -----------------------------------------------------------------------------
509// Tests for the device linked against bionic's static library. Run with:
510// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static32
511// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static64
512// -----------------------------------------------------------------------------
513cc_test {
514 name: "bionic-unit-tests-static",
515 defaults: ["bionic_tests_defaults"],
516 host_supported: false,
517
Dimitry Ivanov462ea662017-01-06 14:49:57 -0800518 srcs: [
519 "gtest_preinit_debuggerd.cpp",
520 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700521 whole_static_libs: [
522 "libBionicTests",
523 "libBionicGtestMain",
524 ],
525
526 static_libs: [
527 "libm",
528 "libc",
529 "libc++_static",
530 "libdl",
531 "libtinyxml2",
532 "liblog",
533 "libbase",
Josh Gao2a3b4fa2016-10-26 17:55:49 -0700534 "libdebuggerd_handler",
Colin Cross2722ebb2016-07-11 16:20:06 -0700535 ],
536
537 static_executable: true,
538 stl: "libc++_static",
539
540 // libc and libc++ both define std::nothrow. libc's is a private symbol, but this
541 // still causes issues when linking libc.a and libc++.a, since private isn't
542 // effective until it has been linked. To fix this, just allow multiple symbol
543 // definitions for the static tests.
544 ldflags: ["-Wl,--allow-multiple-definition"],
545}
546
547// -----------------------------------------------------------------------------
548// Tests to run on the host and linked against glibc. Run with:
549// cd bionic/tests; mm bionic-unit-tests-glibc-run
550// -----------------------------------------------------------------------------
551
552cc_test_host {
553 name: "bionic-unit-tests-glibc",
554 defaults: ["bionic_tests_defaults"],
555
556 srcs: [
557 "atexit_test.cpp",
Dimitry Ivanov708589f2016-09-19 10:50:28 -0700558 "dlfcn_symlink_support.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700559 "dlfcn_test.cpp",
560 "dl_test.cpp",
561 "pthread_dlfcn_test.cpp",
562 ],
563
564 shared_libs: [
565 "libdl_preempt_test_1",
566 "libdl_preempt_test_2",
567
568 "libdl_test_df_1_global",
569 ],
570
571 whole_static_libs: [
572 "libBionicStandardTests",
573 "libBionicGtestMain",
Colin Cross2722ebb2016-07-11 16:20:06 -0700574 "libfortify1-tests-clang",
575 "libfortify2-tests-clang",
576 ],
577
578 static_libs: [
579 "libbase",
580 "liblog",
581 "libcutils",
582 ],
583
584 host_ldlibs: [
585 "-lresolv",
586 "-lrt",
587 "-ldl",
588 "-lutil",
589 ],
590
591 include_dirs: ["bionic/libc"],
592
Dimitry Ivanovd0b5c3a2016-11-25 12:23:11 -0800593 ldflags: [
594 "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs",
595 "-Wl,--export-dynamic",
596 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700597
598 sanitize: {
599 never: false,
600 },
601}
602
603subdirs = ["libs"]