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:
Hal Canary 2018-02-09 11:43:05 -05:00 committed by Skia Commit-Bot
parent 27b8796f98
commit 96c572500a

View File

@ -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",
]
}