blob: 084d3932933d6821a4e4f63ccc1854608fcb2160 [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",
Elliott Hughes02fdd052017-07-06 10:33:15 -0700137 "sys_ttydefaults_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700138 "sys_types_test.cpp",
139 "sys_uio_test.cpp",
140 "sys_vfs_test.cpp",
141 "sys_xattr_test.cpp",
142 "system_properties_test.cpp",
Dimitry Ivanov16b2a4d2017-01-24 20:43:29 +0000143 "system_properties_test2.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700144 "time_test.cpp",
145 "uchar_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700146 "unistd_nofortify_test.cpp",
147 "unistd_test.cpp",
148 "utmp_test.cpp",
149 "wchar_test.cpp",
150 "wctype_test.cpp",
151 ],
152
153 include_dirs: [
154 "bionic/libc",
155 "external/tinyxml2",
156 ],
157
Christopher Ferris7a3681e2017-04-24 17:48:32 -0700158 target: {
159 android: {
160 whole_static_libs: ["libasync_safe"],
161 },
162 },
163
Dan Willemsen41567702016-08-31 16:35:01 -0700164 static_libs: [
165 "libtinyxml2",
166 "liblog",
167 "libbase",
168 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700169 host_ldlibs: ["-lrt"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700170 shared: {
171 enabled: false,
172 },
Elliott Hughes3f6eee92016-12-13 23:47:25 +0000173
174 generated_headers: ["generated_android_ids"],
Colin Cross2722ebb2016-07-11 16:20:06 -0700175}
176
177// -----------------------------------------------------------------------------
178// Fortify tests.
179// -----------------------------------------------------------------------------
180
181cc_defaults {
182 name: "bionic_fortify_tests_defaults",
183 cflags: [
184 "-Wno-error",
185 "-U_FORTIFY_SOURCE",
186 ],
187 srcs: ["fortify_test_main.cpp"],
188 target: {
189 host: {
190 clang_cflags: ["-D__clang__"],
191 },
192 },
193}
194
195cc_test_library {
Colin Cross2722ebb2016-07-11 16:20:06 -0700196 name: "libfortify1-tests-clang",
197 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
198 clang: true,
199 cflags: [
200 "-D_FORTIFY_SOURCE=1",
201 "-DTEST_NAME=Fortify1_clang"
202 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700203 shared: {
204 enabled: false,
205 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700206}
207
208cc_test_library {
209 name: "libfortify2-tests-clang",
210 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
211 clang: true,
212 cflags: [
213 "-D_FORTIFY_SOURCE=2",
214 "-DTEST_NAME=Fortify2_clang"
215 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700216 shared: {
217 enabled: false,
218 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700219}
220
221// -----------------------------------------------------------------------------
222// Library of all tests (excluding the dynamic linker tests).
223// -----------------------------------------------------------------------------
224cc_test_library {
225 name: "libBionicTests",
226 defaults: ["bionic_tests_defaults"],
227 whole_static_libs: [
228 "libBionicStandardTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700229 "libfortify1-tests-clang",
230 "libfortify2-tests-clang",
231 ],
Dan Willemsen41567702016-08-31 16:35:01 -0700232 shared: {
233 enabled: false,
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700234 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700235}
236
237// -----------------------------------------------------------------------------
238// Library of bionic customized gtest main function, with simplified output format.
239// -----------------------------------------------------------------------------
240cc_test_library {
241 name: "libBionicGtestMain",
242 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700243 srcs: [
244 "gtest_main.cpp",
245 "gtest_globals.cpp",
246 ],
247 static_libs: [
248 "libbase",
249 ],
250 include_dirs: [
251 "bionic/libc",
252 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700253 target: {
254 darwin: {
255 enabled: true,
256 },
257 },
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700258 shared: {
259 enabled: false,
260 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700261}
262
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700263cc_test_library {
264 name: "libBionicLoaderTests",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800265 defaults: ["bionic_tests_defaults", "llvm-defaults"],
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700266 srcs: [
267 "atexit_test.cpp",
268 "dl_test.cpp",
Dimitry Ivanov708589f2016-09-19 10:50:28 -0700269 "dlfcn_symlink_support.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700270 "dlfcn_test.cpp",
Elliott Hughes7c10abb2017-04-21 17:15:41 -0700271 "link_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700272 "pthread_dlfcn_test.cpp",
273 ],
274 static_libs: [
275 "libbase",
276 ],
277 include_dirs: [
278 "bionic/libc",
279 ],
280 shared: {
281 enabled: false,
282 },
283 target: {
284 android: {
285 srcs: [
Evgenii Stepanov0a3637d2016-07-06 13:20:59 -0700286 "cfi_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700287 "dlext_test.cpp",
288 "libdl_test.cpp",
289 ],
290 static_libs: [
291 "libpagemap",
Andreas Gampeb9797fe2017-07-05 22:36:20 -0700292 "libziparchive",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800293 "libLLVMObject",
294 "libLLVMBitReader",
295 "libLLVMMC",
296 "libLLVMMCParser",
297 "libLLVMCore",
298 "libLLVMSupport",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700299 ],
300 }
Jiyong Park02586a22017-05-20 01:01:24 +0900301 },
302
303 product_variables: {
304 debuggable: {
305 cppflags: ["-DUSE_LD_CONFIG_FILE"],
306 },
307 },
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700308}
309
Colin Cross2722ebb2016-07-11 16:20:06 -0700310// -----------------------------------------------------------------------------
311// Library of bionic customized gtest main function, with normal gtest output format,
312// which is needed by bionic cts test.
313// -----------------------------------------------------------------------------
314cc_test_library {
315 name: "libBionicCtsGtestMain",
316 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700317 srcs: [
318 "gtest_main.cpp",
319 "gtest_globals_cts.cpp",
320 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700321 cppflags: ["-DUSING_GTEST_OUTPUT_FORMAT"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700322 shared: {
323 enabled: false,
324 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700325}
326
327// -----------------------------------------------------------------------------
328// Tests for the device using bionic's .so. Run with:
329// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests32
330// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests64
331// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc32
332// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc64
333// -----------------------------------------------------------------------------
334cc_defaults {
335 name: "bionic_unit_tests_defaults",
336 host_supported: false,
337
338 whole_static_libs: [
339 "libBionicTests",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700340 "libBionicLoaderTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700341 "libBionicGtestMain",
342 ],
343
344 static_libs: [
345 "libtinyxml2",
346 "liblog",
347 "libbase",
348 ],
349
350 srcs: [
351 // TODO: Include __cxa_thread_atexit_test.cpp to glibc tests once it is upgraded (glibc 2.18+)
Colin Cross2722ebb2016-07-11 16:20:06 -0700352 "__cxa_thread_atexit_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700353 "thread_local_test.cpp",
354 ],
355
356 conlyflags: [
357 "-fexceptions",
358 "-fnon-call-exceptions",
359 ],
360
361 ldflags: ["-Wl,--export-dynamic"],
362
363 include_dirs: ["bionic/libc"],
364
Yabin Cui1f553ea2017-01-13 12:31:59 -0800365 stl: "libc++_static",
366
Colin Cross2722ebb2016-07-11 16:20:06 -0700367 target: {
368 android: {
369 shared_libs: [
370 "libdl",
Colin Cross2722ebb2016-07-11 16:20:06 -0700371 "libdl_preempt_test_1",
372 "libdl_preempt_test_2",
373 "libdl_test_df_1_global",
374 ],
375 static_libs: [
376 // The order of these libraries matters, do not shuffle them.
377 "libbase",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700378 "libpagemap",
Colin Cross2722ebb2016-07-11 16:20:06 -0700379 "libziparchive",
380 "libz",
381 "libutils",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800382 "libLLVMObject",
383 "libLLVMBitReader",
384 "libLLVMMC",
385 "libLLVMMCParser",
386 "libLLVMCore",
387 "libLLVMSupport",
Colin Cross2722ebb2016-07-11 16:20:06 -0700388 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700389 ldflags: [
Colin Cross7b294952016-09-29 14:08:13 -0700390 "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs",
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700391 "-Wl,--enable-new-dtags",
392 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700393 },
394 }
395}
396
397cc_test {
398 name: "bionic-unit-tests",
399 defaults: ["bionic_unit_tests_defaults", "bionic_tests_defaults"],
400 clang: true,
Elliott Hughesa57ca0d2016-11-17 18:18:08 -0800401
402 target: {
403 android: {
404 shared_libs: ["libicuuc"],
405 },
406 },
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700407
408 required: [
409 "cfi_test_helper",
410 "cfi_test_helper2",
411 "libtest_dt_runpath_a",
412 "libtest_dt_runpath_b",
413 "libtest_dt_runpath_c",
414 "libtest_dt_runpath_x",
415 "libatest_simple_zip",
416 "libcfi-test",
417 "libcfi-test-bad",
418 "libdlext_test_different_soname",
419 "libdlext_test_fd",
420 "libdlext_test_norelro",
421 "libdlext_test_runpath_zip_zipaligned",
422 "libdlext_test",
423 "libdlext_test_zip",
424 "libdlext_test_zip_zipaligned",
425 "libdl_preempt_test_1",
426 "libdl_preempt_test_2",
427 "libdl_test_df_1_global",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700428 "libgnu-hash-table-library",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700429 "libsysv-hash-table-library",
430 "libtest_atexit",
431 "libtest_check_order_dlsym_1_left",
432 "libtest_check_order_dlsym_2_right",
433 "libtest_check_order_dlsym_3_c",
434 "libtest_check_order_dlsym_a",
435 "libtest_check_order_dlsym_b",
436 "libtest_check_order_dlsym_d",
437 "libtest_check_order_dlsym",
438 "libtest_check_order_reloc_root_1",
439 "libtest_check_order_reloc_root_2",
440 "libtest_check_order_reloc_root",
441 "libtest_check_order_reloc_siblings_1",
442 "libtest_check_order_reloc_siblings_2",
443 "libtest_check_order_reloc_siblings_3",
444 "libtest_check_order_reloc_siblings_a",
445 "libtest_check_order_reloc_siblings_b",
446 "libtest_check_order_reloc_siblings_c_1",
447 "libtest_check_order_reloc_siblings_c_2",
448 "libtest_check_order_reloc_siblings_c",
449 "libtest_check_order_reloc_siblings_d",
450 "libtest_check_order_reloc_siblings_e",
451 "libtest_check_order_reloc_siblings_f",
452 "libtest_check_order_reloc_siblings",
453 "libtest_check_rtld_next_from_library",
454 "libtest_dlopen_from_ctor_main",
455 "libtest_dlopen_from_ctor",
456 "libtest_dlopen_weak_undefined_func",
457 "libtest_dlsym_df_1_global",
458 "libtest_dlsym_from_this_child",
459 "libtest_dlsym_from_this_grandchild",
460 "libtest_dlsym_from_this",
461 "libtest_dlsym_weak_func",
462 "libtest_dt_runpath_d",
463 "libtest_empty",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700464 "libtest_ifunc",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700465 "libtest_init_fini_order_child",
466 "libtest_init_fini_order_grand_child",
467 "libtest_init_fini_order_root2",
468 "libtest_init_fini_order_root",
469 "libtest_nodelete_1",
470 "libtest_nodelete_2",
471 "libtest_nodelete_dt_flags_1",
472 "libtest_pthread_atfork",
473 "libtest_relo_check_dt_needed_order_1",
474 "libtest_relo_check_dt_needed_order_2",
475 "libtest_relo_check_dt_needed_order",
476 "libtest_simple",
477 "libtest_two_parents_child",
478 "libtest_two_parents_parent1",
479 "libtest_two_parents_parent2",
480 "libtest_versioned_lib",
481 "libtest_versioned_libv1",
482 "libtest_versioned_libv2",
483 "libtest_versioned_otherlib_empty",
484 "libtest_versioned_otherlib",
485 "libtest_versioned_uselibv1",
486 "libtest_versioned_uselibv2_other",
487 "libtest_versioned_uselibv2",
488 "libtest_versioned_uselibv3_other",
489 "libtest_with_dependency_loop_a",
490 "libtest_with_dependency_loop_b",
491 "libtest_with_dependency_loop_c",
492 "libtest_with_dependency_loop",
493 "libtest_with_dependency",
494 "libtest_invalid-empty_shdr_table.so",
495 "libtest_invalid-rw_load_segment.so",
496 "libtest_invalid-unaligned_shdr_offset.so",
497 "libtest_invalid-zero_shdr_table_content.so",
498 "libtest_invalid-zero_shdr_table_offset.so",
499 "libtest_invalid-zero_shentsize.so",
500 "libtest_invalid-zero_shstrndx.so",
501 "libtest_invalid-textrels.so",
502 "libtest_invalid-textrels2.so",
503 "preinit_getauxval_test_helper",
504 "preinit_syscall_test_helper",
505 "libnstest_private_external",
506 "libnstest_dlopened",
507 "libnstest_private",
508 "libnstest_root_not_isolated",
509 "libnstest_root",
510 "libnstest_public",
511 "libnstest_public_internal",
512 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700513}
514
Colin Cross2722ebb2016-07-11 16:20:06 -0700515// -----------------------------------------------------------------------------
516// Tests for the device linked against bionic's static library. Run with:
517// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static32
518// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static64
519// -----------------------------------------------------------------------------
520cc_test {
521 name: "bionic-unit-tests-static",
522 defaults: ["bionic_tests_defaults"],
523 host_supported: false,
524
Dimitry Ivanov462ea662017-01-06 14:49:57 -0800525 srcs: [
526 "gtest_preinit_debuggerd.cpp",
527 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700528 whole_static_libs: [
529 "libBionicTests",
530 "libBionicGtestMain",
531 ],
532
533 static_libs: [
534 "libm",
535 "libc",
Colin Cross2722ebb2016-07-11 16:20:06 -0700536 "libdl",
537 "libtinyxml2",
538 "liblog",
539 "libbase",
Josh Gao2a3b4fa2016-10-26 17:55:49 -0700540 "libdebuggerd_handler",
Colin Cross2722ebb2016-07-11 16:20:06 -0700541 ],
542
543 static_executable: true,
544 stl: "libc++_static",
Colin Cross2722ebb2016-07-11 16:20:06 -0700545}
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 },
Jiyong Park02586a22017-05-20 01:01:24 +0900601
602 product_variables: {
603 debuggable: {
604 cppflags: ["-DUSE_LD_CONFIG_FILE"],
605 },
606 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700607}
608
609subdirs = ["libs"]