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§
Sourcefn framework_paths(&self, qt_modules: &[String]) -> Vec<PathBuf>
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.
Sourcefn include_paths(&self, qt_modules: &[String]) -> Vec<PathBuf>
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.
Sourcefn link_modules(&self, builder: &mut Build, qt_modules: &[String])
fn link_modules(&self, builder: &mut Build, qt_modules: &[String])
Configure the given cc::Build and cargo to link to the given Qt modules
Sourcefn try_find_tool(&self, tool: QtTool) -> Result<PathBuf>
fn try_find_tool(&self, tool: QtTool) -> Result<PathBuf>
Find the path to a given Qt tool for the Qt installation