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

Side by Side Diff: chrome/BUILD.gn

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for most comments Created 3 years, 6 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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/compiler/pgo/pgo.gni") 7 import("//build/config/compiler/pgo/pgo.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 # This should not pull in installer strings. This is will bloat the binary 107 # This should not pull in installer strings. This is will bloat the binary
108 # for no reason and is easy to mess up. See the comment at the top of 108 # for no reason and is easy to mess up. See the comment at the top of
109 # //chrome/installer/util/BUILD.gn. 109 # //chrome/installer/util/BUILD.gn.
110 assert_no_deps = [ "//chrome/installer/util:strings" ] 110 assert_no_deps = [ "//chrome/installer/util:strings" ]
111 } 111 }
112 112
113 if (!is_android && !is_mac) { 113 if (!is_android && !is_mac) {
114 group("chrome") { 114 group("chrome") {
115 public_deps = [ 115 public_deps = [
116 ":chrome_initial", 116 ":chrome_initial",
117 "//gin:blink_v8_snapshot",
117 ] 118 ]
118 data_deps = [ 119 data_deps = [
119 ":chrome_initial", 120 ":chrome_initial",
120 ] 121 ]
122 data = [
123 "$root_out_dir/blink_v8_snapshot.bin",
124 ]
121 if (is_win) { 125 if (is_win) {
122 public_deps += [ ":reorder_imports" ] 126 public_deps += [ ":reorder_imports" ]
123 } 127 }
124 if (use_aura && (is_win || is_linux)) { 128 if (use_aura && (is_win || is_linux)) {
125 data_deps += [ "//chrome/app:service_manifests" ] 129 data_deps += [ "//chrome/app:service_manifests" ]
126 } 130 }
127 } 131 }
128 132
129 executable("chrome_initial") { 133 executable("chrome_initial") {
130 if (is_win) { 134 if (is_win) {
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 if (using_sanitizer) { 790 if (using_sanitizer) {
787 # crashpad_handler requires the ASan runtime at its @executable_path. 791 # crashpad_handler requires the ASan runtime at its @executable_path.
788 sources += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ] 792 sources += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ]
789 public_deps += [ "//build/config/sanitizers:copy_asan_runtime" ] 793 public_deps += [ "//build/config/sanitizers:copy_asan_runtime" ]
790 } 794 }
791 } 795 }
792 796
793 bundle_data("chrome_framework_resources") { 797 bundle_data("chrome_framework_resources") {
794 sources = [ 798 sources = [
795 "$root_out_dir/app_mode_loader.app", 799 "$root_out_dir/app_mode_loader.app",
800 "$root_out_dir/blink_v8_snapshot.bin",
796 801
797 # This image is used to badge the lock icon in the 802 # This image is used to badge the lock icon in the
798 # authentication dialogs, such as those used for installation 803 # authentication dialogs, such as those used for installation
799 # from disk image and Keystone promotion (if so enabled). It 804 # from disk image and Keystone promotion (if so enabled). It
800 # needs to exist as a file on disk and not just something in a 805 # needs to exist as a file on disk and not just something in a
801 # resource bundle because that's the interface that 806 # resource bundle because that's the interface that
802 # Authorization Services uses. Also, Authorization Services 807 # Authorization Services uses. Also, Authorization Services
803 # can't deal with .icns files. 808 # can't deal with .icns files.
804 "app/theme/default_100_percent/$branding_path_component/product_logo_32.pn g", 809 "app/theme/default_100_percent/$branding_path_component/product_logo_32.pn g",
805 "browser/mac/install.sh", 810 "browser/mac/install.sh",
806 ] 811 ]
807 812
808 outputs = [ 813 outputs = [
809 "{{bundle_resources_dir}}/{{source_file_part}}", 814 "{{bundle_resources_dir}}/{{source_file_part}}",
810 ] 815 ]
811 816
812 public_deps = [ 817 public_deps = [
813 ":packed_resources", 818 ":packed_resources",
814 "//chrome/app_shim:app_mode_loader", 819 "//chrome/app_shim:app_mode_loader",
820 "//gin:blink_v8_snapshot",
815 ] 821 ]
816 822
817 if (is_chrome_branded) { 823 if (is_chrome_branded) {
818 sources += [ 824 sources += [
819 "browser/mac/keystone_promote_postflight.sh", 825 "browser/mac/keystone_promote_postflight.sh",
820 "browser/mac/keystone_promote_preflight.sh", 826 "browser/mac/keystone_promote_preflight.sh",
821 ] 827 ]
822 } 828 }
823 829
824 if (icu_use_data_file) { 830 if (icu_use_data_file) {
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1781 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1776 "//chrome/tools/build/linux/chrome-wrapper", 1782 "//chrome/tools/build/linux/chrome-wrapper",
1777 "//third_party/xdg-utils/scripts/xdg-mime", 1783 "//third_party/xdg-utils/scripts/xdg-mime",
1778 "//third_party/xdg-utils/scripts/xdg-settings", 1784 "//third_party/xdg-utils/scripts/xdg-settings",
1779 ] 1785 ]
1780 outputs = [ 1786 outputs = [
1781 "$root_out_dir/{{source_file_part}}", 1787 "$root_out_dir/{{source_file_part}}",
1782 ] 1788 ]
1783 } 1789 }
1784 } 1790 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698