mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
20 lines
797 B
Plaintext
20 lines
797 B
Plaintext
|
# Copyright 2017 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.
|
||
|
|
||
|
# Targets in ths file are to take a V8 context snapshot on build time.
|
||
|
# Created V8 context snapshot is used in
|
||
|
# third_party/WebKit/Source/bindings/core/v8/V8ContextSnapshot.{cpp|h}.
|
||
|
# to speedup creating a V8 context and setting up around it.
|
||
|
|
||
|
import("//build/config/chromecast_build.gni")
|
||
|
import("//build/config/v8_target_cpu.gni")
|
||
|
import("//v8/gni/v8.gni")
|
||
|
|
||
|
declare_args() {
|
||
|
# TODO(crbug.com/764576): Enable the feature on more environments.
|
||
|
use_v8_context_snapshot =
|
||
|
target_os != "chromeos" && target_os != "android" && !is_chromecast &&
|
||
|
v8_use_external_startup_data && (v8_target_cpu == target_cpu || is_msan)
|
||
|
}
|