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