[Qt-interest] Status of XCode Integration

Thiago Macieira thiago at kde.org
Wed Mar 17 09:56:46 CET 2010


Em Quarta-feira 17 Março 2010, às 07:52:42, Andreas Pakulat escreveu:
> On 16.03.10 16:32:01, Trygve Isaacson wrote:
> > On Tue, Mar 16, 2010 at 1:46 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> > ...
> > 
> > > I don't know about XCode (for either qmake or cmake) but the makefile
> > > generated by both tools automatically re-run them in the case of
> > > changing their inputfiles (i.e. .pro or cmakelists.txt). So its even
> > > automatic as long as you maintain the original cmake/qmake project
> > > file.
> > 
> > ...
> > 
> > My experience with XCode is similar. You obviously need to run qmake
> > to regenerate the project if you add or remove files in .pro files,
> > and less obviously if you change an existing class so that it becomes
> > Q_OBJECT-enabled (starts needing moc). But if you are merely
> > adding/changing signals and slots on classes that already are declared
> > Q_OBJECT, then XCode will re-moc those classes automatically as needed
> > whenever you build.
> 
> Thats not what Makefiles do, Makefile's re-run qmake completely
> automatically if the generated Makefile is older than qmake's .pro file
> (the same for cmake files). So adding new files or adding Q_OBJECT
> macro's is no problem, I still just run make and it'll re-run qmake for
> me.

Adding new Q_OBJECT macros to existing files won't cause qmake to be rerun.

If you do that and you didn't touch the .pro file, you have to cause qmake to 
be rerun. You can do that by:

1) touching the .pro file
2) running qmake manually
3) running: make qmake

-- 
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/20100317/f1c980f0/attachment.bin 


More information about the Qt-interest-old mailing list