blob: eb67f90790e86659223864ddd75cb4e3e0d2dd45 [file] [log] [blame]
Herb Derby264182c2018-05-29 15:53:40 -04001# 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
6declare_args() {
7 skia_enable_skshaper = true
8}
9
10config("public_config") {
11 if (skia_enable_skshaper) {
12 include_dirs = [ "include" ]
13 }
14}
15
16source_set("skshaper") {
17 if (skia_enable_skshaper) {
18 public_configs = [ ":public_config" ]
19 public = [ "include/SkShaper.h" ]
20 deps = [
21 "../..:skia",
22 ]
23 if (target_cpu == "wasm") {
24 sources = [
25 "src/SkShaper_primitive.cpp",
26 ]
27 } else {
28 sources = [
29 "src/SkShaper_harfbuzz.cpp",
30 ]
31 deps += [
32 "//third_party/harfbuzz",
33 "//third_party/icu",
34 ]
35 }
36 configs += [ "../../:skia_private" ]
37
38 }
39}
40