2019-07-30 13:27:56 +00:00
|
|
|
# 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) {
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("editor_lib") {
|
2019-07-30 13:58:45 +00:00
|
|
|
include_dirs = [ "../.." ]
|
2019-07-30 13:27:56 +00:00
|
|
|
public = [
|
2019-08-23 14:16:51 +00:00
|
|
|
"include/editor.h",
|
|
|
|
"include/stringslice.h",
|
|
|
|
"include/stringview.h",
|
2019-07-30 13:27:56 +00:00
|
|
|
]
|
|
|
|
sources = [
|
2019-08-23 14:16:51 +00:00
|
|
|
"src/editor.cpp",
|
|
|
|
"src/stringslice.cpp",
|
2019-07-30 13:27:56 +00:00
|
|
|
]
|
2020-04-01 18:47:34 +00:00
|
|
|
public_deps = [ "../..:skia" ]
|
|
|
|
deps = [ ":shape" ]
|
2019-08-08 20:16:24 +00:00
|
|
|
}
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("shape") {
|
2019-08-08 20:16:24 +00:00
|
|
|
include_dirs = [ "../.." ]
|
2020-04-01 18:47:34 +00:00
|
|
|
public = [ "src/shape.h" ]
|
|
|
|
sources = [ "src/shape.cpp" ]
|
|
|
|
public_deps = [ "../..:skia" ]
|
2019-07-30 13:27:56 +00:00
|
|
|
deps = [
|
2019-07-30 13:58:45 +00:00
|
|
|
":word_boundaries",
|
2019-07-30 13:27:56 +00:00
|
|
|
"../../modules/skshaper",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("word_boundaries") {
|
2019-07-30 13:58:45 +00:00
|
|
|
include_dirs = [ "../.." ]
|
2020-04-01 18:47:34 +00:00
|
|
|
public = [ "src/word_boundaries.h" ]
|
|
|
|
sources = [ "src/word_boundaries.cpp" ]
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../../third_party/icu/config:no_cxx" ]
|
2020-05-29 17:17:05 +00:00
|
|
|
deps = [ "//third_party/icu" ]
|
2019-07-30 13:58:45 +00:00
|
|
|
}
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("editor_app") {
|
2019-07-30 13:27:56 +00:00
|
|
|
testonly = true
|
2020-04-01 18:47:34 +00:00
|
|
|
sources = [ "app/editor_application.cpp" ]
|
|
|
|
public_deps = [ "../..:sk_app" ]
|
|
|
|
deps = [ ":editor_lib" ]
|
2019-07-30 13:27:56 +00:00
|
|
|
}
|
|
|
|
}
|