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:
Ayush Singh 2021-11-01 21:21:56 +05:30
parent 872e02ae6d
commit 9608d9fd8e

View file

@ -61,14 +61,16 @@ fn qt_setup(config: &mut cpp_build::Config) -> Version {
config.include(&qt_include_path); config.include(&qt_include_path);
// Include qtcore
config.include(&format!("{}/{}", qt_include_path, "QtCore"));
qt_version qt_version
} }
fn ki18n_setup(config: &mut cpp_build::Config) { fn ki18n_setup(config: &mut cpp_build::Config) {
let kf5_i18n_path = "/usr/include/KF5/KI18n"; 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"); println!("cargo:rustc-link-lib=KF5I18n");
} }