Crate qt_build_utils

Crate qt_build_utils 

Source
Expand description

This crate provides information about the Qt installation and can invoke Qt’s moc code generator. This crate does not build any C++ code on its own. It is intended to be used in build.rs scripts together with cc, cxx_build, or cpp_build.

⚠️ THIS CRATE IS UNSTABLE! It is used internally by cxx-qt-build and may be stabilized in the future. For now, prefer use [cxx-qt-build] directly.

Structs§

CfgGenerator
Helper for generating cargo cfg for a version range
MocArguments
Arguments for a Qt moc invocation. See: QtToolMoc::compile
MocProducts
Paths to files generated by QtToolMoc::compile
QResource
A <qresource> block within a QResources
QResourceFile
An individial <file> line within a QResource
QResources
A helper for building Qt resource collection files
QmlCacheArguments
Arguments for a QtToolQmlCacheGen
QmlCacheProducts
Paths to files generated by QtToolQmlCacheGen
QmlDirBuilder
QML module definition files builder
QmlFile
A QML file to be included in a QML module (e.g. by ways of super::QmlDirBuilder).
QmlLsIniBuilder
A helper for building QML Language Server configuration files
QmlModuleRegistrationFiles
Paths to C++ files generated by QtBuild::register_qml_module
QmlPluginCppBuilder
A builder for representing a QML Extension Plugin C++ code
QmlUri
A builder for representing a QML uri
QtBuild
Helper for build.rs scripts using Qt
QtInstallationQMake
A implementation of QtInstallation using qmake
QtPlatformLinker
Linking executables (including tests) with Cargo that link to Qt fails to link with GNU ld.bfd, which is the default on most Linux distributions, so use GNU ld.gold, lld, or mold instead. If you are using a C++ build system such as CMake to do the final link of the executable, you do not need to call this function.
QtToolMoc
A wrapper around the moc tool
QtToolQmlCacheGen
A wrapper around the qmlcachegen tool
QtToolQmlTypeRegistrar
A wrapper around the qmltyperegistrar tool
QtToolRcc
A wrapper around the rcc tool

Enums§

PluginType
The build type of a Qt plugin
QtBuildError
Errors that can occur while using crate::QtBuild
QtTool
An enum representing known Qt tools

Traits§

QtInstallation
A Qt Installation that can be used by cxx-qt-build to run Qt related tasks