blob: 3452110a1c286c2d615b6a52ed7d63e65ebbd5ea [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
Hal Canary32498f02019-02-04 15:36:31 -050010import("../../gn/skia.gni")
11
Herb Derby264182c2018-05-29 15:53:40 -040012config("public_config") {
13 if (skia_enable_skshaper) {
14 include_dirs = [ "include" ]
15 }
16}
17
18source_set("skshaper") {
19 if (skia_enable_skshaper) {
Florin Malita6d415bc2019-01-17 16:42:15 -050020 import("skshaper.gni")
Herb Derby264182c2018-05-29 15:53:40 -040021 public_configs = [ ":public_config" ]
Florin Malita6d415bc2019-01-17 16:42:15 -050022 public = skia_shaper_public
Herb Derby264182c2018-05-29 15:53:40 -040023 deps = [
24 "../..:skia",
25 ]
Hal Canary32498f02019-02-04 15:36:31 -050026 if (target_cpu == "wasm" || !skia_use_icu) {
Florin Malita6d415bc2019-01-17 16:42:15 -050027 sources = skia_shaper_primitive_sources
Herb Derby264182c2018-05-29 15:53:40 -040028 } else {
Florin Malita6d415bc2019-01-17 16:42:15 -050029 sources = skia_shaper_harfbuzz_sources
Herb Derby264182c2018-05-29 15:53:40 -040030 deps += [
31 "//third_party/harfbuzz",
32 "//third_party/icu",
33 ]
34 }
35 configs += [ "../../:skia_private" ]
Herb Derby264182c2018-05-29 15:53:40 -040036 }
37}