1 LOCAL_PATH:= $(call my-dir)
3 app_process_common_shared_libs := \
13 # This is a list of libraries that need to be included in order to avoid
14 # bad apps. This prevents a library from having a mismatch when resolving
15 # new/delete from an app shared library.
16 # See b/21032018 for more details.
17 app_process_common_shared_libs += \
20 app_process_common_static_libs := \
23 app_process_src_files := \
26 app_process_cflags := \
27 -Wall -Werror -Wunused -Wunreachable-code
29 app_process_ldflags_32 := \
30 -Wl,--version-script,art/sigchainlib/version-script32.txt -Wl,--export-dynamic
31 app_process_ldflags_64 := \
32 -Wl,--version-script,art/sigchainlib/version-script64.txt -Wl,--export-dynamic
36 LOCAL_SRC_FILES:= $(app_process_src_files)
38 LOCAL_LDFLAGS_32 := $(app_process_ldflags_32)
39 LOCAL_LDFLAGS_64 := $(app_process_ldflags_64)
41 LOCAL_SHARED_LIBRARIES := $(app_process_common_shared_libs)
43 LOCAL_WHOLE_STATIC_LIBRARIES := $(app_process_common_static_libs)
45 LOCAL_MODULE:= app_process
46 LOCAL_MULTILIB := both
47 LOCAL_MODULE_STEM_32 := app_process32
48 LOCAL_MODULE_STEM_64 := app_process64
50 LOCAL_CFLAGS += $(app_process_cflags)
52 # In SANITIZE_LITE mode, we create the sanitized binary in a separate location (but reuse
53 # the same module). Using the same module also works around an issue with make: binaries
54 # that depend on sanitized libraries will be relinked, even if they set LOCAL_SANITIZE := never.
56 # Also pull in the asanwrapper helper.
57 ifeq ($(SANITIZE_LITE),true)
58 LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan
59 LOCAL_REQUIRED_MODULES := asanwrapper
62 include $(BUILD_EXECUTABLE)
64 # Create a symlink from app_process to app_process32 or 64
65 # depending on the target configuration.
66 ifneq ($(SANITIZE_LITE),true)
67 include $(BUILD_SYSTEM)/executable_prefer_symlink.mk