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.

Structs§

MocArguments
Arguments for a Qt moc invocation. See: QtBuild::moc
MocProducts
Paths to files generated by QtBuild::moc
QmlModuleRegistrationFiles
Paths to C++ files generated by QtBuild::register_qml_module
QtBuild
Helper for build.rs scripts using Qt
SemVer
An ideal version number that conforms to Semantic Versioning.

Enums§

QtBuildError
Errors that can occur while using QtBuild

Functions§

setup_linker
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.