C

--target-type

Specify the type of target using the generated source files.

Description

This command-line option is optional. The code generated by the qmlprojectexporter might be slightly different, depending on the target type. currently, this has an effect only when used with the generate-entrypoint command to know which entry-point files to generate.

possible values:

  • executable
  • static_library

If you set the generate-entrypoint command-line option without --target-type, the target type will be "executable" by default.

Usage

qmlprojectexporter --generate-entrypoint --target-type static_library --outdir output-dir my_project.qmlproject

Since

This option was introduced in QmlProject API 1.3 .

See also --generate-entrypoint, --target-type, Project.mainFile, and GENERATE_ENTRYPOINT.

Available under certain Qt licenses.
Find out more.