Results 1 to 2 of 2

Thread: QMake: Solve Dependencies Automatically

  1. #1
    Join Date
    Jan 2012
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Exclamation QMake: Solve Dependencies Automatically

    Hello,

    I'd like to add something like this to my Qt project file:

    Qt Code:
    1. STATIC_LIBRARIES += myaudio myxxxx
    2.  
    3. for( dep, STATIC_LIBRARIES ) {
    4. message($$TARGET depends on $$dep ($${DESTDIR}/$${dep}.$${STAT_EXT}))
    5. LIBS += $${DESTDIR}/lib$${dep}.$${STAT_EXT}
    6. PRE_TARGETDEPS += $${DESTDIR}/lib$${dep}.$${STAT_EXT}
    7.  
    8. $${dep}.input = ../$${dep}/Makefile
    9. $${dep}.commands = cd ../$${dep} && make ;
    10. $${dep}.CONFIG = no_link
    11. $${dep}.output = $${DESTDIR}/libX$${dep}.$${STAT_EXT}
    12.  
    13. QMAKE_EXTRA_COMPILERS += $${dep}
    14. }
    To copy to clipboard, switch view to plain text mode 
    I guess it's not working, since 'the object' cannot be a variable. But the output of qmake looks like this...
    Qt Code:
    1. Project MESSAGE: graph depends on myaudio (../../bin/myaudio.a)
    2. Project MESSAGE: graph depends on myxxxx (../../bin/myxxxx.a)
    3. WARNING: Compiler: myaudio: No output file specified
    4. WARNING: Compiler: myxxxx: No output file specified
    To copy to clipboard, switch view to plain text mode 
    So at least a part of it is working...

    Thanks,

    Charly
    Last edited by blueSpirit; 21st January 2012 at 17:16.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,677
    Thanks
    13
    Thanked 1,596 Times in 1,524 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QMake: Solve Dependencies Automatically

    Is there a question somewhere in there?

Similar Threads

  1. around circular dependencies
    By tonnot in forum General Programming
    Replies: 6
    Last Post: 18th February 2011, 13:20
  2. Build without any dependencies
    By Dato0011 in forum Qt Tools
    Replies: 5
    Last Post: 22nd December 2009, 16:21
  3. library dependencies.....
    By surender99 in forum Qt Programming
    Replies: 1
    Last Post: 3rd April 2009, 20:06
  4. What are the dependencies that a .exe file needs??
    By srohit24 in forum Installation and Deployment
    Replies: 5
    Last Post: 5th March 2009, 18:25
  5. Linux dependencies
    By LMZ in forum Qt Programming
    Replies: 6
    Last Post: 21st May 2007, 08:54

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.