Skip to content

Commit 3b5f8b6

Browse files
committed
Fix linking
1 parent f4eb3a2 commit 3b5f8b6

4 files changed

Lines changed: 13 additions & 24 deletions

File tree

crates/bridge_freetype2/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ links = "freetype2"
2222

2323
[dependencies]
2424
libc = "0.2"
25+
tectonic_bridge_png = { path = "../bridge_png", version = "0.0.0-dev.0" }
26+
tectonic_bridge_flate = { path = "../bridge_flate", version = "0.0.0-dev.0" }
2527

2628
[build-dependencies]
2729
tectonic_dep_support = { path = "../dep_support", version = "0.0.0-dev.0" }
2830

29-
[dev-dependencies]
30-
tectonic_bridge_png = { path = "../bridge_png", version = "0.0.0-dev.0" }
31-
tectonic_bridge_flate = { path = "../bridge_flate", version = "0.0.0-dev.0" }
32-
3331
[package.metadata.internal_dep_versions]
3432
tectonic_dep_support = "5faf4205bdd3d31101b749fc32857dd746f9e5bc"
3533
tectonic_bridge_png = "42a1f6a8027b2ef01436be16c6e1bc27918f293f"

crates/bridge_freetype2/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ use std::{ptr, slice};
1717

1818
mod sys;
1919

20+
/// Import things from our bridge crates to ensure that we actually link with
21+
/// them.
22+
mod linkage {
23+
#[allow(unused_imports)]
24+
use tectonic_bridge_flate as clippyrenamehack1;
25+
#[allow(unused_imports)]
26+
use tectonic_bridge_png as clippyrenamehack2;
27+
}
28+
2029
pub use sys::FT_BBox as BBox;
2130
pub use sys::FT_Fixed as Fixed;
2231
pub use sys::FT_Glyph_BBox_Mode as BBoxMode;
@@ -624,15 +633,6 @@ mod tests {
624633
use std::fs;
625634
use std::path::{Path, PathBuf};
626635

627-
/// Import things from our bridge crates to ensure that we actually link with
628-
/// them.
629-
mod linkage {
630-
#[allow(unused_imports)]
631-
use tectonic_bridge_flate as clippyrenamehack1;
632-
#[allow(unused_imports)]
633-
use tectonic_bridge_png as clippyrenamehack2;
634-
}
635-
636636
fn assets_dir() -> PathBuf {
637637
Path::new(env!("CARGO_MANIFEST_DIR"))
638638
.join("../../tests/assets")

crates/bridge_harfbuzz/build.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ mod inner {
9393
}
9494

9595
// Include paths exported by our internal dependencies:
96-
let freetype2_include_path = env::var("DEP_FREETYPE2_INCLUDE_PATH").unwrap();
9796
let graphite2_include_path = env::var("DEP_GRAPHITE2_INCLUDE_PATH").unwrap();
9897
let graphite2_static = !env::var("DEP_GRAPHITE2_DEFINE_STATIC").unwrap().is_empty();
9998

@@ -105,10 +104,6 @@ mod inner {
105104
.define("HAVE_GRAPHITE2", "1")
106105
.file("harfbuzz/src/harfbuzz.cc");
107106

108-
for item in freetype2_include_path.split(';') {
109-
cfg.include(item);
110-
}
111-
112107
for item in graphite2_include_path.split(';') {
113108
cfg.include(item);
114109
}
@@ -143,10 +138,6 @@ mod inner {
143138
include_dir.to_str().expect("non-string-friendly OUT_DIR")
144139
);
145140

146-
for item in freetype2_include_path.split(';') {
147-
print!(";{item}");
148-
}
149-
150141
for item in graphite2_include_path.split(';') {
151142
print!(";{item}");
152143
}

crates/bridge_harfbuzz/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ pub use sys::hb_segment_properties_t as SegmentProperties;
3434
/// link with them, to pull in the symbols defined in the C APIs.
3535
mod linkage {
3636
#[allow(unused_imports)]
37-
use tectonic_bridge_freetype2 as clippyrenamehack2;
37+
use tectonic_bridge_freetype2 as clippyrenamehack1;
3838
#[allow(unused_imports)]
39-
use tectonic_bridge_graphite2 as clippyrenamehack1;
39+
use tectonic_bridge_graphite2 as clippyrenamehack2;
4040
#[cfg(target_os = "macos")]
4141
#[allow(unused_imports)]
4242
use tectonic_mac_core as clippyrenamehack3;

0 commit comments

Comments
 (0)