blob: 2b6101e405f33a09484ef03e15644122d87afa8e [file] [log] [blame]
Hal Canary1f94d392019-07-30 09:27:56 -04001# 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")
6
7if (skia_use_icu && skia_use_harfbuzz) {
Ben Wagner3d9ab7e2021-03-16 14:29:20 -04008 skia_source_set("editor_lib") {
Hal Canarye9cb7622019-07-30 09:58:45 -04009 include_dirs = [ "../.." ]
Hal Canary1f94d392019-07-30 09:27:56 -040010 public = [
Hal Canarya0b66fc2019-08-23 10:16:51 -040011 "include/editor.h",
12 "include/stringslice.h",
13 "include/stringview.h",
Hal Canary1f94d392019-07-30 09:27:56 -040014 ]
15 sources = [
Hal Canarya0b66fc2019-08-23 10:16:51 -040016 "src/editor.cpp",
17 "src/stringslice.cpp",
Hal Canary1f94d392019-07-30 09:27:56 -040018 ]
Mike Kleina01c6b02020-04-01 13:47:34 -050019 public_deps = [ "../..:skia" ]
20 deps = [ ":shape" ]
Hal Canaryded867f2019-08-08 16:16:24 -040021 }
22
Ben Wagner3d9ab7e2021-03-16 14:29:20 -040023 skia_source_set("shape") {
Hal Canaryded867f2019-08-08 16:16:24 -040024 include_dirs = [ "../.." ]
Mike Kleina01c6b02020-04-01 13:47:34 -050025 public = [ "src/shape.h" ]
26 sources = [ "src/shape.cpp" ]
27 public_deps = [ "../..:skia" ]
Hal Canaryded867f2019-08-08 16:16:24 -040028 deps = [
Hal Canarye9cb7622019-07-30 09:58:45 -040029 ":word_boundaries",
Hal Canary1f94d392019-07-30 09:27:56 -040030 "../../modules/skshaper",
31 ]
32 }
33
Ben Wagner3d9ab7e2021-03-16 14:29:20 -040034 skia_source_set("word_boundaries") {
Hal Canarye9cb7622019-07-30 09:58:45 -040035 include_dirs = [ "../.." ]
Mike Kleina01c6b02020-04-01 13:47:34 -050036 public = [ "src/word_boundaries.h" ]
37 sources = [ "src/word_boundaries.cpp" ]
Ben Wagner3d9ab7e2021-03-16 14:29:20 -040038 configs = [ "../../third_party/icu/config:no_cxx" ]
Ben Wagner5b8dd732020-05-29 13:17:05 -040039 deps = [ "//third_party/icu" ]
Hal Canarye9cb7622019-07-30 09:58:45 -040040 }
41
Ben Wagner3d9ab7e2021-03-16 14:29:20 -040042 skia_source_set("editor_app") {
Hal Canary1f94d392019-07-30 09:27:56 -040043 testonly = true
Mike Kleina01c6b02020-04-01 13:47:34 -050044 sources = [ "app/editor_application.cpp" ]
45 public_deps = [ "../..:sk_app" ]
46 deps = [ ":editor_lib" ]
Hal Canary1f94d392019-07-30 09:27:56 -040047 }
48}