Add skia_use_system_freetype2_include_path and skia_use_system_freetype2_lib build options to configure system freetype2 to build and link against.
Bug: skia:13280 Change-Id: I9ace07cabc48a927d23492d63ac2a975b35c80d3 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/558236 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: George Wright <wrightgeorge@google.com>
This commit is contained in:
parent
64b50bc708
commit
5291147aae
6
third_party/freetype2/BUILD.gn
vendored
6
third_party/freetype2/BUILD.gn
vendored
@ -8,6 +8,8 @@ declare_args() {
|
||||
skia_use_system_freetype2 =
|
||||
(is_official_build || !(is_android || sanitize == "MSAN")) &&
|
||||
!is_fuchsia && !is_wasm
|
||||
skia_system_freetype2_include_path = "/usr/include/freetype2"
|
||||
skia_system_freetype2_lib = "freetype"
|
||||
skia_use_freetype_woff2 = is_wasm
|
||||
skia_use_freetype_svg = true
|
||||
}
|
||||
@ -16,8 +18,8 @@ import("../third_party.gni")
|
||||
|
||||
if (skia_use_system_freetype2) {
|
||||
system("freetype2") {
|
||||
include_dirs = [ "/usr/include/freetype2" ]
|
||||
libs = [ "freetype" ]
|
||||
include_dirs = [ skia_system_freetype2_include_path ]
|
||||
libs = [ skia_system_freetype2_lib ]
|
||||
}
|
||||
} else {
|
||||
third_party("freetype2") {
|
||||
|
Loading…
Reference in New Issue
Block a user