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) { |
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 8 | skia_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 | ] |
Mike Klein | a01c6b0 | 2020-04-01 13:47:34 -0500 | [diff] [blame] | 19 | public_deps = [ "../..:skia" ] |
| 20 | deps = [ ":shape" ] |
Hal Canary | ded867f | 2019-08-08 16:16:24 -0400 | [diff] [blame] | 21 | } |
| 22 | |
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 23 | skia_source_set("shape") { |
Hal Canary | ded867f | 2019-08-08 16:16:24 -0400 | [diff] [blame] | 24 | include_dirs = [ "../.." ] |
Mike Klein | a01c6b0 | 2020-04-01 13:47:34 -0500 | [diff] [blame] | 25 | public = [ "src/shape.h" ] |
| 26 | sources = [ "src/shape.cpp" ] |
| 27 | public_deps = [ "../..:skia" ] |
Hal Canary | ded867f | 2019-08-08 16:16:24 -0400 | [diff] [blame] | 28 | deps = [ |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 29 | ":word_boundaries", |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 30 | "../../modules/skshaper", |
| 31 | ] |
| 32 | } |
| 33 | |
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 34 | skia_source_set("word_boundaries") { |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 35 | include_dirs = [ "../.." ] |
Mike Klein | a01c6b0 | 2020-04-01 13:47:34 -0500 | [diff] [blame] | 36 | public = [ "src/word_boundaries.h" ] |
| 37 | sources = [ "src/word_boundaries.cpp" ] |
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 38 | configs = [ "../../third_party/icu/config:no_cxx" ] |
Ben Wagner | 5b8dd73 | 2020-05-29 13:17:05 -0400 | [diff] [blame] | 39 | deps = [ "//third_party/icu" ] |
Hal Canary | e9cb762 | 2019-07-30 09:58:45 -0400 | [diff] [blame] | 40 | } |
| 41 | |
Ben Wagner | 3d9ab7e | 2021-03-16 14:29:20 -0400 | [diff] [blame] | 42 | skia_source_set("editor_app") { |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 43 | testonly = true |
Mike Klein | a01c6b0 | 2020-04-01 13:47:34 -0500 | [diff] [blame] | 44 | sources = [ "app/editor_application.cpp" ] |
| 45 | public_deps = [ "../..:sk_app" ] |
| 46 | deps = [ ":editor_lib" ] |
Hal Canary | 1f94d39 | 2019-07-30 09:27:56 -0400 | [diff] [blame] | 47 | } |
| 48 | } |