aboutsummaryrefslogtreecommitdiff
path: root/codegenerator.mk
diff options
context:
space:
mode:
Diffstat (limited to 'codegenerator.mk')
-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 $<