blob: f92502370566fe589db348052c8d29fd6b126d49 [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 "libhwbinder",
26 "liblog",
27 "libnativeloader",
28 "libutils",
29
30 // This is a list of libraries that need to be included in order to avoid
31 // bad apps. This prevents a library from having a mismatch when resolving
32 // new/delete from an app shared library.
33 // See b/21032018 for more details.
34 "libwilhelm",
35 ],
36
37 whole_static_libs: ["libsigchain"],
38
39 compile_multilib: "both",
40
41 cflags: [
42 "-Wall",
43 "-Werror",
44 "-Wunused",
45 "-Wunreachable-code",
46 ],
47
48 // If SANITIZE_LITE is revived this will need:
49 //product_variables: {
50 // sanitize_lite: {
51 // // In SANITIZE_LITE mode, we create the sanitized binary in a separate location (but reuse
52 // // the same module). Using the same module also works around an issue with make: binaries
53 // // that depend on sanitized libraries will be relinked, even if they set LOCAL_SANITIZE := never.
54 // //
55 // // Also pull in the asanwrapper helper.
56 // relative_install_path: "asan",
57 // required: ["asanwrapper"],
58 // },
59 //},
60
61 // Create a symlink from app_process to app_process32 or 64
62 // depending on the target configuration.
63 symlink_preferred_arch: true,
64}