summaryrefslogtreecommitdiffstats
path: root/WebCore/Android.derived.mk
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-08-25 10:59:55 +0100
committerSteve Block <steveblock@google.com>2010-08-25 12:02:14 +0100
commit734a2cd65c426074c10e2d6d01a7cc3b67d1cdaf (patch)
treed0fc86f812e2ba8113349374472c37d0dacef96b /WebCore/Android.derived.mk
parent0453edb7474af5b58da81dff91562c32b7fd9d0d (diff)
downloadexternal_webkit-734a2cd65c426074c10e2d6d01a7cc3b67d1cdaf.zip
external_webkit-734a2cd65c426074c10e2d6d01a7cc3b67d1cdaf.tar.gz
external_webkit-734a2cd65c426074c10e2d6d01a7cc3b67d1cdaf.tar.bz2
Copy WebKit python files to intermediates directory for build
This prevents the generation of Python bytecode files in the source directory. Note that Python's -B option to suppress generation of these files is not supported until Python 2.6. Change-Id: Ie0bee31d00d921daf0184109c27719345e568302
Diffstat (limited to 'WebCore/Android.derived.mk')
-rw-r--r--WebCore/Android.derived.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebCore/Android.derived.mk b/WebCore/Android.derived.mk
index 821d3a2..8fb10b6 100644
--- a/WebCore/Android.derived.mk
+++ b/WebCore/Android.derived.mk
@@ -71,8 +71,13 @@ $(intermediates)/html/HTMLDocument.o : $(GEN)
GEN := $(intermediates)/html/HTMLEntityTable.cpp
$(GEN): SCRIPT := $(LOCAL_PATH)/../WebKitTools/Scripts/create-html-entity-table
-$(GEN): PRIVATE_CUSTOM_TOOL = $(SCRIPT) -o $@ $<
+$(GEN): WEBKITPY_RESOURCES_DIRECTORY := $(LOCAL_PATH)/../WebKitTools/Scripts/webkitpy
+$(GEN): PRIVATE_CUSTOM_TOOL = $(dir $@)$(notdir $(SCRIPT)) -o $@ $<
$(GEN): $(LOCAL_PATH)/html/HTMLEntityNames.json
+ @echo "Generating HTMLEntityTable.cpp"
+ @mkdir -p $(dir $@)
+ @cp -f $(SCRIPT) $(dir $@)
+ @cp -rf $(WEBKITPY_RESOURCES_DIRECTORY) $(dir $@)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)