aboutsummaryrefslogtreecommitdiff
path: root/codegenerator.mk
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2014-04-28 12:22:39 +0200
committermontellese <montellese@xbmc.org>2014-04-30 20:06:26 +0200
commita415aada24ea549528056c5edd6625a78cfa362a (patch)
tree7300566b9d69f0adfb2ef39fcd2fd0691db26128 /codegenerator.mk
parent1cbe98eac59c67efbb38a197401e6c16b9153b39 (diff)
[depends] auto-generate ServiceDescription.h during bootstrap and on demand
Diffstat (limited to 'codegenerator.mk')
-rw-r--r--codegenerator.mk15
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