diff options
Diffstat (limited to 'cmds/app_process/Android.mk')
-rw-r--r-- | cmds/app_process/Android.mk | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/cmds/app_process/Android.mk b/cmds/app_process/Android.mk index 397a7d1..ce6d7b5 100644 --- a/cmds/app_process/Android.mk +++ b/cmds/app_process/Android.mk @@ -3,17 +3,17 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ - app_main.cpp + app_main.cpp LOCAL_LDFLAGS := -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic LOCAL_SHARED_LIBRARIES := \ - libdl \ - libcutils \ - libutils \ - liblog \ - libbinder \ - libandroid_runtime + libdl \ + libcutils \ + libutils \ + liblog \ + libbinder \ + libandroid_runtime LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain @@ -21,6 +21,9 @@ LOCAL_MODULE:= app_process LOCAL_MULTILIB := both LOCAL_MODULE_STEM_32 := app_process32 LOCAL_MODULE_STEM_64 := app_process64 + +LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code + include $(BUILD_EXECUTABLE) # Create a symlink from app_process to app_process32 or 64 @@ -34,14 +37,14 @@ ifeq ($(TARGET_ARCH),arm) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ - app_main.cpp + app_main.cpp LOCAL_SHARED_LIBRARIES := \ - libcutils \ - libutils \ - liblog \ - libbinder \ - libandroid_runtime + libcutils \ + libutils \ + liblog \ + libbinder \ + libandroid_runtime LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain @@ -53,6 +56,9 @@ LOCAL_MODULE_TAGS := eng LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan LOCAL_MODULE_STEM := app_process LOCAL_ADDRESS_SANITIZER := true +LOCAL_CLANG := true + +LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code include $(BUILD_EXECUTABLE) |