skia2/modules/skplaintexteditor/BUILD.gn
Ben Wagner 5b8dd73546 Hide ICU C++ API from Skia users.
Parts of third_party need the C++ API so hide it from Skia users as
needed to prevent re-introduction.

This also avoids the ICU version renaming / name mangling when building
our own test version of ICU. This makes life in an editor and debugger
much easier.

Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292854
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Change-Id: Id636fbf9e750fe72a4ace8a59fb9acac839a07c4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292967
Reviewed-by: Ben Wagner <bungeman@google.com>
2020-05-29 21:43:19 +00:00

49 lines
1.1 KiB
Plaintext

# Copyright 2019 Google LLC.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gn/skia.gni")
if (skia_use_icu && skia_use_harfbuzz) {
source_set("editor_lib") {
include_dirs = [ "../.." ]
public = [
"include/editor.h",
"include/stringslice.h",
"include/stringview.h",
]
sources = [
"src/editor.cpp",
"src/stringslice.cpp",
]
public_deps = [ "../..:skia" ]
deps = [ ":shape" ]
}
source_set("shape") {
include_dirs = [ "../.." ]
public = [ "src/shape.h" ]
sources = [ "src/shape.cpp" ]
public_deps = [ "../..:skia" ]
deps = [
":word_boundaries",
"../../modules/skshaper",
]
}
source_set("word_boundaries") {
include_dirs = [ "../.." ]
public = [ "src/word_boundaries.h" ]
sources = [ "src/word_boundaries.cpp" ]
configs += [ "../../third_party/icu/config:no_cxx" ]
deps = [ "//third_party/icu" ]
}
source_set("editor_app") {
testonly = true
sources = [ "app/editor_application.cpp" ]
public_deps = [ "../..:sk_app" ]
deps = [ ":editor_lib" ]
}
}