blob: 8be95e4659b4ed3fc3c1d0ee51c13f9d9dafce7e [file] [log] [blame]
Colin Cross45c0d712019-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",
Roland Levillain7103a892019-06-05 18:26:44 +01009 suffix: "32",
Colin Cross45c0d712019-03-28 22:31:35 -070010 },
11 lib64: {
12 version_script: ":art_sigchain_version_script64.txt",
Roland Levillain7103a892019-06-05 18:26:44 +010013 suffix: "64",
Colin Cross45c0d712019-03-28 22:31:35 -070014 },
15 },
16
17 ldflags: ["-Wl,--export-dynamic"],
18
19 shared_libs: [
20 "libandroid_runtime",
21 "libbinder",
22 "libcutils",
23 "libdl",
Steven Morelandef6a7da2019-06-17 15:23:41 -070024 "libhidlbase",
Colin Cross45c0d712019-03-28 22:31:35 -070025 "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}