Qtopia Home · Home · Reference · User Guide · Internals


The Qtopia build system has dependency information embedded into the .pro files. This makes it possible to build everything in the most efficient way as well as giving us flexibility. For example, a library can be renamed with a single change in a single file. Without the dependency system, many files would need to be changed. The dependency information also gives us the ability to graph interdependencies between projects as well as dependencies on external libraries.

Do not put LIBS+= or INCLUDEPATH+= lines in your .pro files. Use depends() instead.

This applies even if you need to depend on something that isn't built (ie. part of the system). Simply create a stub project for it with dep() commands. This keeps our dependencies clearly defined.

If your app can handle a missing dependency you should do something like this:


Use the presence or absence of enable_mydep in the .pro file (eg. disable whole files that use the depdendency). Use the presence or absence of QTOPIA_NO_MYDEP to handle code that interfaces with the dependency.

See also Overviews, dep(), idep(), depends(), PROJECTS, CONFIG, and DEFINES.

Copyright © 2008 Nokia Qtopia Build System Documentation