6.1.2.16. QMakeIntegration

Use qmake for analysis compilation

This rule calls qmake with the specified options.

This step creates Makefiles from qmake .pro files. You have to configure a subsequent MakeIntegration build step in order to do the actual analysis build.

Options

The following places define options that affect this rule: BuildSystemIntegration, Project-GlobalOptions

abort_on_error

abort_on_error : bool = True

If set to true and the build step returns a non-zero exit-code, the build is aborted. Otherwise a non-zero exit-code is logged but the build continues.
 

advanced_default_options

advanced_default_options : str | None = '-recursive -late QMAKE_CC=cafeCC QMAKE_CXX=cafeCC QMAKE_LINK=cafeCC "QMAKE_LIB=cafeAR -ru" "RESOURCES="'

Default command-line options for all calls to qmake. Add additional user options to options in preference.
 

capture_output

capture_output : bool = False

Sets whether the shell output of the step should be captured. Note that only the output of the build step will be captured and not the output of possible clean steps.

The output will be parsed according to the format configured with the options output_format, stdout_format, stderr_format.

 

cwd

cwd : bauhaus.analysis.config.ProjectRelativePath | None = None

Directory for execution for the command. Defaults to /Project/directory if left unspecified.
 

environment

environment : dict[str, str] = {}

Environment for all calls to qmake. These entries are added to the environment and existing ones will be overwritten.

 

options

options : str | None = None

Additional command-line options for all calls to qmake. Passed on the command-line before advanced_default_options.
 

output_format

output_format : list[str] = ['generic']

Name of the format(s) describing the output pattern to capture from stdout/stderr.

The format names available here correspond to the provider options in /Analysis/AnalysisControl/ExternalAnalysisFormats.

This option only has an effect if capture_output is true.

 

project

project : bauhaus.analysis.config.ProjectRelativePath | None = None

Project (.pro) file to use. If unspecified, qmake expects a single .pro file in the current directory.
 

stderr_format

stderr_format : list[str] = []

Name of the format(s) describing the output pattern to capture from stderr. This takes precedence over output_format if set.

The format names available here correspond to the provider options in /Analysis/AnalysisControl/ExternalAnalysisFormats.

This option only has an effect if capture_output is true.

 

stdout_format

stdout_format : list[str] = []

Name of the format(s) describing the output pattern to capture from stdout. This takes precedence over output_format if set.

The format names available here correspond to the provider options in /Analysis/AnalysisControl/ExternalAnalysisFormats.

This option only has an effect if capture_output is true.

 

toolname

toolname : bauhaus.analysis.config.PlainPath = 'qmake'

qmake command-line tool to call.