Results 1 to 2 of 2

Thread: QMAKE: Specifying Build Dependencies

  1. #1
    Join Date
    Feb 2006
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QMAKE: Specifying Build Dependencies

    I've a large project, functionally grouped into several subdirs, with a top level PRO that is just a SUBDIRS pro file.

    Each subdirectory builds a module of functionality for the overall project and dumps it's output as a LIB. All LIBS are placed in one build directory.

    The LIBS are eventually combined to build either an executable or a DLL.

    What I WANT to do, is to be able to specify the build order of the LIBS/SUBDIR elements.

    I have been playing with the directives PRE_TARGETDEPS & POST_TARGETDEPS, but they only function within the space of a sub project of this overall scheme. A SUBDIRS element the top level project has no way of knowing how to build a required predecessor.

    Any ideas guys? (and gals?)

    - John "S"

  2. #2
    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: QMAKE: Specifying Build Dependencies

    AFAIR in Qt3 you could achieve that by adding the "ordered" flag to your .pro file. Maybe it works for Qt4 too.

Similar Threads

  1. qmake project dependencies
    By akos.maroy in forum Newbie
    Replies: 1
    Last Post: 15th June 2008, 14:52
  2. Mac: Copy Files Build Phase and qmake...
    By kuwan in forum Qt Programming
    Replies: 4
    Last Post: 25th September 2007, 21:59
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 06:57
  4. qmake to build both 32-bit and 64-bit
    By lni in forum Qt Programming
    Replies: 8
    Last Post: 12th December 2006, 20:35
  5. Using qmake to build multiple apps and libs
    By marchand in forum Newbie
    Replies: 2
    Last Post: 12th June 2006, 18:33

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.