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

Side by Side Diff: BUILD.gn

Issue 1971133002: [gn] Use external startup data by default (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | build_overrides/v8.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/mips.gni") 7 import("//build/config/mips.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 9
10 if (is_android) { 10 if (is_android) {
11 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
12 } 12 }
13 13
14 # Because standalone V8 builds are not supported, assume this is part of a 14 # Because standalone V8 builds are not supported, assume this is part of a
15 # Chromium build. 15 # Chromium build.
16 import("//build_overrides/v8.gni") 16 import("//build_overrides/v8.gni")
17 17
18 import("snapshot_toolchain.gni") 18 import("snapshot_toolchain.gni")
19 19
20 declare_args() { 20 declare_args() {
21 # Enable the snapshot feature, for fast context creation. 21 # Enable the snapshot feature, for fast context creation.
22 # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html 22 # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html
23 v8_use_snapshot = true 23 v8_use_snapshot = true
24 24
25 # Use external files for startup data blobs:
26 # the JS builtins sources and the start snapshot.
27 v8_use_external_startup_data = true
Michael Achenbach 2016/05/12 08:06:33 Couldn't find where chromium sets this. Are we may
Michael Achenbach 2016/05/12 09:24:31 OK. Found it: https://code.google.com/p/chromium/c
vogelheim 2016/05/12 12:35:10 Agreed!
28
25 # Sets -DVERIFY_HEAP. 29 # Sets -DVERIFY_HEAP.
26 v8_enable_verify_heap = false 30 v8_enable_verify_heap = false
27 31
28 # Enable compiler warnings when using V8_DEPRECATED apis. 32 # Enable compiler warnings when using V8_DEPRECATED apis.
29 v8_deprecation_warnings = false 33 v8_deprecation_warnings = false
30 34
31 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. 35 # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
32 v8_imminent_deprecation_warnings = false 36 v8_imminent_deprecation_warnings = false
33 37
34 # Sets -dENABLE_DISASSEMBLER. 38 # Sets -dENABLE_DISASSEMBLER.
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 action("run_mksnapshot") { 606 action("run_mksnapshot") {
603 visibility = [ ":*" ] # Only targets in this file can depend on this. 607 visibility = [ ":*" ] # Only targets in this file can depend on this.
604 608
605 deps = [ 609 deps = [
606 ":mksnapshot($snapshot_toolchain)", 610 ":mksnapshot($snapshot_toolchain)",
607 ] 611 ]
608 612
609 script = "tools/run.py" 613 script = "tools/run.py"
610 614
611 outputs = [ 615 outputs = [
612 "$target_gen_dir/snapshot.cc", 616 "$target_gen_dir/snapshot.cc",
Michael Achenbach 2016/05/12 08:06:33 Isn't it wrong to have this output spec when v8_us
vogelheim 2016/05/12 12:35:10 Not wrong, but superflous? The way the rule is wri
Michael Achenbach 2016/05/12 14:09:16 Acknowledged.
613 ] 617 ]
614 618
615 args = [ 619 args = [
616 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)", 620 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)",
617 "root_out_dir") + "/mksnapshot", 621 "root_out_dir") + "/mksnapshot",
618 root_build_dir), 622 root_build_dir),
619 "--startup_src", 623 "--startup_src",
620 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), 624 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
621 ] 625 ]
622 626
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 ] 2207 ]
2204 2208
2205 deps = [ 2209 deps = [
2206 ":fuzzer_support", 2210 ":fuzzer_support",
2207 ] 2211 ]
2208 2212
2209 configs = [ 2213 configs = [
2210 ":internal_config", 2214 ":internal_config",
2211 ] 2215 ]
2212 } 2216 }
OLDNEW
« no previous file with comments | « no previous file | build_overrides/v8.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698