Chromium Code Reviews| 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 | |
| 18 v8_use_snapshot = true | 17 v8_use_snapshot = true |
| 19 v8_use_external_startup_data = false | 18 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 # |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 if (v8_deprecation_warnings == true) { | 82 if (v8_deprecation_warnings == true) { |
| 84 defines += [ | 83 defines += [ |
| 85 "V8_DEPRECATION_WARNINGS", | 84 "V8_DEPRECATION_WARNINGS", |
| 86 ] | 85 ] |
| 87 } | 86 } |
| 88 if (v8_enable_i18n_support == true) { | 87 if (v8_enable_i18n_support == true) { |
| 89 defines += [ | 88 defines += [ |
| 90 "V8_I18N_SUPPORT", | 89 "V8_I18N_SUPPORT", |
| 91 ] | 90 ] |
| 92 } | 91 } |
| 93 if (v8_use_default_platform == true) { | |
| 94 defines += [ | |
| 95 "V8_USE_DEFAULT_PLATFORM", | |
| 96 ] | |
| 97 } | |
| 98 if (v8_compress_startup_data == "bz2") { | 92 if (v8_compress_startup_data == "bz2") { |
| 99 defines += [ | 93 defines += [ |
| 100 "COMPRESS_STARTUP_DATA_BZ2", | 94 "COMPRESS_STARTUP_DATA_BZ2", |
| 101 ] | 95 ] |
| 102 } | 96 } |
| 103 if (v8_enable_extra_checks == true) { | 97 if (v8_enable_extra_checks == true) { |
| 104 defines += [ | 98 defines += [ |
| 105 "ENABLE_EXTRA_CHECKS", | 99 "ENABLE_EXTRA_CHECKS", |
| 106 ] | 100 ] |
| 107 } | 101 } |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 626 "src/interface.h", | 620 "src/interface.h", |
| 627 "src/interpreter-irregexp.cc", | 621 "src/interpreter-irregexp.cc", |
| 628 "src/interpreter-irregexp.h", | 622 "src/interpreter-irregexp.h", |
| 629 "src/isolate.cc", | 623 "src/isolate.cc", |
| 630 "src/isolate.h", | 624 "src/isolate.h", |
| 631 "src/json-parser.h", | 625 "src/json-parser.h", |
| 632 "src/json-stringifier.h", | 626 "src/json-stringifier.h", |
| 633 "src/jsregexp-inl.h", | 627 "src/jsregexp-inl.h", |
| 634 "src/jsregexp.cc", | 628 "src/jsregexp.cc", |
| 635 "src/jsregexp.h", | 629 "src/jsregexp.h", |
| 636 # TODO(jochen): move libplatform/ files to their own target. | |
| 637 "src/libplatform/default-platform.cc", | |
| 638 "src/libplatform/default-platform.h", | |
| 639 "src/libplatform/task-queue.cc", | |
| 640 "src/libplatform/task-queue.h", | |
| 641 "src/libplatform/worker-thread.cc", | |
| 642 "src/libplatform/worker-thread.h", | |
| 643 "src/list-inl.h", | 630 "src/list-inl.h", |
| 644 "src/list.h", | 631 "src/list.h", |
| 645 "src/lithium-allocator-inl.h", | 632 "src/lithium-allocator-inl.h", |
| 646 "src/lithium-allocator.cc", | 633 "src/lithium-allocator.cc", |
| 647 "src/lithium-allocator.h", | 634 "src/lithium-allocator.h", |
| 648 "src/lithium-codegen.cc", | 635 "src/lithium-codegen.cc", |
| 649 "src/lithium-codegen.h", | 636 "src/lithium-codegen.h", |
| 650 "src/lithium.cc", | 637 "src/lithium.cc", |
| 651 "src/lithium.h", | 638 "src/lithium.h", |
| 652 "src/liveedit.cc", | 639 "src/liveedit.cc", |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1070 ] | 1057 ] |
| 1071 | 1058 |
| 1072 defines += [ "_CRT_RAND_S" ] # for rand_s() | 1059 defines += [ "_CRT_RAND_S" ] # for rand_s() |
| 1073 | 1060 |
| 1074 libs = [ "winmm.lib", "ws2_32.lib" ] | 1061 libs = [ "winmm.lib", "ws2_32.lib" ] |
| 1075 } | 1062 } |
| 1076 | 1063 |
| 1077 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris. | 1064 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris. |
| 1078 } | 1065 } |
| 1079 | 1066 |
| 1067 source_set("v8_libplatform") { | |
|
tfarina
2014/07/03 18:14:39
Does this needs visibility?
visibility = ":*" #
jochen (gone - plz use gerrit)
2014/07/03 19:35:20
yes, external targets can depend on this
| |
| 1068 sources = [ | |
| 1069 "include/libplatform/libplatform.h", | |
| 1070 "src/libplatform/default-platform.cc", | |
| 1071 "src/libplatform/default-platform.h", | |
| 1072 "src/libplatform/task-queue.cc", | |
| 1073 "src/libplatform/task-queue.h", | |
| 1074 "src/libplatform/worker-thread.cc", | |
| 1075 "src/libplatform/worker-thread.h", | |
| 1076 ] | |
| 1077 | |
| 1078 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 1079 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 1080 configs += [ ":internal_config", ":features", ":toolchain" ] | |
|
tfarina
2014/07/03 18:14:39
does it need also these configs?
jochen (gone - plz use gerrit)
2014/07/03 19:35:20
i've modified the configs a bit in a follow-up cl,
| |
| 1081 | |
| 1082 deps = [ | |
| 1083 ":v8_libbase", | |
| 1084 ] | |
| 1085 } | |
| 1086 | |
| 1080 ############################################################################### | 1087 ############################################################################### |
| 1081 # Executables | 1088 # Executables |
| 1082 # | 1089 # |
| 1083 | 1090 |
| 1084 if (current_toolchain == host_toolchain) { | 1091 if (current_toolchain == host_toolchain) { |
| 1085 executable("mksnapshot") { | 1092 executable("mksnapshot") { |
| 1086 visibility = ":*" # Only targets in this file can depend on this. | 1093 visibility = ":*" # Only targets in this file can depend on this. |
| 1087 | 1094 |
| 1088 sources = [ | 1095 sources = [ |
| 1089 "src/mksnapshot.cc", | 1096 "src/mksnapshot.cc", |
| 1090 ] | 1097 ] |
| 1091 | 1098 |
| 1092 configs -= [ "//build/config/compiler:chromium_code" ] | 1099 configs -= [ "//build/config/compiler:chromium_code" ] |
| 1093 configs += [ "//build/config/compiler:no_chromium_code" ] | 1100 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 1094 configs += [ ":internal_config", ":features", ":toolchain" ] | 1101 configs += [ ":internal_config", ":features", ":toolchain" ] |
| 1095 | 1102 |
| 1096 deps = [ | 1103 deps = [ |
| 1097 ":v8_base", | 1104 ":v8_base", |
| 1105 ":v8_libplatform", | |
| 1098 ":v8_nosnapshot", | 1106 ":v8_nosnapshot", |
| 1099 ] | 1107 ] |
| 1100 | 1108 |
| 1101 if (v8_compress_startup_data == "bz2") { | 1109 if (v8_compress_startup_data == "bz2") { |
| 1102 libs = [ "bz2" ] | 1110 libs = [ "bz2" ] |
| 1103 } | 1111 } |
| 1104 } | 1112 } |
| 1105 } | 1113 } |
| 1106 | 1114 |
| 1107 ############################################################################### | 1115 ############################################################################### |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1160 deps = [ | 1168 deps = [ |
| 1161 ":v8_base", | 1169 ":v8_base", |
| 1162 ":v8_nosnapshot", | 1170 ":v8_nosnapshot", |
| 1163 ] | 1171 ] |
| 1164 } | 1172 } |
| 1165 | 1173 |
| 1166 direct_dependent_configs = [ ":external_config" ] | 1174 direct_dependent_configs = [ ":external_config" ] |
| 1167 } | 1175 } |
| 1168 | 1176 |
| 1169 } | 1177 } |
| OLD | NEW |