1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_SRC_FILES:= \ 5 app_main.cpp 6 7 LOCAL_SHARED_LIBRARIES := \ 8 libcutils \ 9 libutils \ 10 libbinder \ 11 libandroid_runtime 12 13 LOCAL_MODULE:= app_process 14 15 include $(BUILD_EXECUTABLE) 16 17 18 # Build a variant of app_process binary linked with ASan runtime. 19 # ARM-only at the moment. 20 ifeq ($(TARGET_ARCH),arm) 21 22 include $(CLEAR_VARS) 23 24 LOCAL_SRC_FILES:= \ 25 app_main.cpp 26 27 LOCAL_SHARED_LIBRARIES := \ 28 libcutils \ 29 libutils \ 30 libbinder \ 31 libandroid_runtime 32 33 LOCAL_MODULE := app_process__asan 34 LOCAL_MODULE_TAGS := eng 35 LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan 36 LOCAL_MODULE_STEM := app_process 37 LOCAL_ADDRESS_SANITIZER := true 38 39 include $(BUILD_EXECUTABLE) 40 41 endif # ifeq($(TARGET_ARCH),arm) 42