Home · Overviews · Reference · Classes codeless banner

functions Extension

The functions extension contains miscelaneous functons that the rest of the build system uses. Most of these functions can be called from both QBuild Script and JavaScript. The usage demonstates this as follows.

Functions that are intended to be called from JavaScript are documented like this.

    func("arg");

Functions that are intended to be called from QBuild Script are documented like this.

    ###
    func(arg)
    ###

Most functions can be called from both environments but there are some things to be aware of. QBuild Script variables are stored as lists. When passed to a JavaScript function, a QBuild Script variable becomes an array. However, single values are passed to JavaScript as values. JavaScript functions expecting items that are not strings or arrays will fail when called from QBuild Script.

add_input_files_to_rule
add_module
array_contains
create_args_rule
define_string
define_value
device_overrides
dump_property
echo
eval_escape
hard_disable_project
paths
requires
run_if_not_found
soft_disable_project
source_file

See also QBuild Extensions, QBuild Script, and Functions.


Copyright © 2009 Nokia
Qt Extended - QBuild Maintainer Guide