Home · Overviews · Reference · Classes codeless banner

contains()

Usage

    VAR_1=foo
    contains(VAR_1,bar):VAR_1+=baz #VAR_1=foo
    VAR_1+=bar
    contains(VAR_1,bar):VAR_1+=baz #VAR_1=foo bar baz

Description

The first argument is a variable name. The second argument is a value. Returns true if the value is in the variable. Note that this does not to a string comparrison but a value comparrison so the following does not work.

    FOO="foo bar"
    contains(FOO,bar):SOMETHING=yes

See also QBuild Functions, QBuild Script, and CONFIG.


Copyright © 2009 Nokia
Qt Extended - QBuild Maintainer Guide