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

Side by Side Diff: content/shell/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 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/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/config/win/console_app.gni") 8 import("//build/config/win/console_app.gni")
9 import("//build/config/win/manifest.gni") 9 import("//build/config/win/manifest.gni")
10 import("//media/media_options.gni") 10 import("//media/media_options.gni")
11 import("//mojo/public/tools/bindings/mojom.gni") 11 import("//mojo/public/tools/bindings/mojom.gni")
12 import("//ppapi/features/features.gni") 12 import("//ppapi/features/features.gni")
13 import("//tools/grit/repack.gni") 13 import("//tools/grit/repack.gni")
14 import("//tools/grit/grit_rule.gni") 14 import("//tools/grit/grit_rule.gni")
15 import("//v8/snapshot_toolchain.gni")
15 if (is_android) { 16 if (is_android) {
16 import("//build/config/android/config.gni") 17 import("//build/config/android/config.gni")
17 } else if (is_mac) { 18 } else if (is_mac) {
18 import("//build/config/mac/rules.gni") 19 import("//build/config/mac/rules.gni")
19 import("//build/mac/tweak_info_plist.gni") 20 import("//build/mac/tweak_info_plist.gni")
20 import("//third_party/icu/config.gni") 21 import("//third_party/icu/config.gni")
21 import("//v8/gni/v8.gni") 22 import("//v8/gni/v8.gni")
22 } else if (is_win) { 23 } else if (is_win) {
23 import("//build/win/syzygy/syzygy.gni") 24 import("//build/win/syzygy/syzygy.gni")
24 } 25 }
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 ":content_shell_lib", 523 ":content_shell_lib",
523 ":pak", 524 ":pak",
524 "//build/config/sanitizers:deps", 525 "//build/config/sanitizers:deps",
525 "//build/win:default_exe_manifest", 526 "//build/win:default_exe_manifest",
526 ] 527 ]
527 528
528 data_deps = [ 529 data_deps = [
529 ":pak", 530 ":pak",
530 ] 531 ]
531 532
533 public_deps = [
534 "//gin:run_gin_blink_snapshot($v8_snapshot_toolchain)",
535 ]
536
537 data = [
538 "$root_out_dir/context_blob.bin",
539 ]
540
532 if (is_win) { 541 if (is_win) {
533 deps += [ "//sandbox" ] 542 deps += [ "//sandbox" ]
534 543
535 # This is a large module that can't do incremental linking in some cases. 544 # This is a large module that can't do incremental linking in some cases.
536 configs -= [ "//build/config/win:default_incremental_linking" ] 545 configs -= [ "//build/config/win:default_incremental_linking" ]
537 configs += 546 configs +=
538 [ "//build/config/win:default_large_module_incremental_linking" ] 547 [ "//build/config/win:default_large_module_incremental_linking" ]
539 if (win_console_app) { 548 if (win_console_app) {
540 defines += [ "WIN_CONSOLE_APP" ] 549 defines += [ "WIN_CONSOLE_APP" ]
541 } else { 550 } else {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 sources = [ 595 sources = [
587 "app/English.lproj/HttpAuth.xib", 596 "app/English.lproj/HttpAuth.xib",
588 "app/English.lproj/MainMenu.xib", 597 "app/English.lproj/MainMenu.xib",
589 ] 598 ]
590 output_path = "{{bundle_resources_dir}}/English.lproj" 599 output_path = "{{bundle_resources_dir}}/English.lproj"
591 } 600 }
592 601
593 bundle_data("content_shell_framework_resources") { 602 bundle_data("content_shell_framework_resources") {
594 sources = [ 603 sources = [
595 "$root_out_dir/content_shell.pak", 604 "$root_out_dir/content_shell.pak",
605 "$root_out_dir/context_blob.bin",
596 "resources/missingImage.png", 606 "resources/missingImage.png",
597 ] 607 ]
598 608
599 public_deps = [ 609 public_deps = [
600 ":pak", 610 ":pak",
611 "//gin:run_gin_blink_snapshot($v8_snapshot_toolchain)",
601 ] 612 ]
602 613
603 if (icu_use_data_file) { 614 if (icu_use_data_file) {
604 sources += [ "$root_out_dir/icudtl.dat" ] 615 sources += [ "$root_out_dir/icudtl.dat" ]
605 deps = [ 616 deps = [
606 "//third_party/icu:icudata", 617 "//third_party/icu:icudata",
607 ] 618 ]
608 } 619 }
609 620
610 if (v8_use_external_startup_data) { 621 if (v8_use_external_startup_data) {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 data_deps += [ 820 data_deps += [
810 "//breakpad:dump_syms", 821 "//breakpad:dump_syms",
811 "//breakpad:microdump_stackwalk", 822 "//breakpad:microdump_stackwalk",
812 "//breakpad:minidump_dump", 823 "//breakpad:minidump_dump",
813 "//breakpad:minidump_stackwalk", 824 "//breakpad:minidump_stackwalk",
814 "//breakpad:symupload", 825 "//breakpad:symupload",
815 "//tools/android/forwarder2", 826 "//tools/android/forwarder2",
816 ] 827 ]
817 } 828 }
818 } 829 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698