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

Side by Side Diff: extensions/shell/BUILD.gn

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for some comments 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//build/util/process_version.gni") 7 import("//build/util/process_version.gni")
8 import("//extensions/features/features.gni") 8 import("//extensions/features/features.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//tools/grit/grit_rule.gni") 10 import("//tools/grit/grit_rule.gni")
11 import("//v8/snapshot_toolchain.gni")
11 if (is_mac) { 12 if (is_mac) {
12 import("//build/config/mac/rules.gni") 13 import("//build/config/mac/rules.gni")
13 import("//third_party/icu/config.gni") 14 import("//third_party/icu/config.gni")
14 import("//v8/gni/v8.gni") 15 import("//v8/gni/v8.gni")
15 } 16 }
16 17
17 assert(enable_extensions) 18 assert(enable_extensions)
18 19
19 grit("resources") { 20 grit("resources") {
20 source = "app_shell_resources.grd" 21 source = "app_shell_resources.grd"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 "app/shell_main.cc", 249 "app/shell_main.cc",
249 ] 250 ]
250 251
251 deps = [ 252 deps = [
252 ":app_shell_lib", 253 ":app_shell_lib",
253 "//build/config/sanitizers:deps", 254 "//build/config/sanitizers:deps",
254 "//build/win:default_exe_manifest", 255 "//build/win:default_exe_manifest",
255 "//extensions:shell_and_test_pak", 256 "//extensions:shell_and_test_pak",
256 ] 257 ]
257 258
259 public_deps = [
260 "//gin:v8_context_snapshot_for_blink",
261 ]
262
258 if (is_win) { 263 if (is_win) {
259 configs += [ "//build/config/win:windowed" ] 264 configs += [ "//build/config/win:windowed" ]
260 configs -= [ "//build/config/win:console" ] 265 configs -= [ "//build/config/win:console" ]
261 } 266 }
262 } 267 }
263 } 268 }
264 269
265 test("app_shell_unittests") { 270 test("app_shell_unittests") {
266 sources = [ 271 sources = [
267 "../test/extensions_unittests_main.cc", 272 "../test/extensions_unittests_main.cc",
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 "//build/util/LASTCHANGE", 324 "//build/util/LASTCHANGE",
320 "//chrome/VERSION", 325 "//chrome/VERSION",
321 ] 326 ]
322 output = "$target_gen_dir/common/version.h" 327 output = "$target_gen_dir/common/version.h"
323 } 328 }
324 329
325 if (is_mac) { 330 if (is_mac) {
326 bundle_data("app_shell_framework_resources") { 331 bundle_data("app_shell_framework_resources") {
327 sources = [ 332 sources = [
328 "$root_gen_dir/extensions/shell/app_shell_resources.pak", 333 "$root_gen_dir/extensions/shell/app_shell_resources.pak",
334 "$root_out_dir/context_blob.bin",
329 "$root_out_dir/extensions_shell_and_test.pak", 335 "$root_out_dir/extensions_shell_and_test.pak",
330 ] 336 ]
331 public_deps = [ 337 public_deps = [
332 ":resources_grit", 338 ":resources_grit",
333 "//extensions:shell_and_test_pak", 339 "//extensions:shell_and_test_pak",
340 "//gin:v8_context_snapshot_for_blink",
334 ] 341 ]
335 if (icu_use_data_file) { 342 if (icu_use_data_file) {
336 sources += [ "$root_out_dir/icudtl.dat" ] 343 sources += [ "$root_out_dir/icudtl.dat" ]
337 public_deps += [ "//third_party/icu:icudata" ] 344 public_deps += [ "//third_party/icu:icudata" ]
338 } 345 }
339 if (v8_use_external_startup_data) { 346 if (v8_use_external_startup_data) {
340 sources += [ 347 sources += [
341 "$root_out_dir/natives_blob.bin", 348 "$root_out_dir/natives_blob.bin",
342 "$root_out_dir/snapshot_blob.bin", 349 "$root_out_dir/snapshot_blob.bin",
343 ] 350 ]
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 "//extensions/browser", 455 "//extensions/browser",
449 ] 456 ]
450 457
451 if (is_chromeos) { 458 if (is_chromeos) {
452 deps += [ 459 deps += [
453 "//chromeos:test_support", 460 "//chromeos:test_support",
454 "//components/keyed_service/content", 461 "//components/keyed_service/content",
455 ] 462 ]
456 } 463 }
457 } 464 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698