Colin Cross | 45c0d71 | 2019-03-28 22:31:35 -0700 | [diff] [blame] | 1 | cc_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 Levillain | 7103a89 | 2019-06-05 18:26:44 +0100 | [diff] [blame] | 9 | suffix: "32", |
Colin Cross | 45c0d71 | 2019-03-28 22:31:35 -0700 | [diff] [blame] | 10 | }, |
| 11 | lib64: { |
| 12 | version_script: ":art_sigchain_version_script64.txt", |
Roland Levillain | 7103a89 | 2019-06-05 18:26:44 +0100 | [diff] [blame] | 13 | suffix: "64", |
Colin Cross | 45c0d71 | 2019-03-28 22:31:35 -0700 | [diff] [blame] | 14 | }, |
| 15 | }, |
| 16 | |
| 17 | ldflags: ["-Wl,--export-dynamic"], |
| 18 | |
| 19 | shared_libs: [ |
| 20 | "libandroid_runtime", |
| 21 | "libbinder", |
| 22 | "libcutils", |
| 23 | "libdl", |
Steven Moreland | ef6a7da | 2019-06-17 15:23:41 -0700 | [diff] [blame] | 24 | "libhidlbase", |
Colin Cross | 45c0d71 | 2019-03-28 22:31:35 -0700 | [diff] [blame] | 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 | } |