Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 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 | |
| 5 | import("../../gn/skia.gni") |
| 6 | |
| 7 | if (skia_use_icu && skia_use_harfbuzz) { |
| 8 | source_set("editor_lib") { |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 9 | include_dirs = [ "../.." ] |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 10 | public = [ |
Hal Canary | a0b66fc | 2019-08-23 10:16:51 -0400 | [diff] [blame^] | 11 | "include/editor.h", |
| 12 | "include/stringslice.h", |
| 13 | "include/stringview.h", |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 14 | ] |
| 15 | sources = [ |
Hal Canary | a0b66fc | 2019-08-23 10:16:51 -0400 | [diff] [blame^] | 16 | "src/editor.cpp", |
| 17 | "src/stringslice.cpp", |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 18 | ] |
| 19 | public_deps = [ |
| 20 | "../..:skia", |
| 21 | ] |
| 22 | deps = [ |
Hal Canary | ded867f | 2019-08-08 16:16:24 -0400 | [diff] [blame] | 23 | ":shape", |
| 24 | ] |
| 25 | } |
| 26 | |
| 27 | source_set("shape") { |
| 28 | include_dirs = [ "../.." ] |
| 29 | public = [ |
Hal Canary | a0b66fc | 2019-08-23 10:16:51 -0400 | [diff] [blame^] | 30 | "src/shape.h", |
Hal Canary | ded867f | 2019-08-08 16:16:24 -0400 | [diff] [blame] | 31 | ] |
| 32 | sources = [ |
Hal Canary | a0b66fc | 2019-08-23 10:16:51 -0400 | [diff] [blame^] | 33 | "src/shape.cpp", |
Hal Canary | ded867f | 2019-08-08 16:16:24 -0400 | [diff] [blame] | 34 | ] |
| 35 | public_deps = [ |
| 36 | "../..:skia", |
| 37 | ] |
| 38 | deps = [ |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 39 | ":word_boundaries", |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 40 | "../../modules/skshaper", |
| 41 | ] |
| 42 | } |
| 43 | |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 44 | source_set("word_boundaries") { |
| 45 | include_dirs = [ "../.." ] |
| 46 | public = [ |
Hal Canary | a0b66fc | 2019-08-23 10:16:51 -0400 | [diff] [blame^] | 47 | "src/word_boundaries.h", |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 48 | ] |
| 49 | sources = [ |
Hal Canary | a0b66fc | 2019-08-23 10:16:51 -0400 | [diff] [blame^] | 50 | "src/word_boundaries.cpp", |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 51 | ] |
| 52 | deps = [ |
| 53 | "../../third_party/icu", |
| 54 | ] |
| 55 | } |
| 56 | |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 57 | source_set("editor_app") { |
| 58 | testonly = true |
| 59 | sources = [ |
Hal Canary | a0b66fc | 2019-08-23 10:16:51 -0400 | [diff] [blame^] | 60 | "app/editor_application.cpp", |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 61 | ] |
Hal Canary | 7679b28 | 2019-07-30 12:37:43 -0400 | [diff] [blame] | 62 | public_deps = [ |
| 63 | "../..:sk_app", |
| 64 | ] |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 65 | deps = [ |
| 66 | ":editor_lib", |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 67 | ] |
| 68 | } |
| 69 | } |