unbundle the generated harfbuzz rust bindings
This commit is contained in:
1 parent
9673c8c1b7
commit
8d6364fa80
5 files changed
+1
-3505
No files matched your search
+1
-1
@@ -1,3 +1,3 @@
|
||||
[submodule "harfbuzz/harfbuzz"]
|
||||
path = harfbuzz/harfbuzz
|
||||
path = ci/harfbuzz
|
||||
url = https://github.com/harfbuzz/harfbuzz.git
|
||||
File renamed without changes.
@@ -1,13 +0,0 @@
|
||||
[package]
|
||||
authors = ["Wez Furlong <wez@wezfurlong.org>"]
|
||||
name = "harfbuzz"
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
failure = "0.1.1"
|
||||
|
||||
[build-dependencies]
|
||||
cmake = "0.1.29"
|
||||
|
||||
[target.'cfg(any(target_os = "android", all(unix, not(target_os = "macos"))))'.dependencies]
|
||||
freetype = "0.3"
|
||||
@@ -1,23 +0,0 @@
|
||||
extern crate cmake;
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let mut dst = cmake::Config::new("harfbuzz");
|
||||
|
||||
if cfg!(any(
|
||||
target_os = "android",
|
||||
all(unix, not(target_os = "macos")),
|
||||
)) {
|
||||
dst.define("HB_HAVE_FREETYPE", "ON");
|
||||
}
|
||||
let dst = dst.build();
|
||||
println!("cargo:rustc-link-search=native={}/lib", dst.display());
|
||||
println!("cargo:rustc-link-lib=static=harfbuzz");
|
||||
|
||||
// Dependent crates that need to find hb.h can use DEP_HARFBUZZ_INCLUDE from
|
||||
// their build.rs.
|
||||
println!(
|
||||
"cargo:include={}",
|
||||
env::current_dir().unwrap().join("harfbuzz/src").display()
|
||||
);
|
||||
}
|
||||
-3468
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user