- Qbs Manual
- Building Applications
- Qt Build Suite 1.4.4

Language Introduction Running Applications

# Building Applications

To build applications from the command line, enter the following commands:

    cd tests/manual/collidingmice
    qbs

The application is built using the default build profile that is set up in your Qbs configuration. To build with other profiles, specify options for the build command. For example, to build debug and release configurations with a profile named "Android", enter the following command:

    qbs build profile:Android debug release

The position of the property assignment is important. In the example above, the profile property is set for all build variants that come afterwards.

To set a property just for one build variant, place the assignment after the build variant name. In the following example, the property `cpp.treatWarningsAsErrors` is set to `true` for debug only and `cpp.optimization` is set to `small` for release only.

    qbs build debug cpp.treatWarningsAsErrors:true release cpp.optimization:small

Language Introduction Running Applications