b6f5378333
New tests that use skshaper should hide behind SK_USING_SKSHAPER define. Change-Id: Ifcd726d931e3eb1ff209085a63e8129c9cd5596d Reviewed-on: https://skia-review.googlesource.com/c/192026 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
34 lines
747 B
Plaintext
34 lines
747 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" ]
|
|
}
|
|
}
|
|
|
|
source_set("skshaper") {
|
|
if (skia_enable_skshaper) {
|
|
import("skshaper.gni")
|
|
public_configs = [ ":public_config" ]
|
|
public = skia_shaper_public
|
|
deps = [
|
|
"../..:skia",
|
|
]
|
|
if (target_cpu == "wasm" || !skia_use_icu) {
|
|
sources = skia_shaper_primitive_sources
|
|
} else {
|
|
sources = skia_shaper_harfbuzz_sources
|
|
deps += [
|
|
"//third_party/harfbuzz",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
configs += [ "../../:skia_private" ]
|
|
}
|
|
}
|