blob: 422ee959a850ccfa7c3475f4d38a9237fa42e42c [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) {
Florin Malita6d415bc2019-01-17 16:42:15 -050018 import("skshaper.gni")
Herb Derby264182c2018-05-29 15:53:40 -040019 public_configs = [ ":public_config" ]
Florin Malita6d415bc2019-01-17 16:42:15 -050020 public = skia_shaper_public
Herb Derby264182c2018-05-29 15:53:40 -040021 deps = [
22 "../..:skia",
23 ]
24 if (target_cpu == "wasm") {
Florin Malita6d415bc2019-01-17 16:42:15 -050025 sources = skia_shaper_primitive_sources
Herb Derby264182c2018-05-29 15:53:40 -040026 } else {
Florin Malita6d415bc2019-01-17 16:42:15 -050027 sources = skia_shaper_harfbuzz_sources
Herb Derby264182c2018-05-29 15:53:40 -040028 deps += [
29 "//third_party/harfbuzz",
30 "//third_party/icu",
31 ]
32 }
33 configs += [ "../../:skia_private" ]
Herb Derby264182c2018-05-29 15:53:40 -040034 }
35}