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" | |
8 v8_deprecation_warnings = false | 7 v8_deprecation_warnings = false |
9 v8_enable_disassembler = false | 8 v8_enable_disassembler = false |
10 v8_enable_gdbjit = false | 9 v8_enable_gdbjit = false |
11 v8_enable_handle_zapping = true | 10 v8_enable_handle_zapping = true |
12 v8_enable_i18n_support = true | 11 v8_enable_i18n_support = true |
13 v8_enable_verify_heap = false | 12 v8_enable_verify_heap = false |
14 v8_interpreted_regexp = false | 13 v8_interpreted_regexp = false |
15 v8_object_print = false | 14 v8_object_print = false |
16 v8_postmortem_support = false | 15 v8_postmortem_support = false |
17 v8_use_snapshot = true | 16 v8_use_snapshot = true |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 if (v8_deprecation_warnings == true) { | 87 if (v8_deprecation_warnings == true) { |
89 defines += [ | 88 defines += [ |
90 "V8_DEPRECATION_WARNINGS", | 89 "V8_DEPRECATION_WARNINGS", |
91 ] | 90 ] |
92 } | 91 } |
93 if (v8_enable_i18n_support == true) { | 92 if (v8_enable_i18n_support == true) { |
94 defines += [ | 93 defines += [ |
95 "V8_I18N_SUPPORT", | 94 "V8_I18N_SUPPORT", |
96 ] | 95 ] |
97 } | 96 } |
98 if (v8_compress_startup_data == "bz2") { | |
99 defines += [ | |
100 "COMPRESS_STARTUP_DATA_BZ2", | |
101 ] | |
102 } | |
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 } |
108 if (v8_enable_handle_zapping == true) { | 102 if (v8_enable_handle_zapping == true) { |
109 defines += [ | 103 defines += [ |
110 "ENABLE_HANDLE_ZAPPING", | 104 "ENABLE_HANDLE_ZAPPING", |
111 ] | 105 ] |
112 } | 106 } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 "$target_gen_dir/libraries.cc" | 203 "$target_gen_dir/libraries.cc" |
210 ] | 204 ] |
211 | 205 |
212 if (v8_enable_i18n_support) { | 206 if (v8_enable_i18n_support) { |
213 sources += [ "src/i18n.js" ] | 207 sources += [ "src/i18n.js" ] |
214 } | 208 } |
215 | 209 |
216 args = [ | 210 args = [ |
217 rebase_path("$target_gen_dir/libraries.cc", root_build_dir), | 211 rebase_path("$target_gen_dir/libraries.cc", root_build_dir), |
218 "CORE", | 212 "CORE", |
219 v8_compress_startup_data | |
220 ] + rebase_path(sources, root_build_dir) | 213 ] + rebase_path(sources, root_build_dir) |
221 | 214 |
222 if (v8_use_external_startup_data) { | 215 if (v8_use_external_startup_data) { |
223 outputs += [ "$target_gen_dir/libraries.bin" ] | 216 outputs += [ "$target_gen_dir/libraries.bin" ] |
224 args += [ | 217 args += [ |
225 "--startup_blob", | 218 "--startup_blob", |
226 rebase_path("$target_gen_dir/libraries.bin", root_build_dir) | 219 rebase_path("$target_gen_dir/libraries.bin", root_build_dir) |
227 ] | 220 ] |
228 } | 221 } |
229 } | 222 } |
(...skipping 19 matching lines...) Expand all Loading... |
249 "src/harmony-templates.js" | 242 "src/harmony-templates.js" |
250 ] | 243 ] |
251 | 244 |
252 outputs = [ | 245 outputs = [ |
253 "$target_gen_dir/experimental-libraries.cc" | 246 "$target_gen_dir/experimental-libraries.cc" |
254 ] | 247 ] |
255 | 248 |
256 args = [ | 249 args = [ |
257 rebase_path("$target_gen_dir/experimental-libraries.cc", root_build_dir), | 250 rebase_path("$target_gen_dir/experimental-libraries.cc", root_build_dir), |
258 "EXPERIMENTAL", | 251 "EXPERIMENTAL", |
259 v8_compress_startup_data | |
260 ] + rebase_path(sources, root_build_dir) | 252 ] + rebase_path(sources, root_build_dir) |
261 | 253 |
262 if (v8_use_external_startup_data) { | 254 if (v8_use_external_startup_data) { |
263 outputs += [ "$target_gen_dir/libraries_experimental.bin" ] | 255 outputs += [ "$target_gen_dir/libraries_experimental.bin" ] |
264 args += [ | 256 args += [ |
265 "--startup_blob", | 257 "--startup_blob", |
266 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir) | 258 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir) |
267 ] | 259 ] |
268 } | 260 } |
269 } | 261 } |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 configs += [ "//build/config/compiler:optimize_max" ] | 1201 configs += [ "//build/config/compiler:optimize_max" ] |
1210 } | 1202 } |
1211 | 1203 |
1212 defines = [] | 1204 defines = [] |
1213 deps = [ ":v8_libbase" ] | 1205 deps = [ ":v8_libbase" ] |
1214 | 1206 |
1215 if (is_win) { | 1207 if (is_win) { |
1216 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1208 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1217 cflags = [ "/wd4267" ] | 1209 cflags = [ "/wd4267" ] |
1218 } | 1210 } |
1219 if (is_linux) { | |
1220 if (v8_compress_startup_data == "bz2") { | |
1221 libs += [ "bz2" ] | |
1222 } | |
1223 } | |
1224 | 1211 |
1225 if (v8_enable_i18n_support) { | 1212 if (v8_enable_i18n_support) { |
1226 deps += [ "//third_party/icu" ] | 1213 deps += [ "//third_party/icu" ] |
1227 if (is_win) { | 1214 if (is_win) { |
1228 deps += [ "//third_party/icu:icudata" ] | 1215 deps += [ "//third_party/icu:icudata" ] |
1229 } | 1216 } |
1230 # TODO(jochen): Add support for icu_use_data_file_flag | 1217 # TODO(jochen): Add support for icu_use_data_file_flag |
1231 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ] | 1218 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ] |
1232 } else { | 1219 } else { |
1233 sources -= [ | 1220 sources -= [ |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 configs -= [ "//build/config/compiler:chromium_code" ] | 1374 configs -= [ "//build/config/compiler:chromium_code" ] |
1388 configs += [ "//build/config/compiler:no_chromium_code" ] | 1375 configs += [ "//build/config/compiler:no_chromium_code" ] |
1389 configs += [ ":internal_config", ":features", ":toolchain" ] | 1376 configs += [ ":internal_config", ":features", ":toolchain" ] |
1390 | 1377 |
1391 deps = [ | 1378 deps = [ |
1392 ":v8_base", | 1379 ":v8_base", |
1393 ":v8_libplatform", | 1380 ":v8_libplatform", |
1394 ":v8_nosnapshot", | 1381 ":v8_nosnapshot", |
1395 "//build/config/sanitizers:deps", | 1382 "//build/config/sanitizers:deps", |
1396 ] | 1383 ] |
1397 | |
1398 if (v8_compress_startup_data == "bz2") { | |
1399 libs = [ "bz2" ] | |
1400 } | |
1401 } | 1384 } |
1402 } | 1385 } |
1403 | 1386 |
1404 ############################################################################### | 1387 ############################################################################### |
1405 # Public targets | 1388 # Public targets |
1406 # | 1389 # |
1407 | 1390 |
1408 if (component_mode == "shared_library") { | 1391 if (component_mode == "shared_library") { |
1409 | 1392 |
1410 component("v8") { | 1393 component("v8") { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 deps = [ | 1441 deps = [ |
1459 ":v8_base", | 1442 ":v8_base", |
1460 ":v8_nosnapshot", | 1443 ":v8_nosnapshot", |
1461 ] | 1444 ] |
1462 } | 1445 } |
1463 | 1446 |
1464 direct_dependent_configs = [ ":external_config" ] | 1447 direct_dependent_configs = [ ":external_config" ] |
1465 } | 1448 } |
1466 | 1449 |
1467 } | 1450 } |
OLD | NEW |