mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
auto merge of #690 : recrack/servo/webidl, r=jdm
FIX #648 PR again #662, need to fix Makefile.in I really want to use `$(Q)touch $@`. but, it is difficult to me. So i will fix them next time. Can i ? I need to study Makefile.
This commit is contained in:
commit
a71c1125ee
100 changed files with 38 additions and 8 deletions
20
Makefile.in
20
Makefile.in
|
@ -237,8 +237,14 @@ DONE_gfx = $(B)src/components/gfx/libgfx.dummy
|
|||
DEPS_gfx = $(CRATE_gfx) $(SRC_gfx) $(DONE_SUBMODULES) $(DONE_util) $(DONE_style) $(DONE_net) $(DONE_msg)
|
||||
|
||||
RFLAGS_script = $(strip $(CFG_RUSTC_FLAGS)) $(addprefix -L $(B)src/,$(DEPS_SUBMODULES)) -L $(B)src/components/util -L $(B)src/components/style -L $(B)src/components/net -L $(B)src/components/msg
|
||||
WEBIDL_script = $(call rwildcard,$(S)src/components/script/,*.webidl)
|
||||
AUTOGEN_SRC_script = $(patsubst %.webidl, %Binding.rs, $(WEBIDL_script))
|
||||
|
||||
BINDINGS_SRC = $(S)src/components/script/dom/bindings/codegen
|
||||
WEBIDLS_SRC = $(S)src/components/script/dom/webidls
|
||||
|
||||
WEBIDLS_script = $(call rwildcard, $(WEBIDLS_SRC), *.webidl)
|
||||
BINDINGS_script = $(patsubst %.webidl, %Binding.rs, $(WEBIDLS_script))
|
||||
AUTOGEN_SRC_script = $(foreach var, $(BINDINGS_script), $(subst $(WEBIDLS_SRC), $(BINDINGS_SRC), $(var)))
|
||||
|
||||
SRC_script = $(call rwildcard,$(S)src/components/script/,*.rs) $(AUTOGEN_SRC_script)
|
||||
CRATE_script = $(S)src/components/script/script.rc
|
||||
DONE_script = $(B)src/components/script/libscript.dummy
|
||||
|
@ -284,20 +290,18 @@ endef
|
|||
$(foreach lib_crate,$(SERVO_LIB_CRATES),\
|
||||
$(eval $(call DEF_LIB_CRATE_RULES,$(lib_crate))))
|
||||
|
||||
BINDINGS_SRC = $(S)/src/components/script/dom/bindings/codegen
|
||||
|
||||
CACHE_DIR = $(BINDINGS_SRC)/_cache
|
||||
|
||||
bindinggen_dependencies := $(addprefix $(BINDINGS_SRC)/, BindingGen.py Bindings.conf Configuration.py CodegenRust.py parser/WebIDL.py ParserResults.pkl)
|
||||
|
||||
$(AUTOGEN_SRC_script): %Binding.rs: $(bindinggen_dependencies) \
|
||||
%.webidl
|
||||
$(WEBIDLS_script)
|
||||
@$(call E, "Maybe generating $(shell basename $@)...")
|
||||
$(Q)PYTHONDONTWRITEBYTECODE=1 $(CFG_PYTHON2) $(BINDINGS_SRC)/pythonpath.py \
|
||||
-I$(BINDINGS_SRC)/parser -I$(BINDINGS_SRC)/ply \
|
||||
-D$(BINDINGS_SRC) \
|
||||
$(BINDINGS_SRC)/BindingGen.py rs \
|
||||
$(BINDINGS_SRC)/Bindings.conf $*Binding $*.webidl
|
||||
$(BINDINGS_SRC)/Bindings.conf $*Binding $(subst $(BINDINGS_SRC), $(WEBIDLS_SRC), $*.webidl)
|
||||
$(Q)touch $@
|
||||
|
||||
globalgen_dependencies := $(addprefix $(BINDINGS_SRC)/, GlobalGen.py Bindings.conf Configuration.py CodegenRust.py parser/WebIDL.py) $(CACHE_DIR)/.done
|
||||
|
@ -311,13 +315,13 @@ $(CACHE_DIR)/.done:
|
|||
@touch $@
|
||||
|
||||
$(BINDINGS_SRC)/ParserResults.pkl: $(globalgen_dependencies) \
|
||||
$(WEBIDL_script)
|
||||
$(WEBIDLS_script)
|
||||
$(Q)PYTHONDONTWRITEBYTECODE=1 $(CFG_PYTHON2) $(BINDINGS_SRC)/pythonpath.py \
|
||||
-I$(BINDINGS_SRC)/parser -I$(BINDINGS_SRC)/ply \
|
||||
-D$(BINDINGS_SRC) \
|
||||
$(BINDINGS_SRC)/GlobalGen.py $(BINDINGS_SRC)/Bindings.conf . \
|
||||
--cachedir=$(CACHE_DIR) \
|
||||
$(WEBIDL_script)
|
||||
$(WEBIDLS_script)
|
||||
|
||||
# Servo binaries
|
||||
|
||||
|
|
26
src/components/script/dom/webidls/DOMImplementation.webidl
Normal file
26
src/components/script/dom/webidls/DOMImplementation.webidl
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dom.spec.whatwg.org/#interface-domimplementation
|
||||
*
|
||||
* Copyright:
|
||||
* To the extent possible under law, the editors have waived all copyright and
|
||||
* related or neighboring rights to this work.
|
||||
*/
|
||||
|
||||
interface DOMImplementation {
|
||||
/*boolean hasFeature(DOMString feature,
|
||||
[TreatNullAs=EmptyString] DOMString version);*/
|
||||
[Creator, Throws]
|
||||
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
|
||||
DOMString systemId);
|
||||
/*[Throws]
|
||||
Document createDocument(DOMString? namespace,
|
||||
[TreatNullAs=EmptyString] DOMString qualifiedName,
|
||||
optional DocumentType? doctype = null);*/
|
||||
/*[Throws]
|
||||
Document createHTMLDocument(optional DOMString title);*/
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue