Home · Reference · User Guide · Internals

depends()

Usage

    depends(libraries/qtopia)
    depends(libraries/*,fake)

Description

Register a dependency. Use the same format that PROJECTS uses (ie. paths relative to the project root). Dependencies are searched for in the current project root first, then the Qtopia and Qtopia Desktop project roots followed by all other project roots. There is no support for depending on a particular project in a particular project root but such support may appear in the future.

Note: This function must only be called from .pro files or from an implicit_deps.pr[if] file.

You can pass a second argument fake to create a fake dependency. Fake dependencies affect the order of building without changing the actual dependency tree. For example, src/build/extra/extra.pro depends on everything but it's a fake dependency designed only to have it processed last.

See also Functions, Dependencies, dep(), idep(), and PROJECTS.


Copyright © 2007 Trolltech Qtopia Build System Documentation