blob: 0b72bec1ecbcad7c763da5a06deae11bfed32d7f [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) {
8 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
23 source_set("shape") {
24 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
Hal Canarye9cb7622019-07-30 09:58:45 -040034 source_set("word_boundaries") {
35 include_dirs = [ "../.." ]
Mike Kleina01c6b02020-04-01 13:47:34 -050036 public = [ "src/word_boundaries.h" ]
37 sources = [ "src/word_boundaries.cpp" ]
Ben Wagner5b8dd732020-05-29 13:17:05 -040038 configs += [ "../../third_party/icu/config:no_cxx" ]
39 deps = [ "//third_party/icu" ]
Hal Canarye9cb7622019-07-30 09:58:45 -040040 }
41
Hal Canary1f94d392019-07-30 09:27:56 -040042 source_set("editor_app") {
43 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}