QtInstallation

Trait QtInstallation 

Source
pub trait QtInstallation {
    // Required methods
    fn framework_paths(&self, qt_modules: &[String]) -> Vec<PathBuf>;
    fn include_paths(&self, qt_modules: &[String]) -> Vec<PathBuf>;
    fn link_modules(&self, builder: &mut Build, qt_modules: &[String]);
    fn try_find_tool(&self, tool: QtTool) -> Result<PathBuf>;
    fn version(&self) -> Version;
}
Expand description

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

Note that it is the responsbility of the QtInstallation implementation to print any cargo::rerun-if-changed lines

Required Methods§

Source

fn framework_paths(&self, qt_modules: &[String]) -> Vec<PathBuf>

Return the framework paths for Qt

This is intended to be passed to whichever tool you are using to invoke the C++ compiler.

Source

fn include_paths(&self, qt_modules: &[String]) -> Vec<PathBuf>

Return the include paths for Qt, including Qt module subdirectories.

This is intended to be passed to whichever tool you are using to invoke the C++ compiler.

Configure the given cc::Build and cargo to link to the given Qt modules

Source

fn try_find_tool(&self, tool: QtTool) -> Result<PathBuf>

Find the path to a given Qt tool for the Qt installation

Source

fn version(&self) -> Version

Version of the detected Qt installation

Implementors§