Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

build: re-run the code-generator when headers change

  • Loading branch information...
commit fb5faa0d504988095a23839f784194d90ac98a6c 1 parent 9e93f52
@theuni theuni authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 codegenerator.mk
View
4 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 $<
Please sign in to comment.
Something went wrong with that request. Please try again.