1ba9c4df77
Depends on https://skia-review.googlesource.com/c/skia/+/186870 It's optional at build time, which is good given that it adds about 2MB of uncompressed size (from 4.3 MB to 6.4 MB) Bug: skia: Change-Id: I5f54ad628b735c3bc880e917394fb27d16849ebe Reviewed-on: https://skia-review.googlesource.com/c/187924 Commit-Queue: Kevin Lubick <kjlubick@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
37 lines
806 B
Plaintext
37 lines
806 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.
|
|
|
|
import("../../gn/skia.gni")
|
|
|
|
config("public_config") {
|
|
if (skia_enable_skshaper) {
|
|
include_dirs = [ "include" ]
|
|
defines = []
|
|
if (skia_use_icu) {
|
|
defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ]
|
|
}
|
|
}
|
|
}
|
|
|
|
component("skshaper") {
|
|
if (skia_enable_skshaper) {
|
|
import("skshaper.gni")
|
|
public_configs = [ ":public_config" ]
|
|
public = skia_shaper_public
|
|
deps = [
|
|
"../..:skia",
|
|
]
|
|
sources = skia_shaper_primitive_sources
|
|
if (skia_use_icu) {
|
|
sources += skia_shaper_harfbuzz_sources
|
|
deps += [
|
|
"//third_party/harfbuzz",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
configs += [ "../../:skia_private" ]
|
|
}
|
|
}
|