Results 1 to 6 of 6

Thread: Qt .pro files

  1. #1
    Join Date
    Apr 2007
    Location
    Moscow, Russia
    Posts
    20
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt .pro files

    Hello! Does anybody know some library to work with .pro files, or convert them into xml files?

    Thanks!
    Last edited by adhit; 14th September 2008 at 17:45. Reason: spelling error
    Denis Davidov

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt .pro files

    KDevelop must contain some code that parses .pro files, but I don't think it's in a form of a library.

  3. #3
    Join Date
    Apr 2007
    Location
    Moscow, Russia
    Posts
    20
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt .pro files

    I'm programming in Visual Studio...
    Denis Davidov

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt .pro files

    KDevelop's .pro parser sucks, avoid it at all cost QMake should contain a .pro parser, though.

  5. #5
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt .pro files

    qmake .pro parser sucks at least as much as KDevelop one.

    Ooops... What did I just say?

    Turns out qmake does not so much parses files as it *interprets* them. As far as qmake is concerned pro files are scripts meant to fill a list of variable/values pairs.

    If all you need is that list (which may vary depending on the platform and other stuff and comes with a lot of internal variables you are probably not interested in) then you can safely pull the code from qmake (it will need some care to embed it but that's not particularly hard.

    However, if you want to keep all informations on structure (scopes, dependency between variables using $$, functions, ...) qmake is definitely not the way to go... Qt 4 IDEs, such as Edyuk, Monkey Studio would be a better place to start.

    p.s : I intentionally did NOT mention QDevelop as a suitable place to start because its pro parser is very limited (does not support include(), support only one type of SUBDIRS assignement out of 3, does not support 'else' scope...)
    Current Qt projects : QCodeEdit, RotiDeCode

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt .pro files

    Honestly I'd wait until TT releases its qmake successor, whenever that happens. It is said to contain a library one can link against with his own apps.

Similar Threads

  1. how to include object files in .pro file
    By babu198649 in forum Newbie
    Replies: 1
    Last Post: 1st July 2008, 08:23
  2. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05
  3. Replies: 2
    Last Post: 8th November 2007, 20:15
  4. Replies: 5
    Last Post: 22nd September 2006, 08:04
  5. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 00:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.