Qtopia Home · Home · Reference · User Guide · Internals

Project Trees

Files

tree_config.pri

This file should setup any additional project keywords for the project tree.

projects.pri

In order to support dependencies you need a projects.pri that lists the projects to build. The paths in this file are relative to the top of the tree.

features/implicit_deps.prf

Implicit dependencies must be defined in this file or they will not work.

features

This directory is added to the list of feature directories that qmake searches in. You can override or extend existing features as well as creating your own.

Limitations

Build Order

Project trees are processed in order and while projects can have dependencies across trees this does not affect the tree building order.

A special exception exists to allow singleexec builds to succeed. In a singleexec build the server is always built last so that it can include apps, libs and plugins built in external trees.

Libraries

Libraries outside the Qtopia tree are not automatically put into <build>/lib. You can either specify that the library should be placed here or specify that dependants should look in the directory the library is built in.

Build the library into <build>/lib:

    DESTDIR=$$QPEDIR/lib

Specify that dependants should look where the library is built:

    idep(LIBS+=-L$$PWD -l$$TARGET)

Headers

When configure prints Running qmake... it sets up the include directory. External trees can also install headers into the include directory but this does not happen until the projects are processed as part of building. That makes it important that dependencies are specified correctly. It also means that projects in other trees might not be able to use the includes due to the Build Order limitation noted above.

See also Overviews and Create a new project tree.


Copyright © 2008 Nokia Qtopia Build System Documentation