Using Qt include path for QtCore.
Would like to avoid having to add Qtcore folder to include seperately but don't have any solution yet.
This commit is contained in:
parent
872e02ae6d
commit
9608d9fd8e
6
build.rs
6
build.rs
|
@ -61,14 +61,16 @@ fn qt_setup(config: &mut cpp_build::Config) -> Version {
|
|||
|
||||
config.include(&qt_include_path);
|
||||
|
||||
// Include qtcore
|
||||
config.include(&format!("{}/{}", qt_include_path, "QtCore"));
|
||||
|
||||
qt_version
|
||||
}
|
||||
|
||||
fn ki18n_setup(config: &mut cpp_build::Config) {
|
||||
let kf5_i18n_path = "/usr/include/KF5/KI18n";
|
||||
let qt_core = "/usr/include/qt/QtCore";
|
||||
|
||||
config.include(kf5_i18n_path).include(qt_core);
|
||||
config.include(kf5_i18n_path);
|
||||
|
||||
println!("cargo:rustc-link-lib=KF5I18n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue