[Interest] Using qmake custom targets to procude a package

Koehne Kai Kai.Koehne at theqtcompany.com
Mon Aug 17 13:44:57 CEST 2015



> -----Original Message-----
> From: interest-bounces+kai.koehne=theqtcompany.com at qt-project.org
> [...]
> 	The problem I'm facing now is the transition from build directory to
> package directory. I could write a python script which splits binaries up and
> sorts them into their desired package folder. This seems to be the standard
> solution, but also the biggest effort.
> 	I wonder if there is any easier and nicer solution within qmake?
> Ideally I would be able to define the target folder in each *.pro file and run
> 'make package' in the end. Has somebody tried this?
> 
> 	I didn't want to use the INSTALL commands, since that should install
> in the final folder structure and not into a package structure.

Well, you could still use make install, but parameterize the installation path by e.g. qmake variables. Or you set pass INSTALL_ROOT:

make install INSTALL_ROOT=/packaging/dir/

Regards

Kai


More information about the Interest mailing list