aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Fields <foss@atlastechnologiesinc.com>2012-11-11 20:30:22 -0500
committerCory Fields <foss@atlastechnologiesinc.com>2012-11-11 20:30:22 -0500
commitfb5faa0d504988095a23839f784194d90ac98a6c (patch)
tree369d2c40bc3c2eaebef15a389ac405aa58cc3d39
parent9e93f52d3f8624c6fe7660ef04ce81facac22822 (diff)
build: re-run the code-generator when headers change
-rw-r--r--codegenerator.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/codegenerator.mk b/codegenerator.mk
index b052960c84..a924bb239f 100644
--- a/codegenerator.mk
+++ b/codegenerator.mk
@@ -27,6 +27,8 @@ GENERATED += $(GENDIR)/AddonModuleXbmcplugin.cpp
GENERATED += $(GENDIR)/AddonModuleXbmcaddon.cpp
GENERATED += $(GENDIR)/AddonModuleXbmcvfs.cpp
+GENERATE_DEPS += $(TOPDIR)/xbmc/interfaces/legacy/*.h
+
vpath %.i $(INTERFACES_DIR)/swig
$(GENDIR)/%.cpp: $(GENDIR)/%.xml $(JAVA) $(SWIG) $(DOXY_XML_PATH)
@@ -34,7 +36,7 @@ $(GENDIR)/%.cpp: $(GENDIR)/%.xml $(JAVA) $(SWIG) $(DOXY_XML_PATH)
groovy.ui.GroovyMain $(TOPDIR)/tools/codegenerator/Generator.groovy $< $(INTERFACES_DIR)/python/PythonSwig.cpp.template $@ $(DOXY_XML_PATH)
rm $<
-$(GENDIR)/%.xml: %.i $(SWIG) $(JAVA)
+$(GENDIR)/%.xml: %.i $(SWIG) $(JAVA) $(GENERATE_DEPS)
mkdir -p $(GENDIR)
$(SWIG) -w401 -c++ -o $@ -xml -I$(TOPDIR)/xbmc -xmllang python $<