c725e8f7ea
Similar to the Skottie refactor that just landed, this avoids having an empty component when shaper is disabled (which turns into a DLL with no sources, and a missing DllMain). I think this pattern of having modules expose the same components as empty groups is simpler (and also fixes the fact that only two of N references in top-level BUILD.gn were guarded). Also, no one is using the define? Change-Id: I9d25c1cfbd42336874f4428bf61f3e34a4a18d3c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/207303 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
23 lines
697 B
Plaintext
23 lines
697 B
Plaintext
# Copyright 2019 Google LLC.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
if (!defined(is_skia_standalone)) {
|
|
is_skia_standalone = false
|
|
}
|
|
is_skia_dev_build = is_skia_standalone && !is_official_build
|
|
|
|
declare_args() {
|
|
skia_enable_gpu = true
|
|
skia_enable_tools = is_skia_dev_build
|
|
skia_use_icu = !is_fuchsia && !is_ios
|
|
skia_use_harfbuzz = true
|
|
}
|
|
declare_args() {
|
|
# TODO: set skia_pdf_subset_harfbuzz to skia_use_harfbuzz.
|
|
skia_pdf_subset_harfbuzz = false
|
|
}
|
|
|
|
# Our tools require static linking (they use non-exported symbols), and the GPU backend.
|
|
skia_enable_tools = skia_enable_tools && !is_component_build && skia_enable_gpu
|