Home · Overviews · Reference · Classes codeless banner

CONFIG

The CONFIG variable loads extensions and controls many functions.

Since it is common to set values in CONFIG and to check for them later, there is a short-hand version of the contains() function that you can use to check the value of CONFIG.

    CONFIG+=foo
    foo:message(ok)

Loading Extensions

When it executes CONFIG+=foo, QBuild looks for a file called /extensions/foo.js. If this file exists QBuild loads the file and calls the function foo_init(). If the extension has previously been loaded, QBuild will instead call the function foo_reinit().

See also QBuild Variables, QBuild Script, contains(), and Extension.


Copyright © 2009 Nokia
Qt Extended - QBuild Maintainer Guide