File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -542,9 +542,7 @@ impl CxxQtBuilder {
542
542
builder. define ( extra_define, None ) ;
543
543
}
544
544
545
- for include_dir in qtbuild. include_paths ( ) {
546
- builder. include ( & include_dir) ;
547
- }
545
+ builder. includes ( qtbuild. include_paths ( ) ) ;
548
546
builder. include ( & header_root) ;
549
547
builder. include ( & generated_header_dir) ;
550
548
}
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ edition.workspace = true
11
11
license.workspace = true
12
12
description = " Qt types for integrating `cxx-qt` crate with `cxx`"
13
13
repository.workspace = true
14
- # Fake linking so that we expose cargo data as env vars for downstream crates
15
- # https://github.com/rust-lang/cargo/issues/3544
16
- links = " cxx-qt-lib"
17
14
exclude = [ " **/generate.sh" ]
18
15
19
16
[dependencies ]
Original file line number Diff line number Diff line change @@ -193,12 +193,6 @@ fn main() {
193
193
println ! ( "cargo:rerun-if-changed=src/{bridge}.rs" ) ;
194
194
}
195
195
196
- for include_path in qtbuild. include_paths ( ) {
197
- cxx_build:: CFG
198
- . exported_header_dirs
199
- . push ( include_path. as_path ( ) ) ;
200
- }
201
-
202
196
let mut builder =
203
197
cxx_build:: bridges ( rust_bridges. iter ( ) . map ( |bridge| format ! ( "src/{bridge}.rs" ) ) ) ;
204
198
@@ -280,6 +274,11 @@ fn main() {
280
274
let mut header = File :: create ( h_path) . expect ( "Could not create header: {h_path}" ) ;
281
275
write ! ( header, "{file_contents}" ) . expect ( "Could not write header: {h_path}" ) ;
282
276
}
277
+
278
+ // Load the include paths
279
+ //
280
+ // TODO: note once we use cxx-qt-build we don't need to include the Qt paths here
281
+ builder. includes ( qtbuild. include_paths ( ) ) ;
283
282
builder. include ( header_root) ;
284
283
285
284
// Enable Qt Gui in C++ if the feature is enabled
You can’t perform that action at this time.
0 commit comments