blob: b9afe4024f6376fca0cc113926132cd5b8e1ebfb [file] [log] [blame]
Mike Lockwoode0e9e942012-10-24 11:52:57 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5 app_main.cpp
6
7LOCAL_SHARED_LIBRARIES := \
8 libcutils \
9 libutils \
Ying Wangd6858942013-04-09 21:54:12 -070010 liblog \
Mike Lockwoode0e9e942012-10-24 11:52:57 -070011 libbinder \
Andreas Huber9ae000c2014-02-13 17:22:33 +000012 libandroid_runtime
Mike Lockwoode0e9e942012-10-24 11:52:57 -070013
14LOCAL_MODULE:= app_process
15
16include $(BUILD_EXECUTABLE)
17
18
19# Build a variant of app_process binary linked with ASan runtime.
20# ARM-only at the moment.
21ifeq ($(TARGET_ARCH),arm)
22
23include $(CLEAR_VARS)
24
25LOCAL_SRC_FILES:= \
26 app_main.cpp
27
28LOCAL_SHARED_LIBRARIES := \
29 libcutils \
30 libutils \
Ying Wangd6858942013-04-09 21:54:12 -070031 liblog \
Mike Lockwoode0e9e942012-10-24 11:52:57 -070032 libbinder \
Andreas Huber9ae000c2014-02-13 17:22:33 +000033 libandroid_runtime
Mike Lockwoode0e9e942012-10-24 11:52:57 -070034
35LOCAL_MODULE := app_process__asan
36LOCAL_MODULE_TAGS := eng
37LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan
38LOCAL_MODULE_STEM := app_process
39LOCAL_ADDRESS_SANITIZER := true
40
41include $(BUILD_EXECUTABLE)
42
43endif # ifeq($(TARGET_ARCH),arm)