1 LOCAL_PATH:= $(call my-dir) 2 3 # This is a list of libraries that need to be included in order to avoid 4 # bad apps. This prevents a library from having a mismatch when resolving 5 # new/delete from an app shared library. 6 # See b/21032018 for more details. 7 app_process_common_shared_libs := \ 8 libwilhelm \ 9 10 include $(CLEAR_VARS) 11 12 LOCAL_SRC_FILES:= \ 13 app_main.cpp 14 15 LOCAL_LDFLAGS := -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic 16 17 LOCAL_SHARED_LIBRARIES := \ 18 libdl \ 19 libcutils \ 20 libutils \ 21 liblog \ 22 libbinder \ 23 libnativeloader \ 24 libandroid_runtime \ 25 $(app_process_common_shared_libs) \ 26 27 LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain 28 29 LOCAL_MODULE:= app_process 30 LOCAL_MULTILIB := both 31 LOCAL_MODULE_STEM_32 := app_process32 32 LOCAL_MODULE_STEM_64 := app_process64 33 34 LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code 35 36 include $(BUILD_EXECUTABLE) 37 38 # Create a symlink from app_process to app_process32 or 64 39 # depending on the target configuration. 40 include $(BUILD_SYSTEM)/executable_prefer_symlink.mk 41 42 # Build a variant of app_process binary linked with ASan runtime. 43 # ARM-only at the moment. 44 ifeq ($(TARGET_ARCH),arm) 45 46 include $(CLEAR_VARS) 47 48 LOCAL_SRC_FILES:= \ 49 app_main.cpp 50 51 LOCAL_SHARED_LIBRARIES := \ 52 libcutils \ 53 libutils \ 54 liblog \ 55 libbinder \ 56 libandroid_runtime \ 57 $(app_process_common_shared_libs) \ 58 59 LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain 60 61 LOCAL_LDFLAGS := -ldl -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic 62 LOCAL_CPPFLAGS := -std=c++11 63 64 LOCAL_MODULE := app_process__asan 65 LOCAL_MULTILIB := both 66 LOCAL_MODULE_STEM_32 := app_process32 67 LOCAL_MODULE_STEM_64 := app_process64 68 69 LOCAL_SANITIZE := address 70 LOCAL_CLANG := true 71 LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan 72 73 LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code 74 75 include $(BUILD_EXECUTABLE) 76 77 endif # ifeq($(TARGET_ARCH),arm) 78