| 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. |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 if (v8_use_external_startup_data) { | 185 if (v8_use_external_startup_data) { |
| 186 outputs += [ "$target_gen_dir/libraries.bin" ] | 186 outputs += [ "$target_gen_dir/libraries.bin" ] |
| 187 args += [ | 187 args += [ |
| 188 "--startup_blob", | 188 "--startup_blob", |
| 189 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), | 189 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), |
| 190 ] | 190 ] |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 | 193 |
| 194 action("d8_js2c") { | |
| 195 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
| 196 | |
| 197 script = "tools/js2c.py" | |
| 198 | |
| 199 inputs = [ | |
| 200 "src/d8.js", | |
| 201 "src/macros.py", | |
| 202 ] | |
| 203 outputs = [ | |
| 204 "$target_gen_dir/d8-js.cc", | |
| 205 ] | |
| 206 | |
| 207 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + | |
| 208 rebase_path(inputs, root_build_dir) | |
| 209 } | |
| 210 | |
| 211 action("js2c_experimental") { | 194 action("js2c_experimental") { |
| 212 visibility = [ ":*" ] # Only targets in this file can depend on this. | 195 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 213 | 196 |
| 214 script = "tools/js2c.py" | 197 script = "tools/js2c.py" |
| 215 | 198 |
| 216 # The script depends on this other script, this rule causes a rebuild if it | 199 # The script depends on this other script, this rule causes a rebuild if it |
| 217 # changes. | 200 # changes. |
| 218 source_prereqs = [ "tools/jsmin.py" ] | 201 source_prereqs = [ "tools/jsmin.py" ] |
| 219 | 202 |
| 220 sources = [ | 203 sources = [ |
| (...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 ":toolchain", | 1397 ":toolchain", |
| 1415 ] | 1398 ] |
| 1416 | 1399 |
| 1417 deps = [ | 1400 deps = [ |
| 1418 ":v8_base", | 1401 ":v8_base", |
| 1419 ":v8_libplatform", | 1402 ":v8_libplatform", |
| 1420 ":v8_nosnapshot", | 1403 ":v8_nosnapshot", |
| 1421 "//build/config/sanitizers:deps", | 1404 "//build/config/sanitizers:deps", |
| 1422 ] | 1405 ] |
| 1423 } | 1406 } |
| 1424 | |
| 1425 executable("d8") { | |
| 1426 sources = [ | |
| 1427 "src/d8.cc", | |
| 1428 ] | |
| 1429 deps = [ | |
| 1430 ":d8_js2c", | |
| 1431 ":v8", | |
| 1432 ":v8_libplatform", | |
| 1433 ] | |
| 1434 | |
| 1435 configs += [ | |
| 1436 ":internal_config", | |
| 1437 ":features", | |
| 1438 ":toolchain", | |
| 1439 ] | |
| 1440 | |
| 1441 # TODO(GYP): Build option for readline support. | |
| 1442 | |
| 1443 if (is_posix) { | |
| 1444 sources += [ "src/d8-posix.cc" ] | |
| 1445 } else if (is_win) { | |
| 1446 sources += [ "src/d8-windows.cc" ] | |
| 1447 } | |
| 1448 | |
| 1449 if (component_mode != "shared_library") { | |
| 1450 sources += [ | |
| 1451 "src/d8-debug.cc", | |
| 1452 "$target_gen_dir/d8-js.cc", | |
| 1453 ] | |
| 1454 } | |
| 1455 if (v8_enable_i18n_support) { | |
| 1456 deps += [ "//third_party/icu" ] | |
| 1457 } | |
| 1458 | |
| 1459 # TODO(GYP) v8_enable_vtunejit support in d8. | |
| 1460 } | |
| 1461 } | 1407 } |
| 1462 | 1408 |
| 1463 ############################################################################### | 1409 ############################################################################### |
| 1464 # Public targets | 1410 # Public targets |
| 1465 # | 1411 # |
| 1466 | 1412 |
| 1467 if (component_mode == "shared_library") { | 1413 if (component_mode == "shared_library") { |
| 1468 component("v8") { | 1414 component("v8") { |
| 1469 sources = [ | 1415 sources = [ |
| 1470 "src/v8dll-main.cc", | 1416 "src/v8dll-main.cc", |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 assert(!v8_use_external_startup_data) | 1465 assert(!v8_use_external_startup_data) |
| 1520 deps = [ | 1466 deps = [ |
| 1521 ":v8_base", | 1467 ":v8_base", |
| 1522 ":v8_nosnapshot", | 1468 ":v8_nosnapshot", |
| 1523 ] | 1469 ] |
| 1524 } | 1470 } |
| 1525 | 1471 |
| 1526 direct_dependent_configs = [ ":external_config" ] | 1472 direct_dependent_configs = [ ":external_config" ] |
| 1527 } | 1473 } |
| 1528 } | 1474 } |
| OLD | NEW |