PDA

View Full Version : QMAKE: Specifying Build Dependencies



JohnSuykerbuyk
24th April 2006, 21:40
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"

wysota
5th May 2006, 09:46
AFAIR in Qt3 you could achieve that by adding the "ordered" flag to your .pro file. Maybe it works for Qt4 too.