summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2012-05-24 12:57:07 -0700
committerSelim Gurun <sgurun@google.com>2012-05-24 12:57:07 -0700
commitdd880e0f3060b689aeaee5c28902f144812237f6 (patch)
treeb49a491098ebafc93595e44002b84a10d5aa9365 /Android.mk
parent1805ecfa9d1149489cecee2c07060f5aedba4aec (diff)
downloadexternal_webkit-dd880e0f3060b689aeaee5c28902f144812237f6.zip
external_webkit-dd880e0f3060b689aeaee5c28902f144812237f6.tar.gz
external_webkit-dd880e0f3060b689aeaee5c28902f144812237f6.tar.bz2
Modify makefile for building for ASAN
Change-Id: Iaeca0893acb9df9c919f3b72c03ff99745ab4e82
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 61bd467..f3e9fad 100644
--- a/Android.mk
+++ b/Android.mk
@@ -333,6 +333,11 @@ WEBKIT_LDLIBS := $(LOCAL_LDLIBS)
WEBKIT_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES)
WEBKIT_STATIC_LIBRARIES := $(LOCAL_STATIC_LIBRARIES)
+ifneq ($(strip $(WITH_ADDRESS_SANITIZER)),)
+ LOCAL_MODULE_PATH := $(TARGET_OUT_STATIC_LIBRARIES)/asan
+ LOCAL_ADDRESS_SANITIZER := true
+endif
+
# Build the library all at once
include $(BUILD_STATIC_LIBRARY)
@@ -374,6 +379,12 @@ endif
# We make all of our object files depend on those files so that they are built
# before we try to compile the file.
LOCAL_ADDITIONAL_DEPENDENCIES := $(filter %.h, $(WEBKIT_GENERATED_SOURCES))
+
+ifneq ($(strip $(WITH_ADDRESS_SANITIZER)),)
+ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/asan
+ LOCAL_ADDRESS_SANITIZER := true
+endif
+
include $(BUILD_SHARED_LIBRARY)
# Build the wds client