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" ] |
Florin Malita | 9867f61 | 2018-12-12 10:54:49 -0500 | [diff] [blame] | 19 | public = [ |
| 20 | "include/SkShaper.h", |
| 21 | ] |
Herb Derby | 264182c | 2018-05-29 15:53:40 -0400 | [diff] [blame] | 22 | deps = [ |
| 23 | "../..:skia", |
| 24 | ] |
Florin Malita | 9867f61 | 2018-12-12 10:54:49 -0500 | [diff] [blame] | 25 | sources = [ |
| 26 | "src/SkShaper.cpp", |
| 27 | ] |
Herb Derby | 264182c | 2018-05-29 15:53:40 -0400 | [diff] [blame] | 28 | if (target_cpu == "wasm") { |
Florin Malita | 9867f61 | 2018-12-12 10:54:49 -0500 | [diff] [blame] | 29 | sources += [ "src/SkShaper_primitive.cpp" ] |
Herb Derby | 264182c | 2018-05-29 15:53:40 -0400 | [diff] [blame] | 30 | } else { |
Florin Malita | 9867f61 | 2018-12-12 10:54:49 -0500 | [diff] [blame] | 31 | sources += [ "src/SkShaper_harfbuzz.cpp" ] |
Herb Derby | 264182c | 2018-05-29 15:53:40 -0400 | [diff] [blame] | 32 | deps += [ |
| 33 | "//third_party/harfbuzz", |
| 34 | "//third_party/icu", |
| 35 | ] |
| 36 | } |
| 37 | configs += [ "../../:skia_private" ] |
Herb Derby | 264182c | 2018-05-29 15:53:40 -0400 | [diff] [blame] | 38 | } |
| 39 | } |