[Interest] Adding custom qmake directives?
Thiago Macieira
thiago.macieira at intel.com
Sat Aug 31 02:47:08 CEST 2013
On sexta-feira, 30 de agosto de 2013 10:53:49, Soroush Rabiei wrote:
> I would like to introduce new directives to qmake of target system. I have
> a toolkit made up of a set of libraries and templated code-bases. It should
> be possible to easily include / exclude its modules to Qt project. A
> project file may look like this :
>
> # users_application.pro
> QT += core gui sql
> AGT += core acl security # This like
> TARGET = my_application
> TEMPLATE = app
> SOURCES += main.cpp ...
>
> The second line should be expanded to:
>
> LIBS += -lagt_code -lagt_acl -lagt_security -lagt_crypto -lpthread # and /
> or other dependencies
> INCLUDEPATH += <concluded include dirs>
>
> I guess doing things like this requires modifying Qt's configuration files.
> Of course it should be possible to revert back all changes on uninstall.
You need to do the following:
1) add to that source there: CONFIG += agt
The CONFIG += qt part is automatic
2) add an agt.prf file to qmake's mkspecs/features dir
3) in that agt.prf file, interpret the $$AGT variable and add to LIBS and
INCLUDEPATH as needed
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130830/c638a6cc/attachment.sig>
More information about the Interest
mailing list