Excellent. That worked.
I didn't realize that the .depends required the name-mangled version of the dependency target used by the makefile itself.
Thank you very much.
Added after 30 minutes:
The working solution. For posterity.
package.path = $${OUT_PWD}/package
package.files += myapp.exe package.nsi somelib.dll
INSTALLS += package
package_media.path = $${OUT_PWD}/package/media
package_media.files += image.jpg video.mpg
INSTALLS += package_media
# Do the packaging
#
# First, mangle all of my INSTALLS values. I depend on them.
unset(MANGLED_INSTALLS)
for(x, INSTALLS):MANGLED_INSTALLS += install_$${x}
build_package.path = $${OUT_PWD}/package
build_package.commands = \"C:/Program Files/NSIS/makensisw.exe\" \"$${OUT_PWD}/package/package.nsi\"
build_package.depends = $${MANGLED_INSTALLS}
INSTALLS += build_package
# There are no further INSTALLS below here.
package.path = $${OUT_PWD}/package
package.files += myapp.exe package.nsi somelib.dll
INSTALLS += package
package_media.path = $${OUT_PWD}/package/media
package_media.files += image.jpg video.mpg
INSTALLS += package_media
# Do the packaging
#
# First, mangle all of my INSTALLS values. I depend on them.
unset(MANGLED_INSTALLS)
for(x, INSTALLS):MANGLED_INSTALLS += install_$${x}
build_package.path = $${OUT_PWD}/package
build_package.commands = \"C:/Program Files/NSIS/makensisw.exe\" \"$${OUT_PWD}/package/package.nsi\"
build_package.depends = $${MANGLED_INSTALLS}
INSTALLS += build_package
# There are no further INSTALLS below here.
To copy to clipboard, switch view to plain text mode
Bookmarks