1 # Copyright 2018 Google Inc. 2 # 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 6 import("../../gn/skia.gni") 7 8 config("public_config") { 9 include_dirs = [ "include" ] 10 defines = [] 11 if (skia_use_icu) { 12 defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ] 13 } 14 } 15 16 component("skshaper") { 17 import("skshaper.gni") 18 public_configs = [ ":public_config" ] 19 public = skia_shaper_public 20 deps = [ 21 "../..:skia", 22 ] 23 sources = skia_shaper_primitive_sources 24 if (skia_use_icu && skia_use_harfbuzz) { 25 sources += skia_shaper_harfbuzz_sources 26 deps += [ 27 "//third_party/harfbuzz", 28 "//third_party/icu", 29 ] 30 } 31 configs += [ "../../:skia_private" ] 32 } 33