Home · Overviews · Reference · Classes codeless banner

StartupScript Class Reference

The StartupScript class manages running the QBuild startup scripts. More...

    #include <StartupScript>

Public Types


Detailed Description

The StartupScript class manages running the QBuild startup scripts.

Examines the <QBuild Executable Directory>/qbuild.startup.args file for argument descriptors and runs the <QBuild Executable Directory>/qbuild.startup.js startup script.

The format of the qbuild.startup.args file is zero or more repetitions of the form:

    <Option Name> [<Option argument count>]
    <Tab><Help line 1>
    <Tab><Help line 2>
    ...

The following object types are added:

    CommandLineOption {
        name
        arguments[]
    }

The following properties are exported:

The following functions are bound:

    qbuild.env(<variable>): Returns the environment variable <variable>
    qbuild.value(<name>, <value>): Returns an exported value
    qbuild.setValue(<name>, <value>): Sets an exported value
    qbuild.showHelp(<message>):
    qbuild.error(<message>):
    qbuild.addExtensions(<path>)
    qbuild.addMkspecs(<path>)

    startupfile(<filename>): Absolute or solution filename
        .value(<prop name>)
        .properties(<prop name>)
        .property(<prop name>)

    solution().isSolution(<name>)
    solution().addSolution(<name>, <path>)

    solution(<name>)
        .files(<path>)
        .paths(<path>)
        .exists(<name>)
        .realToSolution(<path>)
        .addPath(<solution path>, <fs path>)

See also qbuild.startup.args and qbuild.startup.js.


Copyright © 2009 Trolltech
Qt Extended - QBuild Maintainer Guide