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")
|
2020-09-11 13:59:49 +00:00
|
|
|
import("skshaper.gni")
|
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" ]
|
|
|
|
}
|
2020-06-04 03:29:43 +00:00
|
|
|
if (skia_use_fonthost_mac) {
|
|
|
|
defines += [ "SK_SHAPER_CORETEXT_AVAILABLE" ]
|
|
|
|
}
|
|
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
2019-04-10 18:08:44 +00:00
|
|
|
defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
component("skshaper") {
|
|
|
|
check_includes = false
|
|
|
|
public_configs = [ ":public_config" ]
|
|
|
|
public = skia_shaper_public
|
2020-04-01 18:47:34 +00:00
|
|
|
deps = [ "../..:skia" ]
|
2021-07-27 18:02:28 +00:00
|
|
|
defines = [ "SKSHAPER_IMPLEMENTATION=1" ]
|
2019-04-10 18:08:44 +00:00
|
|
|
sources = skia_shaper_primitive_sources
|
2020-06-04 03:29:43 +00:00
|
|
|
if (skia_use_fonthost_mac) {
|
|
|
|
sources += skia_shaper_coretext_sources
|
2021-03-05 16:26:35 +00:00
|
|
|
if (is_mac) {
|
|
|
|
frameworks = [ "ApplicationServices.framework" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
frameworks = [
|
|
|
|
"CoreFoundation.framework",
|
|
|
|
"CoreText.framework",
|
|
|
|
]
|
|
|
|
}
|
2020-06-04 03:29:43 +00:00
|
|
|
}
|
2019-04-10 18:08:44 +00:00
|
|
|
if (skia_use_icu && skia_use_harfbuzz) {
|
|
|
|
sources += skia_shaper_harfbuzz_sources
|
|
|
|
deps += [
|
2021-07-27 18:02:28 +00:00
|
|
|
"../skunicode",
|
2019-04-10 18:08:44 +00:00
|
|
|
"//third_party/harfbuzz",
|
|
|
|
]
|
|
|
|
}
|
2020-05-29 17:17:05 +00:00
|
|
|
configs += [
|
|
|
|
"../../:skia_private",
|
|
|
|
"../../third_party/icu/config:no_cxx",
|
|
|
|
]
|
2019-04-10 18:08:44 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
group("skshaper") {
|
2018-05-29 19:53:40 +00:00
|
|
|
}
|
2019-07-25 16:33:48 +00:00
|
|
|
}
|