Home · Overviews · Reference · Classes codeless banner

create_args_rule

Usage

    create_args_rule({
        name: "rulename",
        file: "foo.args",
        contents: "gcc -c $$DEFINES -o $$[OUTPUT.0] $$[INPUT.0]"
    });

    var rule = create_args_rule({
        name: "rulename",
        file: dir+"/foo.args",
        contents: "gcc -c $$DEFINES -o $$[OUTPUT.0] $$[INPUT.0]"
        prereq: "#(oh)ensure_dir"
    });

Description

This function assists in creating an "args test" rule so that changes to the arguments of a utility will cause that utility to be run again.

The second example demonstrates the complete function, with the optional prereq value and capturing the rule object.

See also Functions.


Copyright © 2009 Trolltech
Qt Extended - QBuild Maintainer Guide