OLD | NEW |
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 # Because standalone V8 builds are not supported, assume this is part of a | 5 # Because standalone V8 builds are not supported, assume this is part of a |
6 # Chromium build. | 6 # Chromium build. |
7 import("//build/module_args/v8.gni") | 7 import("//build/module_args/v8.gni") |
8 | 8 |
9 # TODO(jochen): These will need to be user-settable to support standalone V8 | 9 # TODO(jochen): These will need to be user-settable to support standalone V8 |
10 # builds. | 10 # builds. |
11 v8_deprecation_warnings = false | 11 v8_deprecation_warnings = false |
12 v8_enable_disassembler = false | 12 v8_enable_disassembler = false |
13 v8_enable_gdbjit = false | 13 v8_enable_gdbjit = false |
14 v8_enable_handle_zapping = true | 14 v8_enable_handle_zapping = true |
15 v8_enable_i18n_support = true | 15 v8_enable_i18n_support = true |
16 v8_enable_verify_heap = false | 16 v8_enable_verify_heap = false |
17 v8_interpreted_regexp = false | 17 v8_interpreted_regexp = false |
18 v8_object_print = false | 18 v8_object_print = false |
19 v8_postmortem_support = false | 19 v8_postmortem_support = false |
20 v8_use_snapshot = true | 20 v8_use_snapshot = true |
21 v8_enable_extra_checks = is_debug | |
22 v8_target_arch = cpu_arch | 21 v8_target_arch = cpu_arch |
23 v8_random_seed = "314159265" | 22 v8_random_seed = "314159265" |
24 | 23 |
25 ############################################################################### | 24 ############################################################################### |
26 # Configurations | 25 # Configurations |
27 # | 26 # |
28 config("internal_config") { | 27 config("internal_config") { |
29 visibility = [ ":*" ] # Only targets in this file can depend on this. | 28 visibility = [ ":*" ] # Only targets in this file can depend on this. |
30 | 29 |
31 include_dirs = [ "." ] | 30 include_dirs = [ "." ] |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 74 } |
76 if (v8_interpreted_regexp == true) { | 75 if (v8_interpreted_regexp == true) { |
77 defines += [ "V8_INTERPRETED_REGEXP" ] | 76 defines += [ "V8_INTERPRETED_REGEXP" ] |
78 } | 77 } |
79 if (v8_deprecation_warnings == true) { | 78 if (v8_deprecation_warnings == true) { |
80 defines += [ "V8_DEPRECATION_WARNINGS" ] | 79 defines += [ "V8_DEPRECATION_WARNINGS" ] |
81 } | 80 } |
82 if (v8_enable_i18n_support == true) { | 81 if (v8_enable_i18n_support == true) { |
83 defines += [ "V8_I18N_SUPPORT" ] | 82 defines += [ "V8_I18N_SUPPORT" ] |
84 } | 83 } |
85 if (v8_enable_extra_checks == true) { | |
86 defines += [ "ENABLE_EXTRA_CHECKS" ] | |
87 } | |
88 if (v8_enable_handle_zapping == true) { | 84 if (v8_enable_handle_zapping == true) { |
89 defines += [ "ENABLE_HANDLE_ZAPPING" ] | 85 defines += [ "ENABLE_HANDLE_ZAPPING" ] |
90 } | 86 } |
91 if (v8_use_external_startup_data == true) { | 87 if (v8_use_external_startup_data == true) { |
92 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] | 88 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] |
93 } | 89 } |
94 } | 90 } |
95 | 91 |
96 config("toolchain") { | 92 config("toolchain") { |
97 visibility = [ ":*" ] # Only targets in this file can depend on this. | 93 visibility = [ ":*" ] # Only targets in this file can depend on this. |
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1521 assert(!v8_use_external_startup_data) | 1517 assert(!v8_use_external_startup_data) |
1522 deps = [ | 1518 deps = [ |
1523 ":v8_base", | 1519 ":v8_base", |
1524 ":v8_nosnapshot", | 1520 ":v8_nosnapshot", |
1525 ] | 1521 ] |
1526 } | 1522 } |
1527 | 1523 |
1528 direct_dependent_configs = [ ":external_config" ] | 1524 direct_dependent_configs = [ ":external_config" ] |
1529 } | 1525 } |
1530 } | 1526 } |
OLD | NEW |