Herb Derby | 264182c | 2018-05-29 15:53:40 -0400 | [diff] [blame^] | 1 | # 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 | |
| 6 | declare_args() { |
| 7 | skia_enable_skshaper = true |
| 8 | } |
| 9 | |
| 10 | config("public_config") { |
| 11 | if (skia_enable_skshaper) { |
| 12 | include_dirs = [ "include" ] |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | source_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 | |