2018-05-29 19:53:40 +00:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
2019-02-04 20:36:31 +00:00
|
|
|
import("../../gn/skia.gni")
|
|
|
|
|
2018-05-29 19:53:40 +00:00
|
|
|
config("public_config") {
|
|
|
|
if (skia_enable_skshaper) {
|
|
|
|
include_dirs = [ "include" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
source_set("skshaper") {
|
|
|
|
if (skia_enable_skshaper) {
|
2019-01-17 21:42:15 +00:00
|
|
|
import("skshaper.gni")
|
2018-05-29 19:53:40 +00:00
|
|
|
public_configs = [ ":public_config" ]
|
2019-01-17 21:42:15 +00:00
|
|
|
public = skia_shaper_public
|
2018-05-29 19:53:40 +00:00
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
|
|
|
]
|
2019-02-04 20:36:31 +00:00
|
|
|
if (target_cpu == "wasm" || !skia_use_icu) {
|
2019-01-17 21:42:15 +00:00
|
|
|
sources = skia_shaper_primitive_sources
|
2018-05-29 19:53:40 +00:00
|
|
|
} else {
|
2019-01-17 21:42:15 +00:00
|
|
|
sources = skia_shaper_harfbuzz_sources
|
2018-05-29 19:53:40 +00:00
|
|
|
deps += [
|
|
|
|
"//third_party/harfbuzz",
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
configs += [ "../../:skia_private" ]
|
|
|
|
}
|
|
|
|
}
|