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 | |
6 # Chromium build. | |
7 import("//build/config/features.gni") | |
8 | |
5 # 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 |
6 # builds. | 10 # builds. |
7 v8_compress_startup_data = "off" | 11 v8_compress_startup_data = "off" |
8 v8_deprecation_warnings = false | 12 v8_deprecation_warnings = false |
9 v8_enable_disassembler = false | 13 v8_enable_disassembler = false |
10 v8_enable_gdbjit = false | 14 v8_enable_gdbjit = false |
11 v8_enable_handle_zapping = true | 15 v8_enable_handle_zapping = true |
12 v8_enable_i18n_support = true | 16 v8_enable_i18n_support = true |
13 v8_enable_verify_heap = false | 17 v8_enable_verify_heap = false |
14 v8_interpreted_regexp = false | 18 v8_interpreted_regexp = false |
15 v8_object_print = false | 19 v8_object_print = false |
16 v8_postmortem_support = false | 20 v8_postmortem_support = false |
17 v8_use_snapshot = true | 21 v8_use_snapshot = true |
18 v8_use_external_startup_data = false | |
19 v8_enable_extra_checks = is_debug | 22 v8_enable_extra_checks = is_debug |
20 v8_target_arch = cpu_arch | 23 v8_target_arch = cpu_arch |
21 v8_random_seed = "314159265" | 24 v8_random_seed = "314159265" |
22 | 25 |
23 | 26 |
24 ############################################################################### | 27 ############################################################################### |
25 # Configurations | 28 # Configurations |
26 # | 29 # |
27 config("internal_config") { | 30 config("internal_config") { |
28 visibility = [ ":*" ] # Only targets in this file can depend on this. | 31 visibility = [ ":*" ] # Only targets in this file can depend on this. |
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1405 # Public targets | 1408 # Public targets |
1406 # | 1409 # |
1407 | 1410 |
1408 if (component_mode == "shared_library") { | 1411 if (component_mode == "shared_library") { |
1409 | 1412 |
1410 component("v8") { | 1413 component("v8") { |
1411 sources = [ | 1414 sources = [ |
1412 "src/v8dll-main.cc", | 1415 "src/v8dll-main.cc", |
1413 ] | 1416 ] |
1414 | 1417 |
1418 deps = [] | |
rmcilroy
2014/11/24 17:21:06
Is there any reason you need to make these changes
baixo1
2014/11/24 17:28:11
I thought the same :). But no :)
When you have the
rmcilroy
2014/11/24 18:01:34
Eww, yuck... Ohh well, perhaps you could just make
baixo1
2014/11/24 21:35:13
Done.
| |
1415 if (v8_use_external_startup_data) { | 1419 if (v8_use_external_startup_data) { |
1416 deps = [ | 1420 deps += [ |
1417 ":v8_base", | 1421 ":v8_base", |
1418 ":v8_external_snapshot", | 1422 ":v8_external_snapshot", |
1419 ] | 1423 ] |
1420 } else if (v8_use_snapshot) { | 1424 } |
1421 deps = [ | 1425 if (v8_use_snapshot && !v8_use_external_startup_data) { |
1426 deps += [ | |
1422 ":v8_base", | 1427 ":v8_base", |
1423 ":v8_snapshot", | 1428 ":v8_snapshot", |
1424 ] | 1429 ] |
1425 } else { | 1430 } |
1426 deps = [ | 1431 if (!v8_use_snapshot && !v8_use_external_startup_data) { |
1432 deps += [ | |
1427 ":v8_base", | 1433 ":v8_base", |
1428 ":v8_nosnapshot", | 1434 ":v8_nosnapshot", |
1429 ] | 1435 ] |
1430 } | 1436 } |
1431 | 1437 |
1432 configs -= [ "//build/config/compiler:chromium_code" ] | 1438 configs -= [ "//build/config/compiler:chromium_code" ] |
1433 configs += [ "//build/config/compiler:no_chromium_code" ] | 1439 configs += [ "//build/config/compiler:no_chromium_code" ] |
1434 configs += [ ":internal_config", ":features", ":toolchain" ] | 1440 configs += [ ":internal_config", ":features", ":toolchain" ] |
1435 | 1441 |
1436 direct_dependent_configs = [ ":external_config" ] | 1442 direct_dependent_configs = [ ":external_config" ] |
1437 | 1443 |
1438 libs = [] | 1444 libs = [] |
1439 if (is_android && current_toolchain != host_toolchain) { | 1445 if (is_android && current_toolchain != host_toolchain) { |
1440 libs += [ "log" ] | 1446 libs += [ "log" ] |
1441 } | 1447 } |
1442 } | 1448 } |
1443 | 1449 |
1444 } else { | 1450 } else { |
1445 | 1451 |
1446 group("v8") { | 1452 group("v8") { |
1453 deps = [] | |
rmcilroy
2014/11/24 17:21:06
ditto
| |
1447 if (v8_use_external_startup_data) { | 1454 if (v8_use_external_startup_data) { |
1448 deps = [ | 1455 deps += [ |
1449 ":v8_base", | 1456 ":v8_base", |
1450 ":v8_external_snapshot", | 1457 ":v8_external_snapshot", |
1451 ] | 1458 ] |
1452 } else if (v8_use_snapshot) { | 1459 } |
1453 deps = [ | 1460 if (v8_use_snapshot && !v8_use_external_startup_data) { |
1461 deps += [ | |
1454 ":v8_base", | 1462 ":v8_base", |
1455 ":v8_snapshot", | 1463 ":v8_snapshot", |
1456 ] | 1464 ] |
1457 } else { | 1465 } |
1458 deps = [ | 1466 if (!v8_use_snapshot && !v8_use_external_startup_data) { |
1467 deps += [ | |
1459 ":v8_base", | 1468 ":v8_base", |
1460 ":v8_nosnapshot", | 1469 ":v8_nosnapshot", |
1461 ] | 1470 ] |
1462 } | 1471 } |
1463 | 1472 |
1464 direct_dependent_configs = [ ":external_config" ] | 1473 direct_dependent_configs = [ ":external_config" ] |
1465 } | 1474 } |
1466 | 1475 |
1467 } | 1476 } |
OLD | NEW |