2018-05-29 19:53:40 +00:00
|
|
|
# Copyright 2018 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
declare_args() {
|
|
|
|
skia_enable_skshaper = true
|
|
|
|
}
|
|
|
|
|
|
|
|
config("public_config") {
|
|
|
|
if (skia_enable_skshaper) {
|
|
|
|
include_dirs = [ "include" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
source_set("skshaper") {
|
|
|
|
if (skia_enable_skshaper) {
|
|
|
|
public_configs = [ ":public_config" ]
|
2018-12-12 15:54:49 +00:00
|
|
|
public = [
|
|
|
|
"include/SkShaper.h",
|
|
|
|
]
|
2018-05-29 19:53:40 +00:00
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
|
|
|
]
|
2018-12-12 15:54:49 +00:00
|
|
|
sources = [
|
|
|
|
"src/SkShaper.cpp",
|
|
|
|
]
|
2018-05-29 19:53:40 +00:00
|
|
|
if (target_cpu == "wasm") {
|
2018-12-12 15:54:49 +00:00
|
|
|
sources += [ "src/SkShaper_primitive.cpp" ]
|
2018-05-29 19:53:40 +00:00
|
|
|
} else {
|
2018-12-12 15:54:49 +00:00
|
|
|
sources += [ "src/SkShaper_harfbuzz.cpp" ]
|
2018-05-29 19:53:40 +00:00
|
|
|
deps += [
|
|
|
|
"//third_party/harfbuzz",
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
configs += [ "../../:skia_private" ]
|
|
|
|
}
|
|
|
|
}
|