• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6import("../../gn/skia.gni")
7
8declare_args() {
9  skia_enable_skshaper = !(is_win && is_component_build)
10}
11
12if (skia_enable_skshaper) {
13  config("public_config") {
14    include_dirs = [ "include" ]
15    defines = []
16    if (skia_use_icu) {
17      defines += [ "SK_SHAPER_HARFBUZZ_AVAILABLE" ]
18    }
19  }
20
21  component("skshaper") {
22    check_includes = false
23    import("skshaper.gni")
24    public_configs = [ ":public_config" ]
25    public = skia_shaper_public
26    deps = [ "../..:skia" ]
27    sources = skia_shaper_primitive_sources
28    if (skia_use_icu && skia_use_harfbuzz) {
29      sources += skia_shaper_harfbuzz_sources
30      deps += [
31        "//third_party/harfbuzz",
32        "//third_party/icu",
33      ]
34    }
35    configs += [ "../../:skia_private" ]
36  }
37} else {
38  group("skshaper") {
39  }
40}
41