+INSPECTOR_GENERATOR_SCRIPTS = \
+ $(JavaScriptCore)/inspector/scripts/codegen/__init__.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/cpp_generator_templates.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/cpp_generator.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generate_cpp_backend_dispatcher_header.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generate_cpp_backend_dispatcher_implementation.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_header.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generate_cpp_frontend_dispatcher_implementation.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generate_cpp_protocol_types_header.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generate_cpp_protocol_types_implementation.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generate_js_backend_commands.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generator_templates.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/generator.py \
+ $(JavaScriptCore)/inspector/scripts/codegen/models.py \
+ $(JavaScriptCore)/inspector/scripts/generate-combined-inspector-json.py \
+ $(JavaScriptCore)/inspector/scripts/generate-inspector-protocol-bindings.py \
+#
+
+all : \
+ CombinedDomains.json \
+ InspectorFrontendDispatchers.h \
+ InjectedScriptSource.h \
+#
+
+# The combined JSON file depends on the actual set of domains and their file contents, so that
+# adding, modifying, or removing domains will trigger regeneration of inspector files.
+
+.PHONY: force
+EnabledInspectorDomains : $(JavaScriptCore)/UpdateContents.py force
+ $(PYTHON) $(JavaScriptCore)/UpdateContents.py '$(INSPECTOR_DOMAINS)' $@
+
+CombinedDomains.json : inspector/scripts/generate-combined-inspector-json.py $(INSPECTOR_DOMAINS) EnabledInspectorDomains
+ $(PYTHON) $(JavaScriptCore)/inspector/scripts/generate-combined-inspector-json.py $(INSPECTOR_DOMAINS) > ./CombinedDomains.json
+
+# Inspector Backend Dispatchers, Frontend Dispatchers, Type Builders
+InspectorFrontendDispatchers.h : CombinedDomains.json $(INSPECTOR_GENERATOR_SCRIPTS)
+ $(PYTHON) $(JavaScriptCore)/inspector/scripts/generate-inspector-protocol-bindings.py --framework JavaScriptCore --outputDir . ./CombinedDomains.json
+
+InjectedScriptSource.h : inspector/InjectedScriptSource.js $(JavaScriptCore)/inspector/scripts/jsmin.py $(JavaScriptCore)/inspector/scripts/xxd.pl
+ echo "//# sourceURL=__WebInspectorInjectedScript__" > ./InjectedScriptSource.min.js
+ $(PYTHON) $(JavaScriptCore)/inspector/scripts/jsmin.py < $(JavaScriptCore)/inspector/InjectedScriptSource.js >> ./InjectedScriptSource.min.js
+ $(PERL) $(JavaScriptCore)/inspector/scripts/xxd.pl InjectedScriptSource_js ./InjectedScriptSource.min.js InjectedScriptSource.h
+ $(DELETE) InjectedScriptSource.min.js
+
+# Web Replay inputs generator
+
+INPUT_GENERATOR_SCRIPTS = \
+ $(JavaScriptCore)/replay/scripts/CodeGeneratorReplayInputs.py \
+ $(JavaScriptCore)/replay/scripts/CodeGeneratorReplayInputsTemplates.py \
+#
+
+INPUT_GENERATOR_SPECIFICATIONS = \
+ $(JavaScriptCore)/replay/JSInputs.json \
+#