Qtopia Home · Home · Reference · User Guide · Internals

Create a new project tree

There is an example project tree located in examples/externaltree. To use this example properly you will need to copy it outside of the Qtopia directory.

To create a new project keyword myapp that makes a Qtopia quicklaunchable application put this into tree_config.pri.

    keyword.myapp.equiv=qtopia app
    keyword.myapp.commands+=\
        "CONFIG+=myapp"\
        "CONFIG+=qtopia_main"
    PROJECT_KEYWORDS*=myapp

There is a library that all myapp apps should depend on implicitly. Put this in features/implicit_deps.prf.

    myapp:depends(src/libraries/mylib)

The dependency means we need a projects.pri.

    PROJECTS=\
        src/libraries/mylib\
        src/applications/myapp

To build all of the projects we need this in projecst.pro.

    qtopia_project(subdirs)
    SUBDIRS=$$PROJECTS

To enable building part of the tree we have stub projects like this.

    qtopia_project(subdirs)

The projects to build come from projects.pri.

There are test cases for mylib. They are placed under mylib/tests and a special tests.pro ensures they are all executed.

    qtopia_project(subdirs)
    CONFIG+=build_all_dirs

See also Advanced Tasks.


Copyright © 2008 Nokia Qtopia Build System Documentation