aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/skshaper/BUILD.gn
blob: eb67f90790e86659223864ddd75cb4e3e0d2dd45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2018 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

declare_args() {
  skia_enable_skshaper = true
}

config("public_config") {
  if (skia_enable_skshaper) {
    include_dirs = [ "include" ]
  }
}

source_set("skshaper") {
  if (skia_enable_skshaper) {
    public_configs = [ ":public_config" ]
    public = [ "include/SkShaper.h" ]
    deps = [
      "../..:skia",
    ]
    if (target_cpu == "wasm") {
      sources = [
        "src/SkShaper_primitive.cpp",
      ]
    } else {
      sources = [
        "src/SkShaper_harfbuzz.cpp",
      ]
      deps += [
        "//third_party/harfbuzz",
        "//third_party/icu",
      ]
    }
    configs += [ "../../:skia_private" ]

  }
}