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:= \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 6 | app_main.cpp |
Dmitriy Ivanov | 96e0cfa | 2014-10-07 13:34:42 -0700 | [diff] [blame] | 7 | |
| 8 | LOCAL_LDFLAGS := -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 9 | |
| 10 | LOCAL_SHARED_LIBRARIES := \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 11 | libdl \ |
| 12 | libcutils \ |
| 13 | libutils \ |
| 14 | liblog \ |
| 15 | libbinder \ |
| 16 | libandroid_runtime |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 17 | |
Dmitriy Ivanov | 5ba317c | 2014-10-20 14:14:39 -0700 | [diff] [blame] | 18 | LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain |
| 19 | |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 20 | LOCAL_MODULE:= app_process |
Colin Cross | f130f0a | 2014-03-27 10:20:29 -0700 | [diff] [blame] | 21 | LOCAL_MULTILIB := both |
Yongqin Liu | 559484e | 2014-05-06 23:30:40 +0800 | [diff] [blame] | 22 | LOCAL_MODULE_STEM_32 := app_process32 |
Colin Cross | f130f0a | 2014-03-27 10:20:29 -0700 | [diff] [blame] | 23 | LOCAL_MODULE_STEM_64 := app_process64 |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 24 | |
| 25 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
| 26 | |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 27 | include $(BUILD_EXECUTABLE) |
| 28 | |
Yongqin Liu | 559484e | 2014-05-06 23:30:40 +0800 | [diff] [blame] | 29 | # Create a symlink from app_process to app_process32 or 64 |
| 30 | # depending on the target configuration. |
| 31 | include $(BUILD_SYSTEM)/executable_prefer_symlink.mk |
| 32 | |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 33 | # Build a variant of app_process binary linked with ASan runtime. |
| 34 | # ARM-only at the moment. |
| 35 | ifeq ($(TARGET_ARCH),arm) |
| 36 | |
| 37 | include $(CLEAR_VARS) |
| 38 | |
| 39 | LOCAL_SRC_FILES:= \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 40 | app_main.cpp |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 41 | |
| 42 | LOCAL_SHARED_LIBRARIES := \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 43 | libcutils \ |
| 44 | libutils \ |
| 45 | liblog \ |
| 46 | libbinder \ |
| 47 | libandroid_runtime |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 48 | |
Dmitriy Ivanov | 5ba317c | 2014-10-20 14:14:39 -0700 | [diff] [blame] | 49 | LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain |
| 50 | |
Dmitriy Ivanov | 96e0cfa | 2014-10-07 13:34:42 -0700 | [diff] [blame] | 51 | LOCAL_LDFLAGS := -ldl -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic |
Dmitriy Ivanov | 5ba317c | 2014-10-20 14:14:39 -0700 | [diff] [blame] | 52 | LOCAL_CPPFLAGS := -std=c++11 |
Dmitriy Ivanov | 96e0cfa | 2014-10-07 13:34:42 -0700 | [diff] [blame] | 53 | |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 54 | LOCAL_MODULE := app_process__asan |
| 55 | LOCAL_MODULE_TAGS := eng |
| 56 | LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan |
| 57 | LOCAL_MODULE_STEM := app_process |
| 58 | LOCAL_ADDRESS_SANITIZER := true |
| 59 | |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 60 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
| 61 | |
Mike Lockwood | e0e9e94 | 2012-10-24 11:52:57 -0700 | [diff] [blame] | 62 | include $(BUILD_EXECUTABLE) |
| 63 | |
| 64 | endif # ifeq($(TARGET_ARCH),arm) |