diff options
author | Ben Murdoch <benm@google.com> | 2010-09-13 10:40:13 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-09-13 10:40:13 -0700 |
commit | 9149fda254e7ff835dfcd93d8d7a5b3521a788d9 (patch) | |
tree | 86e789709760d6a28457f42798bef401e246793a /Android.mk | |
parent | 43df208144c6a77abc560712195027cbc13ce9de (diff) | |
parent | d0fc68897b5a7379951aaa5d50f0802dbe9e00d4 (diff) | |
download | external_webkit-9149fda254e7ff835dfcd93d8d7a5b3521a788d9.zip external_webkit-9149fda254e7ff835dfcd93d8d7a5b3521a788d9.tar.gz external_webkit-9149fda254e7ff835dfcd93d8d7a5b3521a788d9.tar.bz2 |
Merge "Initial autofill changes in libwebcore."
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -101,6 +101,20 @@ ifneq ($(HTTP_STACK),chrome) endif endif +# Read the environment variable to determine if Autofill is enabled. +# The default is off. Chrome HTTP stack must be used when Autofill +# is turned on. + +ifneq ($(ENABLE_AUTOFILL),true) + ENABLE_AUTOFILL=false +endif + +ifneq ($(HTTP_STACK),chrome) + ifeq ($(ENABLE_AUTOFILL),true) + ENABLE_AUTOFILL = false + endif +endif + BASE_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -218,6 +232,16 @@ LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \ $(base_intermediates)/WebCore/html \ $(base_intermediates)/WebCore/platform +# The following includes are needed by the AutoFill feature. +LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES) \ + $(LOCAL_PATH)/WebKit/chromium \ + $(LOCAL_PATH)/WebKit/chromium/public \ + external/chromium/chrome/browser \ + external/chromium/chrome/renderer \ + external/chromium/android \ + external/chromium/chrome \ + external/skia + ifeq ($(JAVASCRIPT_ENGINE),v8) # Include WTF source file. d := JavaScriptCore @@ -364,6 +388,10 @@ LOCAL_STATIC_LIBRARIES += libchromium_net LOCAL_SHARED_LIBRARIES += libcrypto libssl libz endif # HTTP_STACK == chrome +ifeq ($(ENABLE_AUTOFILL),true) +LOCAL_SHARED_LIBRARIES += libexpat +endif + # Redefine LOCAL_SRC_FILES to be all the WebKit source files LOCAL_SRC_FILES := $(WEBKIT_SRC_FILES) @@ -428,6 +456,19 @@ LOCAL_C_INCLUDES := $(WEBKIT_C_INCLUDES) LOCAL_PATH := $(BASE_PATH) LOCAL_SRC_FILES := \ WebKit/android/jni/WebCoreJniOnLoad.cpp + +ifeq ($(ENABLE_AUTOFILL),true) +# AutoFill requires some cpp files from Chromium to link with +# libchromium_net. We cannot compile them into libchromium_net +# because they have cpp file extensions, not .cc. +LOCAL_CFLAGS += -DWEBKIT_IMPLEMENTATION=1 +LOCAL_SRC_FILES += \ + WebKit/android/WebCoreSupport/autofill/MainThreadProxy.cpp \ + WebKit/chromium/src/WebCString.cpp \ + WebKit/chromium/src/WebRegularExpression.cpp \ + WebKit/chromium/src/WebString.cpp +endif + # Do this dependency by hand. The reason we have to do this is because the # headers that this file pulls in are generated during the build of webcore. # We make all of our object files depend on those files so that they are built |