1# Copyright 2016 The V8 project authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# Variable that can be used to support multiple build scenarios, like having 6# Chromium specific targets in a client project's GN file etc. 7build_with_chromium = false 8 9# Used by perfetto to distinguish from its own standalone build and the 10# chromium build. 11perfetto_build_with_embedder = true 12 13# When embedding perfetto, its build files need to know in which BUILD.gn file 14# the embedder (v8) declared the protobuf targets. In the v8 case they are 15# declared in the root v8/BUILD.gn. 16perfetto_protobuf_target_prefix = "//" 17perfetto_protobuf_gni = "//gni/proto_library.gni" 18 19# We use Perfetto's Trace Processor to convert traces to the legacy JSON 20# format. 21enable_perfetto_trace_processor = true 22 23# When building with chromium, determines whether we want to also use the 24# perfetto library from chromium instead declaring our own. 25use_perfetto_client_library = false 26 27# Uncomment these to specify a different NDK location and version in 28# non-Chromium builds. 29# default_android_ndk_root = "//third_party/android_ndk" 30# default_android_ndk_version = "r10e" 31 32# Some non-Chromium builds don't support building java targets. 33enable_java_templates = false 34 35# Allows different projects to specify their own suppressions files. 36asan_suppressions_file = "//build/sanitizers/asan_suppressions.cc" 37lsan_suppressions_file = "//build/sanitizers/lsan_suppressions.cc" 38tsan_suppressions_file = "//build/sanitizers/tsan_suppressions.cc" 39 40# Skip assertions about 4GiB file size limit. 41ignore_elf32_limitations = true 42 43if (host_os == "mac") { 44 _result = exec_script("//build/mac/should_use_hermetic_xcode.py", 45 [ target_os ], 46 "value") 47 assert(_result != 2, 48 "Do not allow building targets with the default" + 49 "hermetic toolchain if the minimum OS version is not met.") 50 assert(_result != 3, 51 "iOS does not support building with a hermetic toolchain. " + 52 "Please install Xcode.") 53 54 use_system_xcode = _result == 0 55} 56