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")
|
|
|
|
|
2019-04-10 18:08:44 +00:00
|
|
|
declare_args() {
|
2019-11-18 22:19:42 +00:00
|
|
|
skia_enable_skshaper = true
|
2018-05-29 19:53:40 +00:00
|
|
|
}
|
|
|
|
|
2019-04-10 18:08:44 +00:00
|
|
|
if (skia_enable_skshaper) {
|
|
|
|
config("public_config") {
|
|
|
|
include_dirs = [ "include" ]
|
|
|
|
defines = []
|
2020-01-30 15:43:11 +00:00
|
|
|
if (is_component_build) {
|
|
|
|
defines += [ "SKSHAPER_DLL" ]
|
|
|
|
}
|
2019-04-10 18:08:44 +00:00
|
|
|
if (skia_use_icu) {
|
|
|
|
defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
component("skshaper") {
|
|
|
|
check_includes = false
|
|
|
|
import("skshaper.gni")
|
|
|
|
public_configs = [ ":public_config" ]
|
|
|
|
public = skia_shaper_public
|
2020-04-01 18:47:34 +00:00
|
|
|
deps = [ "../..:skia" ]
|
2020-01-30 15:43:11 +00:00
|
|
|
defines = [ "SKSHAPER_IMPLEMENTATION=1" ]
|
2019-04-10 18:08:44 +00:00
|
|
|
sources = skia_shaper_primitive_sources
|
|
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
|
|
|
sources += skia_shaper_harfbuzz_sources
|
|
|
|
deps += [
|
|
|
|
"//third_party/harfbuzz",
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
configs += [ "../../:skia_private" ]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
group("skshaper") {
|
2018-05-29 19:53:40 +00:00
|
|
|
}
|
2019-07-25 16:33:48 +00:00
|
|
|
}
|