9867f61160
Tweak SkShaper to call out for each line, instead of bundling everything as a text blob. Change-Id: Ic522f88afcf31cefd873dc8b5cde1ac2e107c64f Reviewed-on: https://skia-review.googlesource.com/c/176592 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
40 lines
797 B
Plaintext
40 lines
797 B
Plaintext
# Copyright 2018 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
declare_args() {
|
|
skia_enable_skshaper = true
|
|
}
|
|
|
|
config("public_config") {
|
|
if (skia_enable_skshaper) {
|
|
include_dirs = [ "include" ]
|
|
}
|
|
}
|
|
|
|
source_set("skshaper") {
|
|
if (skia_enable_skshaper) {
|
|
public_configs = [ ":public_config" ]
|
|
public = [
|
|
"include/SkShaper.h",
|
|
]
|
|
deps = [
|
|
"../..:skia",
|
|
]
|
|
sources = [
|
|
"src/SkShaper.cpp",
|
|
]
|
|
if (target_cpu == "wasm") {
|
|
sources += [ "src/SkShaper_primitive.cpp" ]
|
|
} else {
|
|
sources += [ "src/SkShaper_harfbuzz.cpp" ]
|
|
deps += [
|
|
"//third_party/harfbuzz",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
configs += [ "../../:skia_private" ]
|
|
}
|
|
}
|