blob: d4b5a2aa1c0f90f8b4bf0503c2f769667ffa2d7f [file] [log] [blame]
Christopher Ferrisd6a1dc22018-02-07 18:42:14 -08001// ==============================================================
2// libc_malloc_hooks.so
3// ==============================================================
4cc_library {
5 name: "libc_malloc_hooks",
6
7 srcs: [
8 "malloc_hooks.cpp",
9 ],
10
11 static_libs: [
12 "libasync_safe",
13 ],
14
15 multilib: {
16 lib32: {
17 version_script: "exported32.map",
18 },
19 lib64: {
20 version_script: "exported64.map",
21 },
22 },
23 include_dirs: ["bionic/libc"],
24
25 sanitize: {
26 never: true,
27 },
28 native_coverage: false,
29
30 cflags: [
31 "-Wall",
32 "-Werror",
33 "-fno-stack-protector",
34 ],
35}
36
37// ==============================================================
38// Unit Tests
39// ==============================================================
40cc_test {
41 name: "malloc_hooks_unit_tests",
42 multilib: {
43 lib32: {
44 suffix: "32",
45 },
46 lib64: {
47 suffix: "64",
48 },
49 },
50
51 srcs: [
52 "tests/malloc_hooks_tests.cpp",
53 ],
54
55 whole_static_libs: ["libc_malloc_hooks"],
56
57 shared_libs: ["libbase"],
58
59 local_include_dirs: ["tests"],
60 include_dirs: ["bionic/libc", "bionic"],
61
62 cflags: [
63 "-Wall",
64 "-Werror",
65 ],
66}