blob: b6dff21b15434659f318d10322ed8a91e8589b16 [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/compiler/compiler.gni")
import("//build/config/ui.gni")
import("//build/toolchain/gcc_toolchain.gni")
import("//third_party/blink/public/public_features.gni")
if (is_android) {
import("//build/config/android/config.gni")
}
if (current_cpu == "arm") {
import("//build/config/arm.gni")
}
declare_args() {
# If true, use PFFFT for WebAudio FFT support. Do not use for Mac because the
# FFT library there is much faster.
use_webaudio_pffft = target_os != "mac"
}
declare_args() {
# Format the generated files to improve the code readability. Apply clang-
# format, gn format, etc. to the generated files if possible.
blink_enable_generated_code_formatting = false
# How many symbols to include in the build of blink. This affects
# the performance of the build since the symbols are large and dealing with
# them is slow.
# 2 means regular build with symbols.
# 1 means medium symbols, usually enough for backtraces only. Symbols with
# internal linkage (static functions or those in anonymous namespaces) may not
# appear when using this level. On some platforms (including Windows)
# filenames and line numbers will be included. Information about types and
# locals is not included.
# 0 means minimal symbols, which on some platforms (including Windows) may
# include function names suitable for backtraces.
# -1 means auto-set according to debug/release and platform.
blink_symbol_level = -1
# If true, defaults image interpolation to low quality.
use_low_quality_image_interpolation = is_android
# If true, ffmpeg will be used for computing FFTs for WebAudio
use_webaudio_ffmpeg = !is_mac && !is_android && !use_webaudio_pffft
# If true, the experimental renderer extensions library will be used.
use_blink_extensions_chromeos = is_chromeos
}
# feature_defines_list ---------------------------------------------------------
feature_defines_list = []
if (use_blink_extensions_chromeos) {
feature_defines_list += [ "USE_BLINK_EXTENSIONS_CHROMEOS=1" ]
}
if (use_low_quality_image_interpolation) {
feature_defines_list += [ "WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION=1" ]
}
if (use_webaudio_ffmpeg) {
feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ]
}
if (use_webaudio_pffft) {
feature_defines_list += [ "WTF_USE_WEBAUDIO_PFFFT=1" ]
}
if (blink_symbol_level == 2) {
blink_symbols_config = [ "//build/config/compiler:symbols" ]
} else if (blink_symbol_level == 1) {
blink_symbols_config = [ "//build/config/compiler:minimal_symbols" ]
} else if (blink_symbol_level == 0) {
blink_symbols_config = [ "//build/config/compiler:no_symbols" ]
} else {
blink_symbols_config = [ "//build/config/compiler:default_symbols" ]
}