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") 6 7if (skia_use_icu && skia_use_harfbuzz) { 8 skia_source_set("editor_lib") { 9 include_dirs = [ "../.." ] 10 public = [ 11 "include/editor.h", 12 "include/stringslice.h", 13 "include/stringview.h", 14 ] 15 sources = [ 16 "src/editor.cpp", 17 "src/stringslice.cpp", 18 ] 19 public_deps = [ "../..:skia" ] 20 deps = [ ":shape" ] 21 } 22 23 skia_source_set("shape") { 24 include_dirs = [ "../.." ] 25 public = [ "src/shape.h" ] 26 sources = [ "src/shape.cpp" ] 27 public_deps = [ "../..:skia" ] 28 deps = [ 29 ":word_boundaries", 30 "../../modules/skshaper", 31 ] 32 } 33 34 skia_source_set("word_boundaries") { 35 include_dirs = [ "../.." ] 36 public = [ "src/word_boundaries.h" ] 37 sources = [ "src/word_boundaries.cpp" ] 38 configs = [ "../../third_party/icu/config:no_cxx" ] 39 deps = [ "//third_party/icu" ] 40 } 41 42 skia_source_set("editor_app") { 43 testonly = true 44 sources = [ "app/editor_application.cpp" ] 45 public_deps = [ "../..:sk_app" ] 46 deps = [ ":editor_lib" ] 47 } 48} 49