[Interest] Using qmake custom targets to procude a package
Roland Winklmeier
roland.m.winklmeier at gmail.com
Mon Aug 17 13:54:01 CEST 2015
2015-08-17 13:44 GMT+02:00 Koehne Kai <Kai.Koehne at theqtcompany.com>:
>
>
> > -----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
>
Thanks Kai.
Hm, I could change the INSTALL_ROOT yes, but the underlying structure is
different for a normal installation compared to a package. In case of
packaging the subfolders are the installer components. For normal
installations all binaries would go to /usr/local/bin or something.
But I could define two different INSTALL branches in the project files. If
qmake config contains 'package_build' it will install to the package dirs
and per default it will install to the standard installation paths.
Would this make sense?
Regards,
R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150817/25bd2f76/attachment.html>
More information about the Interest
mailing list