summaryrefslogtreecommitdiffstats
path: root/WebCore/Android.derived.mk
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-09-10 19:21:43 +0100
committerBen Murdoch <benm@google.com>2010-09-13 15:40:15 +0100
commitd0fc68897b5a7379951aaa5d50f0802dbe9e00d4 (patch)
treecaae822138344fe325cee666aadd08a600df70f0 /WebCore/Android.derived.mk
parenta62761cdadec4e097c2dec84fb740e188e2a9f3a (diff)
downloadexternal_webkit-d0fc68897b5a7379951aaa5d50f0802dbe9e00d4.zip
external_webkit-d0fc68897b5a7379951aaa5d50f0802dbe9e00d4.tar.gz
external_webkit-d0fc68897b5a7379951aaa5d50f0802dbe9e00d4.tar.bz2
Initial autofill changes in libwebcore.
Initial checkin of WebKit source for enabling AutoFill on Android. This code calls into the chromium library to perform the autofill magic. There's still lots to do, but this and a corresponding change in external/chromium enable the feature (basically) end to end. The feature is disabled by default until we implement it more fully with some proper UI. To turn it on, set the ENABLE_AUTOFILL environment variable to "true" and rebuild. This is only useful for preliminary testing though as for now we use a precanned profile, which won't be relevant unless your name happens to be John Smith. Change-Id: I4a3e0e840617f7cf8f522af33ae1be560768a6c5
Diffstat (limited to 'WebCore/Android.derived.mk')
-rw-r--r--WebCore/Android.derived.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/WebCore/Android.derived.mk b/WebCore/Android.derived.mk
index e913a48..e2cf096 100644
--- a/WebCore/Android.derived.mk
+++ b/WebCore/Android.derived.mk
@@ -176,3 +176,51 @@ $(GEN): xlink_attrs := $(LOCAL_PATH)/svg/xlinkattrs.in
$(GEN): $(LOCAL_PATH)/dom/make_names.pl $(xlink_attrs)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)
+
+ifeq ($(ENABLE_AUTOFILL),true)
+# This is really ugly, but necessary. The following rules are taken from
+# external/chromium/Android.mk.
+# Chromium uses several third party libraries and headers that are already
+# present on Android, but in different include paths. Generate a set of
+# forwarding headers in the location that Chromium expects. We need to do
+# this in both the Chromium and WebCore projects because of the
+# WebKit <-> Chromium bindings which include headers from the Chromuim project.
+
+THIRD_PARTY = $(intermediates)/third_party
+CHROMIUM_SRC_DIR := $(LOCAL_PATH)/../../chromium
+SCRIPT := $(CHROMIUM_SRC_DIR)/android/generateAndroidForwardingHeader.pl
+
+GEN := $(THIRD_PARTY)/expat/files/lib/expat.h
+$(GEN): $(SCRIPT)
+$(GEN):
+ perl $(SCRIPT) $@ "lib/expat.h"
+LOCAL_GENERATED_SOURCES += $(GEN)
+
+GEN := $(THIRD_PARTY)/skia/include/core/SkBitmap.h
+$(GEN): $(SCRIPT)
+$(GEN):
+ perl $(SCRIPT) $@ "include/core/SkBitmap.h"
+LOCAL_GENERATED_SOURCES += $(GEN)
+
+GEN := $(THIRD_PARTY)/WebKit/WebKit/chromium/public/WebFormControlElement.h
+$(GEN): $(SCRIPT)
+$(GEN):
+ perl $(SCRIPT) $@ "public/WebFormControlElement.h"
+LOCAL_GENERATED_SOURCES += $(GEN)
+
+GEN := $(THIRD_PARTY)/WebKit/WebKit/chromium/public/WebRegularExpression.h
+$(GEN): $(SCRIPT)
+$(GEN):
+ perl $(SCRIPT) $@ "public/WebRegularExpression.h"
+LOCAL_GENERATED_SOURCES += $(GEN)
+
+GEN := $(THIRD_PARTY)/WebKit/WebKit/chromium/public/WebString.h
+$(GEN): $(SCRIPT)
+$(GEN):
+ perl $(SCRIPT) $@ "public/WebString.h"
+LOCAL_GENERATED_SOURCES += $(GEN)
+
+endif
+
+LOCAL_SRC_FILES += $(LOCAL_GENERATED_SOURCES)
+