Skip to content

Commit

Permalink
ci: bundle freetype
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Jun 16, 2024
1 parent 38fdbc7 commit 29d5e44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Cargo build
run: cargo build --workspace
run: cargo build --workspace --features freetype-bundled

- name: Cargo test
run: cargo test --workspace
run: cargo test --workspace --features freetype-bundled
env:
RUST_BACKTRACE: 1

- name: Cargo check no-default-features
run: cargo check --no-default-features
run: cargo check --no-default-features --features freetype-bundled
env:
RUST_BACKTRACE: 1

Expand Down
8 changes: 4 additions & 4 deletions harfbuzz-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ fn build_harfbuzz() {
cfg.define("HAVE_DIRECTWRITE", "1");
}

// if cfg!(feature = "freetype") {
// cfg.define("HAVE_FREETYPE", "1");
// cfg.include("freetype/include/");
// }
if cfg!(feature = "freetype") {
cfg.define("HAVE_FREETYPE", "1");
cfg.include("freetype/include/");
}

if target.contains("windows-gnu") {
cfg.flag("-Wa,-mbig-obj");
Expand Down

0 comments on commit 29d5e44

Please sign in to comment.