[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Ignoring Qt generated .h and .cpp files.

From: Didier Trosset <didier-dot-trosset_at_acqiris.com>
Date: 2004-10-18 11:32:07 CEST

Hello,

I'm using Qt for the GUIs, and this causes me annoyance along with
subversion regarding ignoring files. Indeed, Qt uses a preprocessor that
generates source and header files, that are not versionned, and I would
like svn to ignore them.

For the unaware of Qt, briefly it has 2 ways to use it:
  - MOC mode: foo.h and foo.cpp are versionned, moc_foo.cpp is generated.
  - UIC mode: bar.ui and bar.ui.h are versionned, bar.h, bar.cpp and
moc_bar.cpp are generated.

For the MOC mode, it's OK, adding moc_*.cpp to svn:ignore does the job.

But for the UIC mode, there is nothing such possible, as adding *.h and
*.cpp would deprive me of valuable information for non Qt files. I was
wondering if there was a way to ignore these generated *.h and *.cpp
files depending on the presence of a *.ui file.

The solution of generating the files in another directory (where
svn:ignore *.cpp and *.h would suffice) is not acceptable because of the
complexity it adds in managing the relative paths for #includes.

Thanks
Didier

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 18 17:51:26 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.