diff options
author | Mike Reed <reed@google.com> | 2018-02-08 15:45:51 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-08 21:42:10 +0000 |
commit | 59dad9111792ca1ceebfb444497f81d9eb357b7d (patch) | |
tree | 71f85d34225a7584b9a3a380dbced15b574bbe93 /BUILD.gn | |
parent | 042b5e901ba684b1c931211d2947fc73bae835ff (diff) |
use SkShaper instead of SkTextBox
Change-Id: I63fae79007938cb89c122799b8984a88e91ac1e7
Reviewed-on: https://skia-review.googlesource.com/102863
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Hal Canary <halcanary@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -1499,6 +1499,7 @@ if (skia_enable_tools) { ":experimental_svg_model", ":flags", ":gm", + ":skshaper", ":tool_utils", ":views", ":xml", @@ -1609,15 +1610,21 @@ if (skia_enable_tools) { } } - # TODO(halcanary): Build ICU on iOS. - if (!is_ios && target_cpu != "wasm") { - test_app("sktexttopdf-hb") { + 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", - "tools/shape/using_skia_and_harfbuzz.cpp", ] - deps = [ - ":skia", + deps += [ "//third_party/harfbuzz", "//third_party/icu", ] @@ -1625,11 +1632,11 @@ if (skia_enable_tools) { } test_app("sktexttopdf") { sources = [ - "tools/shape/SkShaper_primitive.cpp", "tools/shape/using_skia_and_harfbuzz.cpp", ] deps = [ ":skia", + ":skshaper", ] } |