Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
Colin Cross | 2764fce | 2014-03-19 17:47:39 -0700 | [diff] [blame] | 2 | |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_SRC_FILES:= \ |
| 6 | app_main.cpp |
| 7 | |
| 8 | LOCAL_SHARED_LIBRARIES := \ |
| 9 | libcutils \ |
| 10 | libutils \ |
Ying Wang | d685894 | 2013-04-09 21:54:12 -0700 | [diff] [blame] | 11 | liblog \ |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 12 | libbinder \ |
| 13 | libandroid_runtime |
| 14 | |
| 15 | LOCAL_MODULE:= app_process |
Colin Cross | f130f0a | 2014-03-27 10:20:29 -0700 | [diff] [blame] | 16 | LOCAL_MULTILIB := both |
Yongqin Liu | 559484e | 2014-05-06 23:30:40 +0800 | [diff] [blame] | 17 | LOCAL_MODULE_STEM_32 := app_process32 |
Colin Cross | f130f0a | 2014-03-27 10:20:29 -0700 | [diff] [blame] | 18 | LOCAL_MODULE_STEM_64 := app_process64 |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 19 | include $(BUILD_EXECUTABLE) |
| 20 | |
Yongqin Liu | 559484e | 2014-05-06 23:30:40 +0800 | [diff] [blame] | 21 | # Create a symlink from app_process to app_process32 or 64 |
| 22 | # depending on the target configuration. |
| 23 | include $(BUILD_SYSTEM)/executable_prefer_symlink.mk |
| 24 | |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 25 | # Build a variant of app_process binary linked with ASan runtime. |
| 26 | # ARM-only at the moment. |
| 27 | ifeq ($(TARGET_ARCH),arm) |
| 28 | |
| 29 | include $(CLEAR_VARS) |
| 30 | |
| 31 | LOCAL_SRC_FILES:= \ |
| 32 | app_main.cpp |
| 33 | |
| 34 | LOCAL_SHARED_LIBRARIES := \ |
| 35 | libcutils \ |
| 36 | libutils \ |
Ying Wang | d685894 | 2013-04-09 21:54:12 -0700 | [diff] [blame] | 37 | liblog \ |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 38 | libbinder \ |
| 39 | libandroid_runtime |
| 40 | |
| 41 | LOCAL_MODULE := app_process__asan |
| 42 | LOCAL_MODULE_TAGS := eng |
| 43 | LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan |
| 44 | LOCAL_MODULE_STEM := app_process |
| 45 | LOCAL_ADDRESS_SANITIZER := true |
| 46 | |
| 47 | include $(BUILD_EXECUTABLE) |
| 48 | |
| 49 | endif # ifeq($(TARGET_ARCH),arm) |