-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore pkg-config / dynamic linking support
- Loading branch information
1 parent
09e8a0e
commit ece8a60
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
use std::env; | ||
|
||
fn add_sources(build: &mut cc::Build, root: &str, files: &[&str]) { | ||
let root = std::path::Path::new(root); | ||
build.files(files.iter().map(|src| { | ||
|
@@ -10,6 +12,16 @@ fn add_sources(build: &mut cc::Build, root: &str, files: &[&str]) { | |
} | ||
|
||
fn main() { | ||
let target = env::var("TARGET").unwrap(); | ||
if !target.contains("android") | ||
&& pkg_config::Config::new() | ||
.atleast_version("24.3.18") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
decathorpe
Author
Contributor
|
||
.find("freetype2") | ||
.is_ok() | ||
{ | ||
return; | ||
} | ||
|
||
let mut build = cc::Build::new(); | ||
|
||
build | ||
|
@decathorpe i need help freetype2 latest version is 2.13.2, why this 24.3.18 ? where ths version come from ,thanks , i don't know this is a bug or a feature, but i can't build on my ubuntu 22.04