| 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 # TODO(jochen): These will need to be user-settable to support standalone V8 | 5 # TODO(jochen): These will need to be user-settable to support standalone V8 | 
| 6 # builds. | 6 # builds. | 
| 7 v8_compress_startup_data = "off" | 7 v8_compress_startup_data = "off" | 
| 8 v8_deprecation_warnings = false | 8 v8_deprecation_warnings = false | 
| 9 v8_enable_disassembler = false | 9 v8_enable_disassembler = false | 
| 10 v8_enable_gdbjit = false | 10 v8_enable_gdbjit = false | 
| 11 v8_enable_handle_zapping = true | 11 v8_enable_handle_zapping = true | 
| 12 v8_enable_i18n_support = true | 12 v8_enable_i18n_support = true | 
| 13 v8_enable_verify_heap = false | 13 v8_enable_verify_heap = false | 
| 14 v8_interpreted_regexp = false | 14 v8_interpreted_regexp = false | 
| 15 v8_object_print = false | 15 v8_object_print = false | 
| 16 v8_postmortem_support = false | 16 v8_postmortem_support = false | 
| 17 v8_use_default_platform = true | 17 v8_use_default_platform = true | 
| 18 v8_use_snapshot = true | 18 v8_use_snapshot = true | 
| 19 v8_use_external_startup_data = false |  | 
| 20 v8_enable_extra_checks = is_debug | 19 v8_enable_extra_checks = is_debug | 
| 21 v8_target_arch = cpu_arch | 20 v8_target_arch = cpu_arch | 
| 22 v8_random_seed = "314159265" | 21 v8_random_seed = "314159265" | 
| 23 | 22 | 
| 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. | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 91   if (v8_enable_extra_checks == true) { | 90   if (v8_enable_extra_checks == true) { | 
| 92     defines += [ | 91     defines += [ | 
| 93       "ENABLE_EXTRA_CHECKS", | 92       "ENABLE_EXTRA_CHECKS", | 
| 94     ] | 93     ] | 
| 95   } | 94   } | 
| 96   if (v8_enable_handle_zapping == true) { | 95   if (v8_enable_handle_zapping == true) { | 
| 97     defines += [ | 96     defines += [ | 
| 98       "ENABLE_HANDLE_ZAPPING", | 97       "ENABLE_HANDLE_ZAPPING", | 
| 99     ] | 98     ] | 
| 100   } | 99   } | 
| 101   if (v8_use_external_startup_data == true) { |  | 
| 102     defines += [ |  | 
| 103       "V8_USE_EXTERNAL_STARTUP_DATA", |  | 
| 104     ] |  | 
| 105   } |  | 
| 106 } | 100 } | 
| 107 | 101 | 
| 108 config("toolchain") { | 102 config("toolchain") { | 
| 109   visibility = ":*"  # Only targets in this file can depend on this. | 103   visibility = ":*"  # Only targets in this file can depend on this. | 
| 110 | 104 | 
| 111   defines = [] | 105   defines = [] | 
| 112   cflags = [] | 106   cflags = [] | 
| 113 | 107 | 
| 114   # TODO(jochen): Add support for arm, mips, mipsel. | 108   # TODO(jochen): Add support for arm, mips, mipsel. | 
| 115 | 109 | 
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 302     ":js2c_experimental", | 296     ":js2c_experimental", | 
| 303     ":generate_trig_table", | 297     ":generate_trig_table", | 
| 304     ":v8_base", | 298     ":v8_base", | 
| 305   ] | 299   ] | 
| 306 | 300 | 
| 307   sources = [ | 301   sources = [ | 
| 308     "$target_gen_dir/libraries.cc", | 302     "$target_gen_dir/libraries.cc", | 
| 309     "$target_gen_dir/experimental-libraries.cc", | 303     "$target_gen_dir/experimental-libraries.cc", | 
| 310     "$target_gen_dir/trig-table.cc", | 304     "$target_gen_dir/trig-table.cc", | 
| 311     "src/snapshot-empty.cc", | 305     "src/snapshot-empty.cc", | 
| 312     "src/snapshot-common.cc", |  | 
| 313   ] | 306   ] | 
| 314 | 307 | 
| 315   configs -= [ "//build/config/compiler:chromium_code" ] | 308   configs -= [ "//build/config/compiler:chromium_code" ] | 
| 316   configs += [ "//build/config/compiler:no_chromium_code" ] | 309   configs += [ "//build/config/compiler:no_chromium_code" ] | 
| 317   configs += [ ":internal_config", ":features", ":toolchain" ] | 310   configs += [ ":internal_config", ":features", ":toolchain" ] | 
| 318 } | 311 } | 
| 319 | 312 | 
| 320 source_set("v8_snapshot") { | 313 source_set("v8_snapshot") { | 
| 321   visibility = ":*"  # Only targets in this file can depend on this. | 314   visibility = ":*"  # Only targets in this file can depend on this. | 
| 322 | 315 | 
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 636     "src/scanner.cc", | 629     "src/scanner.cc", | 
| 637     "src/scanner.h", | 630     "src/scanner.h", | 
| 638     "src/scopeinfo.cc", | 631     "src/scopeinfo.cc", | 
| 639     "src/scopeinfo.h", | 632     "src/scopeinfo.h", | 
| 640     "src/scopes.cc", | 633     "src/scopes.cc", | 
| 641     "src/scopes.h", | 634     "src/scopes.h", | 
| 642     "src/serialize.cc", | 635     "src/serialize.cc", | 
| 643     "src/serialize.h", | 636     "src/serialize.h", | 
| 644     "src/small-pointer-list.h", | 637     "src/small-pointer-list.h", | 
| 645     "src/smart-pointers.h", | 638     "src/smart-pointers.h", | 
| 646     "src/snapshot-source-sink.cc", | 639     "src/snapshot-common.cc", | 
| 647     "src/snapshot-source-sink.h", |  | 
| 648     "src/snapshot.h", | 640     "src/snapshot.h", | 
| 649     "src/spaces-inl.h", | 641     "src/spaces-inl.h", | 
| 650     "src/spaces.cc", | 642     "src/spaces.cc", | 
| 651     "src/spaces.h", | 643     "src/spaces.h", | 
| 652     "src/store-buffer-inl.h", | 644     "src/store-buffer-inl.h", | 
| 653     "src/store-buffer.cc", | 645     "src/store-buffer.cc", | 
| 654     "src/store-buffer.h", | 646     "src/store-buffer.h", | 
| 655     "src/string-search.cc", | 647     "src/string-search.cc", | 
| 656     "src/string-search.h", | 648     "src/string-search.h", | 
| 657     "src/string-stream.cc", | 649     "src/string-stream.cc", | 
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1034   } else { | 1026   } else { | 
| 1035     deps = [ | 1027     deps = [ | 
| 1036       ":v8_base", | 1028       ":v8_base", | 
| 1037       ":v8_nosnapshot", | 1029       ":v8_nosnapshot", | 
| 1038     ] | 1030     ] | 
| 1039   } | 1031   } | 
| 1040   # TODO(jochen): Support direct dependent configs. | 1032   # TODO(jochen): Support direct dependent configs. | 
| 1041 } | 1033 } | 
| 1042 | 1034 | 
| 1043 } | 1035 } | 
| OLD | NEW | 
|---|