diff options
Diffstat (limited to 'codegenerator.mk')
-rw-r--r-- | codegenerator.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/codegenerator.mk b/codegenerator.mk index 6689777d6d..02b08e5ca6 100644 --- a/codegenerator.mk +++ b/codegenerator.mk @@ -18,6 +18,11 @@ else DOXY_XML_PATH=$(GENDIR)/doxygenxml endif +GENERATED_JSON = $(INTERFACES_DIR)/json-rpc/ServiceDescription.h +ifeq ($(wildcard $(JSON_BUILDER)),) + JSON_BUILDER = tools/depends/native/JsonSchemaBuilder/JsonSchemaBuilder +endif + GENDIR = $(INTERFACES_DIR)/python/generated GROOVY_DIR = $(TOPDIR)/lib/groovy @@ -43,7 +48,7 @@ $(GENDIR)/%.xml: %.i $(SWIG) $(JAVA) $(GENERATE_DEPS) mkdir -p $(GENDIR) $(SWIG) -w401 -c++ -o $@ -xml -I$(TOPDIR)/xbmc -xmllang python $< -codegenerated: $(DOXYGEN) $(SWIG) $(JAVA) $(GENERATED) +codegenerated: $(DOXYGEN) $(SWIG) $(JAVA) $(GENERATED) $(GENERATED_JSON) $(DOXY_XML_PATH): $(SWIG) $(JAVA) cd $(INTERFACES_DIR)/python; ($(DOXYGEN) Doxyfile > /dev/null) 2>&1 | grep -v " warning: " @@ -63,3 +68,11 @@ $(SWIG): @echo This is not necessarily an error. @false +$(GENERATED_JSON): $(JSON_BUILDER) + @echo Jsonbuilder: $(JSON_BUILDER) + make -C $(INTERFACES_DIR)/json-rpc $(notdir $@) + +ifneq ($(CROSS_COMPILING), yes) +$(JSON_BUILDER): + make -C $(dir $@) +endif |