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.
|
|
|
|
|
2019-02-04 20:36:31 +00:00
|
|
|
import("../../gn/skia.gni")
|
|
|
|
|
2018-05-29 19:53:40 +00:00
|
|
|
config("public_config") {
|
2019-02-22 20:55:39 +00:00
|
|
|
include_dirs = [ "include" ]
|
|
|
|
defines = []
|
|
|
|
if (skia_use_icu) {
|
|
|
|
defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ]
|
2018-05-29 19:53:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-22 15:04:06 +00:00
|
|
|
component("skshaper") {
|
2019-02-26 16:54:25 +00:00
|
|
|
check_includes = false
|
2019-02-22 20:55:39 +00:00
|
|
|
import("skshaper.gni")
|
|
|
|
public_configs = [ ":public_config" ]
|
|
|
|
public = skia_shaper_public
|
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
sources = skia_shaper_primitive_sources
|
|
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
|
|
|
sources += skia_shaper_harfbuzz_sources
|
|
|
|
deps += [
|
|
|
|
"//third_party/harfbuzz",
|
|
|
|
"//third_party/icu",
|
2018-05-29 19:53:40 +00:00
|
|
|
]
|
|
|
|
}
|
2019-02-22 20:55:39 +00:00
|
|
|
configs += [ "../../:skia_private" ]
|
2018-05-29 19:53:40 +00:00
|
|
|
}
|