[Qt-interest] How to execute external programs from qmake?

Thiago Macieira thiago at kde.org
Wed Aug 25 17:49:50 CEST 2010


Em Quarta-feira 25 Agosto 2010, às 16:56:39, Li-Chung Chang escreveu:
> All,
> 
> Question is that:
> 
> 1. I would like to use DBUS_INTERFACE to be processed by qdbusxml2cpp.
> in the mean time, I would like to configure some arguments/options in
> the qdbusxml2cpp (for example: -i Add other include file). It's
> impossible to do that. Because....
> 
> #QTBUG-11677 (http://bugreports.qt.nokia.com/browse/QTBUG-11677)
> When using the DBUS_INTERFACE functionality in a .pro file to list the
> xml files to be processed by qdbusxml2cpp, there should be a method
> for configuring what arguments/options will be passed to qdbusxml2cpp,
> such as -N , -i, -c, etc.
> 
> 2. So, I try to execute qdbusxml2cpp command by myself in the qmake
> pro file. I only find out QMAKE_PRE_LINK - This variable contains the
> command to execute before linking the TARGET together. It's to late to
> execute qdbusxml2cpp.
> 
> 3. How to execute external programs(qdbusxml2cpp) by myself from qmake?

Hello

You want to add a new compiler (QMAKE_EXTRA_COMPILERS or something similar) 
that produces source code. The extra compiler must output to the 
GENERATED_SOURCES variable, which will cause your compiler to be run before 
compilation.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100825/29f882e8/attachment.bin 


More information about the Qt-interest-old mailing list