Re: [Qt-creator] QtCreator 2.0 and wildcards on project files

2010-05-11 Thread Gustavo Federico Bett
Thanks for that tip!

By the way I filed a bug with a sample project already.

On Sat, May 8, 2010 at 3:12 AM, Bradley Smith brad...@baysmith.com wrote:

 I noticed the same problem and found that a workaround may be to use $
 $files.

 For example, try

 HEADERS += $$files(./inc/*.h)

 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailman/listinfo/qt-creator




-- 
Gustavo Federico Bett
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] QtCreator 2.0 and wildcards on project files

2010-05-08 Thread Bradley Smith
I noticed the same problem and found that a workaround may be to use $
$files.

For example, try

HEADERS += $$files(./inc/*.h)

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] QtCreator 2.0 and wildcards on project files

2010-05-06 Thread Coda Highland
My thought on the matter is to use the OTHER_FILES variable (I think
it's OTHER_FILES, at least), which Creator uses to add non-compiled
files to the project and qmake ignores. Then you keep your .pro file
unchanged and add ALL of the platform directories to OTHER_FILES so
that they're visible in the editor regardless of the value of
$${platform}.

/s/ Adam

On Thu, May 6, 2010 at 9:02 AM, Gustavo Federico Bett gfb...@gmail.com wrote:
 Hi All,
 I'm working on a project that builds on three platforms, and to handle the
 platform specific code we have .pro files with something like this:
 # Header files
 HEADERS += ./inc/*.h
 include = ./inc/$${platform}/*.h
 exists($$include) {
         HEADERS += $$include
         }
 So we have a folder for each platform and a the platform variable is
 defined with the folder name for each platform. That make adding new files,
 and moving them around very easy, but... I just tried the new QtCreator 2.0
 beta, and it seems that the new qtcreator is unable to handle the wildcards
 on the .pro files (with QtCreator 1.3.1 it works like a charm). It doesn't
 show any file on the projects. Any idea on how can I solve this?? (without
 having to rewrite all the .pro files ... )

 Thanks in advance
 Regards
 --
 Gustavo Federico Bett

 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailman/listinfo/qt-creator



___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] QtCreator 2.0 and wildcards on project files

2010-05-06 Thread Oswald Buddenhagen
On Thu, May 06, 2010 at 04:02:10PM +0200, ext Gustavo Federico Bett wrote:
 # Header files
 HEADERS += ./inc/*.h
 include = ./inc/$${platform}/*.h
 exists($$include) {
         HEADERS += $$include
         }
 
that should work in theory, at least for the platform you are currently
building for. please make a complete minimal test case and file a bug.

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator