summaryrefslogtreecommitdiffstats
path: root/V8Binding
diff options
context:
space:
mode:
authorAndrei Popescu <andreip@google.com>2009-08-03 13:16:56 +0100
committerAndrei Popescu <andreip@google.com>2009-08-03 16:04:26 +0100
commit917149bb7d8c49bb401a6e3740a1046168397bc4 (patch)
tree4bc6104959261a36b6f44a51f6f131a94a7bb945 /V8Binding
parent51c0d4c6b1b74fff7336d81451ba7d2fc132e31c (diff)
downloadexternal_webkit-917149bb7d8c49bb401a6e3740a1046168397bc4.zip
external_webkit-917149bb7d8c49bb401a6e3740a1046168397bc4.tar.gz
external_webkit-917149bb7d8c49bb401a6e3740a1046168397bc4.tar.bz2
Enable workers for V8
Diffstat (limited to 'V8Binding')
-rw-r--r--V8Binding/V8Binding.derived.mk20
1 files changed, 18 insertions, 2 deletions
diff --git a/V8Binding/V8Binding.derived.mk b/V8Binding/V8Binding.derived.mk
index 2c6d216..2bc0b46 100644
--- a/V8Binding/V8Binding.derived.mk
+++ b/V8Binding/V8Binding.derived.mk
@@ -158,7 +158,7 @@ js_binding_scripts := \
$(WEBCORE_PATH)/bindings/scripts/IDLStructure.pm \
$(LOCAL_PATH)/scripts/generate-bindings.pl
-FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 V8_BINDING ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1
+FEATURE_DEFINES := ANDROID_ORIENTATION_SUPPORT ENABLE_TOUCH_EVENTS=1 V8_BINDING ENABLE_DATABASE=1 ENABLE_OFFLINE_WEB_APPLICATIONS=1 ENABLE_DOM_STORAGE=1 ENABLE_WORKERS=1
ifeq ($(ENABLE_VIDEO), true)
FEATURE_DEFINES += ENaBLE_VIDEO=1
@@ -370,7 +370,8 @@ GEN := \
$(intermediates)/page/V8Navigator.h \
$(intermediates)/page/V8PositionError.h \
$(intermediates)/page/V8Screen.h \
- $(intermediates)/page/V8WebKitPoint.h
+ $(intermediates)/page/V8WebKitPoint.h \
+ $(intermediates)/page/V8WorkerNavigator.h
$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
$(GEN): $(intermediates)/page/V8%.h : $(WEBCORE_PATH)/page/%.idl $(js_binding_scripts)
$(transform-generated-source)
@@ -426,6 +427,21 @@ LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
# above rules. Specifying this explicitly makes -j2 work.
$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/storage/%.cpp : $(intermediates)/storage/%.h
+# Workers support
+GEN := \
+ $(intermediates)/workers/V8Worker.h \
+ $(intermediates)/workers/V8WorkerContext.h \
+ $(intermediates)/workers/V8WorkerLocation.h
+
+$(GEN): PRIVATE_CUSTOM_TOOL = SOURCE_ROOT=$(WEBCORE_PATH) perl -I$(v8binding_dir)/scripts -I$(WEBCORE_PATH)/bindings/scripts $(v8binding_dir)/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator V8 --include dom --include html --outputdir $(dir $@) $<
+$(GEN): $(intermediates)/workers/V8%.h : $(WEBCORE_PATH)/workers/%.idl $(js_binding_scripts)
+ $(transform-generated-source)
+LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
+
+# We also need the .cpp files, which are generated as side effects of the
+# above rules. Specifying this explicitly makes -j2 work.
+$(patsubst %.h,%.cpp,$(GEN)): $(intermediates)/workers/%.cpp : $(intermediates)/workers/%.h
+
#new section for svg
ifeq ($(ENABLE_SVG), true)
GEN := \