blob: d3875315b84e592919b7487b3deda55080e04397 [file] [log] [blame]
Colin Cross37d4c002019-03-28 22:31:35 -07001cc_binary {
2 name: "app_process",
3
4 srcs: ["app_main.cpp"],
5
6 multilib: {
7 lib32: {
8 version_script: ":art_sigchain_version_script32.txt",
9 stem: "app_process32",
10 },
11 lib64: {
12 version_script: ":art_sigchain_version_script64.txt",
13 stem: "app_process64",
14 },
15 },
16
17 ldflags: ["-Wl,--export-dynamic"],
18
19 shared_libs: [
20 "libandroid_runtime",
21 "libbinder",
22 "libcutils",
23 "libdl",
24 "libhwbinder",
25 "liblog",
26 "libnativeloader",
27 "libutils",
28
29 // This is a list of libraries that need to be included in order to avoid
30 // bad apps. This prevents a library from having a mismatch when resolving
31 // new/delete from an app shared library.
32 // See b/21032018 for more details.
33 "libwilhelm",
34 ],
35
36 whole_static_libs: ["libsigchain"],
37
38 compile_multilib: "both",
39
40 cflags: [
41 "-Wall",
42 "-Werror",
43 "-Wunused",
44 "-Wunreachable-code",
45 ],
46
47 // If SANITIZE_LITE is revived this will need:
48 //product_variables: {
49 // sanitize_lite: {
50 // // In SANITIZE_LITE mode, we create the sanitized binary in a separate location (but reuse
51 // // the same module). Using the same module also works around an issue with make: binaries
52 // // that depend on sanitized libraries will be relinked, even if they set LOCAL_SANITIZE := never.
53 // //
54 // // Also pull in the asanwrapper helper.
55 // relative_install_path: "asan",
56 // required: ["asanwrapper"],
57 // },
58 //},
59
60 // Create a symlink from app_process to app_process32 or 64
61 // depending on the target configuration.
62 symlink_preferred_arch: true,
63}