blob: cb221e313cb9207d75c72c6974a3dec61c6ec11d [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" ]
Florin Malita9867f612018-12-12 10:54:49 -050019 public = [
20 "include/SkShaper.h",
21 ]
Herb Derby264182c2018-05-29 15:53:40 -040022 deps = [
23 "../..:skia",
24 ]
Florin Malita9867f612018-12-12 10:54:49 -050025 sources = [
26 "src/SkShaper.cpp",
27 ]
Herb Derby264182c2018-05-29 15:53:40 -040028 if (target_cpu == "wasm") {
Florin Malita9867f612018-12-12 10:54:49 -050029 sources += [ "src/SkShaper_primitive.cpp" ]
Herb Derby264182c2018-05-29 15:53:40 -040030 } else {
Florin Malita9867f612018-12-12 10:54:49 -050031 sources += [ "src/SkShaper_harfbuzz.cpp" ]
Herb Derby264182c2018-05-29 15:53:40 -040032 deps += [
33 "//third_party/harfbuzz",
34 "//third_party/icu",
35 ]
36 }
37 configs += [ "../../:skia_private" ]
Herb Derby264182c2018-05-29 15:53:40 -040038 }
39}