Generate a list of supported DOM APIs from parsed WebIDLs.

This commit is contained in:
Josh Matthews 2016-06-29 11:14:11 -04:00
parent 2df5d705e1
commit 3c2435a172
9 changed files with 113 additions and 12 deletions

View file

@ -18,7 +18,7 @@ bindinggen_dependencies := $(addprefix $(BINDINGS_SRC)/,BindingGen.py Bindings.c
globalgen_dependencies := $(addprefix $(BINDINGS_SRC)/,GlobalGen.py Bindings.conf Configuration.py CodegenRust.py parser/WebIDL.py) $(CACHE_DIR)/.done $(OUT_DIR)/Bindings/.done
.PHONY: all
.PHONY: all dom_docs
all: $(AUTOGEN_SRC)
$(OUT_DIR)/Bindings/.done:
@ -38,6 +38,16 @@ $(OUT_DIR)/ParserResults.pkl: $(globalgen_dependencies) $(WEBIDLS)
. \
$(WEBIDLS)
dom_docs: $(CACHE_DIR)/.done
$(PYTHON) \
$(BINDINGS_SRC)/GlobalGen.py \
--cachedir=$(CACHE_DIR) \
--only-html \
$(BINDINGS_SRC)/Bindings.conf \
$(OUT_DIR) \
. \
$(WEBIDLS)
$(AUTOGEN_SRC): $(OUT_DIR)/Bindings/%Binding.rs: $(bindinggen_dependencies) \
$(addprefix $(WEBIDLS_SRC)/,%.webidl)
$(PYTHON) \