2019-02-04 20:36:31 +00:00
|
|
|
# Copyright 2019 Google LLC.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2019-02-22 15:04:06 +00:00
|
|
|
if (!defined(is_skia_standalone)) {
|
|
|
|
is_skia_standalone = false
|
|
|
|
}
|
|
|
|
|
2019-09-25 21:14:35 +00:00
|
|
|
is_skia_dev_build = is_skia_standalone && !is_official_build
|
2019-09-04 14:05:33 +00:00
|
|
|
|
2019-02-04 20:36:31 +00:00
|
|
|
declare_args() {
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_android_serial = ""
|
|
|
|
skia_compile_processors = false
|
2020-03-18 21:37:23 +00:00
|
|
|
skia_enable_api_available_macro = true
|
2020-04-24 17:00:48 +00:00
|
|
|
skia_enable_android_utils = is_skia_dev_build
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_enable_ccpr = true
|
|
|
|
skia_enable_discrete_gpu = true
|
|
|
|
skia_enable_flutter_defines = false
|
|
|
|
skia_enable_fontmgr_empty = false
|
|
|
|
skia_enable_fontmgr_fuchsia = is_fuchsia
|
|
|
|
skia_enable_fontmgr_win = is_win
|
|
|
|
skia_enable_fontmgr_win_gdi = is_win
|
2019-02-22 15:04:06 +00:00
|
|
|
skia_enable_gpu = true
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_enable_pdf = true
|
2020-01-21 17:39:20 +00:00
|
|
|
skia_enable_skottie = !(is_win && is_component_build)
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_enable_sksl_interpreter = is_skia_dev_build
|
|
|
|
skia_enable_skvm_jit =
|
|
|
|
is_skia_dev_build && ((target_cpu == "x64" && (is_linux || is_mac)) ||
|
|
|
|
(target_cpu == "arm64" && is_android))
|
2019-02-22 15:04:06 +00:00
|
|
|
skia_enable_tools = is_skia_dev_build
|
2020-02-24 16:36:15 +00:00
|
|
|
skia_enable_gpu_debug_layers = is_skia_dev_build && is_debug
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_generate_workarounds = false
|
|
|
|
skia_include_multiframe_procs = false
|
|
|
|
skia_lex = false
|
2019-11-20 21:01:31 +00:00
|
|
|
skia_libgifcodec_path = "third_party/externals/libgifcodec"
|
2020-04-03 15:59:37 +00:00
|
|
|
skia_pdf_subset_harfbuzz =
|
|
|
|
false # TODO: set skia_pdf_subset_harfbuzz to skia_use_harfbuzz.
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_qt_path = getenv("QT_PATH")
|
|
|
|
skia_skqp_global_error_tolerance = 0
|
|
|
|
skia_tools_require_resources = false
|
2019-09-25 21:14:35 +00:00
|
|
|
skia_update_fuchsia_sdk = false
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_use_angle = false
|
|
|
|
skia_use_dawn = false
|
2020-02-18 19:34:38 +00:00
|
|
|
skia_use_direct3d = false
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_use_egl = false
|
|
|
|
skia_use_expat = true
|
|
|
|
skia_use_experimental_xform = false
|
|
|
|
skia_use_ffmpeg = false
|
|
|
|
skia_use_fixed_gamma_text = is_android
|
|
|
|
skia_use_fontconfig = is_linux
|
|
|
|
skia_use_fonthost_mac = is_mac
|
|
|
|
skia_use_freetype = is_android || is_fuchsia || is_linux
|
2019-02-22 20:55:39 +00:00
|
|
|
skia_use_harfbuzz = true
|
2019-11-08 21:18:15 +00:00
|
|
|
skia_use_gl = !is_fuchsia
|
2020-03-09 13:59:56 +00:00
|
|
|
skia_use_icu = !is_fuchsia
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_use_libheif = is_skia_dev_build
|
2020-03-09 18:23:30 +00:00
|
|
|
skia_use_libjpeg_turbo_decode = true
|
|
|
|
skia_use_libjpeg_turbo_encode = true
|
|
|
|
skia_use_libpng_decode = true
|
|
|
|
skia_use_libpng_encode = true
|
|
|
|
skia_use_libwebp_decode = true
|
|
|
|
skia_use_libwebp_encode = true
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_use_lua = is_skia_dev_build && !is_ios
|
|
|
|
skia_use_metal = false
|
|
|
|
skia_use_opencl = false
|
|
|
|
skia_use_piex = !is_win
|
|
|
|
skia_use_wuffs = false
|
|
|
|
skia_use_x11 = is_linux
|
|
|
|
skia_use_xps = true
|
|
|
|
skia_use_zlib = true
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
skia_ios_identity = ".*Google.*"
|
|
|
|
skia_ios_profile = "Google Development"
|
|
|
|
}
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
skia_gl_standard = "gl"
|
|
|
|
} else if (is_ios) {
|
|
|
|
skia_gl_standard = "gles"
|
|
|
|
} else {
|
|
|
|
skia_gl_standard = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
skia_use_vulkan = defined(ndk_api) && ndk_api >= 24
|
|
|
|
} else if (is_fuchsia) {
|
2019-09-25 21:14:35 +00:00
|
|
|
skia_use_vulkan = true
|
2019-09-03 17:46:25 +00:00
|
|
|
} else {
|
2020-03-19 19:54:28 +00:00
|
|
|
skia_use_vulkan = false
|
2019-09-03 17:46:25 +00:00
|
|
|
}
|
2019-02-04 20:36:31 +00:00
|
|
|
}
|
2019-09-03 17:46:25 +00:00
|
|
|
|
2019-02-20 16:25:45 +00:00
|
|
|
declare_args() {
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_enable_atlas_text = is_skia_dev_build && skia_enable_gpu
|
|
|
|
skia_enable_fontmgr_android = skia_use_expat && skia_use_freetype
|
|
|
|
skia_enable_fontmgr_custom =
|
|
|
|
is_linux && skia_use_freetype && !skia_use_fontconfig
|
|
|
|
skia_enable_fontmgr_custom_empty = is_fuchsia && skia_use_freetype
|
|
|
|
skia_enable_nvpr = !skia_enable_flutter_defines
|
|
|
|
skia_enable_spirv_validation = is_skia_dev_build && is_debug && !skia_use_dawn
|
2020-03-09 18:23:30 +00:00
|
|
|
skia_use_dng_sdk =
|
|
|
|
!is_fuchsia && skia_use_libjpeg_turbo_decode && skia_use_zlib
|
2019-11-20 21:01:31 +00:00
|
|
|
skia_use_libgifcodec = !skia_use_wuffs
|
2019-09-03 17:46:25 +00:00
|
|
|
skia_use_sfntly = skia_use_icu
|
2020-02-24 16:36:15 +00:00
|
|
|
skia_enable_vulkan_debug_layers = skia_enable_gpu_debug_layers
|
|
|
|
skia_enable_direct3d_debug_layer = skia_enable_gpu_debug_layers
|
2020-04-27 14:26:21 +00:00
|
|
|
skia_use_vma = skia_use_vulkan
|
2019-02-20 16:25:45 +00:00
|
|
|
}
|
2019-02-22 15:04:06 +00:00
|
|
|
|
|
|
|
# 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
|