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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest