6d415bce3a
Preps for building in Chromium & G3. Change-Id: I4eb802f27aac7d3652c3b3ce427dcc758d6c31fe Reviewed-on: https://skia-review.googlesource.com/c/185000 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
36 lines
751 B
Plaintext
36 lines
751 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) {
|
|
import("skshaper.gni")
|
|
public_configs = [ ":public_config" ]
|
|
public = skia_shaper_public
|
|
deps = [
|
|
"../..:skia",
|
|
]
|
|
if (target_cpu == "wasm") {
|
|
sources = skia_shaper_primitive_sources
|
|
} else {
|
|
sources = skia_shaper_harfbuzz_sources
|
|
deps += [
|
|
"//third_party/harfbuzz",
|
|
"//third_party/icu",
|
|
]
|
|
}
|
|
configs += [ "../../:skia_private" ]
|
|
}
|
|
}
|