Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: chrome/BUILD.gn

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Fix some behaviors Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/BUILD.gn
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index e29acdc758a6ef4ca9537979b2e65edcd1f48762..aa72831e2d93d986d37a72a19cca6aaa2b6c7cca 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -21,6 +21,7 @@ import("//third_party/WebKit/public/public_features.gni")
import("//third_party/widevine/cdm/widevine.gni")
import("//tools/resources/generate_resource_whitelist.gni")
import("//v8/gni/v8.gni")
+import("//v8/snapshot_toolchain.gni")
if (is_android) {
import("//build/config/android/rules.gni")
@@ -114,10 +115,14 @@ if (!is_android && !is_mac) {
group("chrome") {
public_deps = [
":chrome_initial",
+ "//gin:run_gin_blink_snapshot($v8_snapshot_toolchain)",
]
data_deps = [
":chrome_initial",
]
+ data = [
+ "$root_out_dir/context_blob.bin",
+ ]
if (is_win) {
public_deps += [ ":reorder_imports" ]
}
@@ -790,6 +795,7 @@ if (is_win) {
bundle_data("chrome_framework_resources") {
sources = [
"$root_out_dir/app_mode_loader.app",
+ "$root_out_dir/context_blob.bin",
# This image is used to badge the lock icon in the
# authentication dialogs, such as those used for installation
@@ -809,6 +815,7 @@ if (is_win) {
public_deps = [
":packed_resources",
"//chrome/app_shim:app_mode_loader",
+ "//gin:run_gin_blink_snapshot($v8_snapshot_toolchain)",
]
if (is_chrome_branded) {

Powered by Google App Engine
This is Rietveld 408576698