Skip to content

Commit

Permalink
build: re-run the code-generator when headers change
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed Nov 12, 2012
1 parent 9e93f52 commit fb5faa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codegenerator.mk
Expand Up @@ -27,14 +27,16 @@ 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)
$(JAVA) -cp "$(GROOVY_DIR)/groovy-all-1.8.4.jar:$(GROOVY_DIR)/commons-lang-2.6.jar:$(TOPDIR)/tools/codegenerator:$(INTERFACES_DIR)/python" \
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 $<

Expand Down

0 comments on commit fb5faa0

Please sign in to comment.