From 9608d9fd8e9c71662b3a09d10ef79ef0dc3a9709 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Mon, 1 Nov 2021 21:21:56 +0530 Subject: [PATCH] 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. --- build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index c8a2d64..b636cce 100644 --- a/build.rs +++ b/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"); }