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

Side by Side Diff: BUILD.gn

Issue 2107423003: Revert of [gn] Switch custom snapsot bot to gn (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | infra/mb/mb_config.pyl » ('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/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 10 matching lines...) Expand all
21 declare_args() { 21 declare_args() {
22 # Sets -DVERIFY_HEAP. 22 # Sets -DVERIFY_HEAP.
23 v8_enable_verify_heap = false 23 v8_enable_verify_heap = false
24 24
25 # Enable compiler warnings when using V8_DEPRECATED apis. 25 # Enable compiler warnings when using V8_DEPRECATED apis.
26 v8_deprecation_warnings = false 26 v8_deprecation_warnings = false
27 27
28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. 28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
29 v8_imminent_deprecation_warnings = false 29 v8_imminent_deprecation_warnings = false
30 30
31 # Embeds the given script into the snapshot.
32 v8_embed_script = ""
33
34 # Sets -dENABLE_DISASSEMBLER. 31 # Sets -dENABLE_DISASSEMBLER.
35 v8_enable_disassembler = false 32 v8_enable_disassembler = false
36 33
37 # Sets -dENABLE_GDB_JIT_INTERFACE. 34 # Sets -dENABLE_GDB_JIT_INTERFACE.
38 v8_enable_gdbjit = false 35 v8_enable_gdbjit = false
39 36
40 # Sets -dENABLE_HANDLE_ZAPPING. 37 # Sets -dENABLE_HANDLE_ZAPPING.
41 v8_enable_handle_zapping = true 38 v8_enable_handle_zapping = true
42 39
43 # Enable ECMAScript Internationalization API. Enabling this feature will 40 # Enable ECMAScript Internationalization API. Enabling this feature will
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 582
586 action("run_mksnapshot") { 583 action("run_mksnapshot") {
587 visibility = [ ":*" ] # Only targets in this file can depend on this. 584 visibility = [ ":*" ] # Only targets in this file can depend on this.
588 585
589 deps = [ 586 deps = [
590 ":mksnapshot($v8_snapshot_toolchain)", 587 ":mksnapshot($v8_snapshot_toolchain)",
591 ] 588 ]
592 589
593 script = "tools/run.py" 590 script = "tools/run.py"
594 591
595 sources = []
596
597 outputs = [ 592 outputs = [
598 "$target_gen_dir/snapshot.cc", 593 "$target_gen_dir/snapshot.cc",
599 ] 594 ]
600 595
601 args = [ 596 args = [
602 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", 597 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
603 "root_out_dir") + "/mksnapshot", 598 "root_out_dir") + "/mksnapshot",
604 root_build_dir), 599 root_build_dir),
605 "--startup_src", 600 "--startup_src",
606 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), 601 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
607 ] 602 ]
608 603
609 if (v8_random_seed != "0") { 604 if (v8_random_seed != "0") {
610 args += [ 605 args += [
611 "--random-seed", 606 "--random-seed",
612 v8_random_seed, 607 v8_random_seed,
613 ] 608 ]
614 } 609 }
615 610
616 if (v8_use_external_startup_data) { 611 if (v8_use_external_startup_data) {
617 outputs += [ "$root_out_dir/snapshot_blob.bin" ] 612 outputs += [ "$root_out_dir/snapshot_blob.bin" ]
618 args += [ 613 args += [
619 "--startup_blob", 614 "--startup_blob",
620 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), 615 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
621 ] 616 ]
622 } 617 }
623
624 if (v8_embed_script != "") {
625 sources += [ v8_embed_script ]
626 args += [ rebase_path(v8_embed_script, root_build_dir) ]
627 }
628 } 618 }
629 619
630 ############################################################################### 620 ###############################################################################
631 # Source Sets (aka static libraries) 621 # Source Sets (aka static libraries)
632 # 622 #
633 623
634 source_set("v8_maybe_snapshot") { 624 source_set("v8_maybe_snapshot") {
635 if (v8_use_snapshot && v8_use_external_startup_data) { 625 if (v8_use_snapshot && v8_use_external_startup_data) {
636 public_deps = [ 626 public_deps = [
637 ":v8_external_snapshot", 627 ":v8_external_snapshot",
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 2347
2358 deps = [ 2348 deps = [
2359 ":fuzzer_support", 2349 ":fuzzer_support",
2360 ] 2350 ]
2361 2351
2362 configs = [ ":internal_config" ] 2352 configs = [ ":internal_config" ]
2363 } 2353 }
2364 2354
2365 v8_fuzzer("wasm_asmjs_fuzzer") { 2355 v8_fuzzer("wasm_asmjs_fuzzer") {
2366 } 2356 }
OLDNEW
« no previous file with comments | « no previous file | infra/mb/mb_config.pyl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698