SkShaper: make build target
Use primitive fallback when harfbuzz+icu is not present Change-Id: I23efcb909aa4509dade50fc06c33a7d596a25184 Reviewed-on: https://skia-review.googlesource.com/106180 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
parent
27b8796f98
commit
96c572500a
23
BUILD.gn
23
BUILD.gn
@ -1612,15 +1612,22 @@ if (skia_enable_tools) {
|
||||
}
|
||||
}
|
||||
|
||||
# TODO(halcanary): Build ICU on iOS.
|
||||
if (!is_ios && target_cpu != "wasm") {
|
||||
test_app("sktexttopdf-hb") {
|
||||
sources = [
|
||||
"tools/shape/SkShaper_harfbuzz.cpp",
|
||||
"tools/shape/using_skia_and_harfbuzz.cpp",
|
||||
]
|
||||
test_lib("skshaper") {
|
||||
public_include_dirs = [ "tools/shape" ]
|
||||
deps = [
|
||||
":skia",
|
||||
]
|
||||
|
||||
# TODO(halcanary): Build ICU on iOS.
|
||||
if (is_ios || target_cpu == "wasm") {
|
||||
sources = [
|
||||
"tools/shape/SkShaper_primitive.cpp",
|
||||
]
|
||||
} else {
|
||||
sources = [
|
||||
"tools/shape/SkShaper_harfbuzz.cpp",
|
||||
]
|
||||
deps += [
|
||||
"//third_party/harfbuzz",
|
||||
"//third_party/icu",
|
||||
]
|
||||
@ -1628,11 +1635,11 @@ if (skia_enable_tools) {
|
||||
}
|
||||
test_app("sktexttopdf") {
|
||||
sources = [
|
||||
"tools/shape/SkShaper_primitive.cpp",
|
||||
"tools/shape/using_skia_and_harfbuzz.cpp",
|
||||
]
|
||||
deps = [
|
||||
":skia",
|
||||
":skshaper",
|
||||
]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user