• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 Google LLC.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("../../gn/skia.gni")
6import("../../modules/skshaper/skshaper.gni")
7
8if (skia_use_icu && skia_enable_skshaper) {
9  skia_source_set("editor_lib") {
10    include_dirs = [ "../.." ]
11    public = [
12      "include/editor.h",
13      "include/stringslice.h",
14      "include/stringview.h",
15    ]
16    sources = [
17      "src/editor.cpp",
18      "src/stringslice.cpp",
19    ]
20    public_deps = [ "../..:skia" ]
21    deps = [ ":shape" ]
22  }
23
24  skia_source_set("shape") {
25    include_dirs = [ "../.." ]
26    public = [ "src/shape.h" ]
27    sources = [ "src/shape.cpp" ]
28    public_deps = [ "../..:skia" ]
29    deps = [
30      ":word_boundaries",
31      "../../modules/skshaper",
32    ]
33  }
34
35  skia_source_set("word_boundaries") {
36    include_dirs = [ "../.." ]
37    public = [ "src/word_boundaries.h" ]
38    sources = [ "src/word_boundaries.cpp" ]
39    configs = [ "../../third_party/icu/config:no_cxx" ]
40    deps = [ "//third_party/icu" ]
41  }
42
43  skia_source_set("editor_app") {
44    testonly = true
45    sources = [ "app/editor_application.cpp" ]
46    public_deps = [ "../..:sk_app" ]
47    deps = [ ":editor_lib" ]
48  }
49} else {
50  group("editor_app") {
51  }
52}
53