skia2/modules/skshaper/BUILD.gn
Herb Derby 264182c3f7 Make SkShaper a module
Change-Id: I3709e49ba865f14260660cc07a762b9ac837cb3c
Reviewed-on: https://skia-review.googlesource.com/130602
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2018-05-30 04:04:07 +00:00

41 lines
768 B
Plaintext

# 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" ]
public = [ "include/SkShaper.h" ]
deps = [
"../..:skia",
]
if (target_cpu == "wasm") {
sources = [
"src/SkShaper_primitive.cpp",
]
} else {
sources = [
"src/SkShaper_harfbuzz.cpp",
]
deps += [
"//third_party/harfbuzz",
"//third_party/icu",
]
}
configs += [ "../../:skia_private" ]
}
}