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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/mips.gni") | 7 import("//build/config/mips.gni") |
8 | 8 |
9 # Because standalone V8 builds are not supported, assume this is part of a | 9 # Because standalone V8 builds are not supported, assume this is part of a |
10 # Chromium build. | 10 # Chromium build. |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 360 |
361 if (v8_use_external_startup_data) { | 361 if (v8_use_external_startup_data) { |
362 outputs += [ "$target_gen_dir/libraries_extras.bin" ] | 362 outputs += [ "$target_gen_dir/libraries_extras.bin" ] |
363 args += [ | 363 args += [ |
364 "--startup_blob", | 364 "--startup_blob", |
365 rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir), | 365 rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir), |
366 ] | 366 ] |
367 } | 367 } |
368 } | 368 } |
369 | 369 |
| 370 action("js2c_experimental_extras") { |
| 371 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 372 |
| 373 script = "tools/js2c.py" |
| 374 |
| 375 # The script depends on this other script, this rule causes a rebuild if it |
| 376 # changes. |
| 377 inputs = [ "tools/jsmin.py" ] |
| 378 |
| 379 sources = v8_experimental_extra_library_files |
| 380 |
| 381 outputs = [ |
| 382 "$target_gen_dir/experimental-extras-libraries.cc", |
| 383 ] |
| 384 |
| 385 args = [ |
| 386 rebase_path("$target_gen_dir/experimental-extras-libraries.cc", |
| 387 root_build_dir), |
| 388 "EXPERIMENTAL_EXTRAS", |
| 389 ] + rebase_path(sources, root_build_dir) |
| 390 |
| 391 if (v8_use_external_startup_data) { |
| 392 outputs += [ "$target_gen_dir/libraries_experimental_extras.bin" ] |
| 393 args += [ |
| 394 "--startup_blob", |
| 395 rebase_path("$target_gen_dir/libraries_experimental_extras.bin", root_buil
d_dir), |
| 396 ] |
| 397 } |
| 398 } |
| 399 |
370 action("d8_js2c") { | 400 action("d8_js2c") { |
371 visibility = [ ":*" ] # Only targets in this file can depend on this. | 401 visibility = [ ":*" ] # Only targets in this file can depend on this. |
372 | 402 |
373 script = "tools/js2c.py" | 403 script = "tools/js2c.py" |
374 | 404 |
375 inputs = [ | 405 inputs = [ |
376 "src/d8.js", | 406 "src/d8.js", |
377 "src/macros.py", | 407 "src/macros.py", |
378 ] | 408 ] |
379 | 409 |
380 outputs = [ | 410 outputs = [ |
381 "$target_gen_dir/d8-js.cc", | 411 "$target_gen_dir/d8-js.cc", |
382 ] | 412 ] |
383 | 413 |
384 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + | 414 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + |
385 rebase_path(inputs, root_build_dir) | 415 rebase_path(inputs, root_build_dir) |
386 } | 416 } |
387 | 417 |
388 if (v8_use_external_startup_data) { | 418 if (v8_use_external_startup_data) { |
389 action("natives_blob") { | 419 action("natives_blob") { |
390 visibility = [ ":*" ] # Only targets in this file can depend on this. | 420 visibility = [ ":*" ] # Only targets in this file can depend on this. |
391 | 421 |
392 deps = [ | 422 deps = [ |
393 ":js2c", | 423 ":js2c", |
394 ":js2c_code_stubs", | 424 ":js2c_code_stubs", |
395 ":js2c_experimental", | 425 ":js2c_experimental", |
396 ":js2c_extras", | 426 ":js2c_extras", |
| 427 ":js2c_experimental_extras", |
397 ] | 428 ] |
398 | 429 |
399 sources = [ | 430 sources = [ |
400 "$target_gen_dir/libraries.bin", | 431 "$target_gen_dir/libraries.bin", |
401 "$target_gen_dir/libraries_code_stub.bin", | 432 "$target_gen_dir/libraries_code_stub.bin", |
402 "$target_gen_dir/libraries_experimental.bin", | 433 "$target_gen_dir/libraries_experimental.bin", |
403 "$target_gen_dir/libraries_extras.bin", | 434 "$target_gen_dir/libraries_extras.bin", |
| 435 "$target_gen_dir/libraries_experimental_extras.bin", |
404 ] | 436 ] |
405 | 437 |
406 outputs = [ | 438 outputs = [ |
407 "$root_out_dir/natives_blob.bin", | 439 "$root_out_dir/natives_blob.bin", |
408 ] | 440 ] |
409 | 441 |
410 script = "tools/concatenate-files.py" | 442 script = "tools/concatenate-files.py" |
411 | 443 |
412 args = rebase_path(sources + outputs, root_build_dir) | 444 args = rebase_path(sources + outputs, root_build_dir) |
413 } | 445 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 # | 512 # |
481 | 513 |
482 source_set("v8_nosnapshot") { | 514 source_set("v8_nosnapshot") { |
483 visibility = [ ":*" ] # Only targets in this file can depend on this. | 515 visibility = [ ":*" ] # Only targets in this file can depend on this. |
484 | 516 |
485 deps = [ | 517 deps = [ |
486 ":js2c", | 518 ":js2c", |
487 ":js2c_code_stubs", | 519 ":js2c_code_stubs", |
488 ":js2c_experimental", | 520 ":js2c_experimental", |
489 ":js2c_extras", | 521 ":js2c_extras", |
| 522 ":js2c_experimental_extras", |
490 ":v8_base", | 523 ":v8_base", |
491 ] | 524 ] |
492 | 525 |
493 sources = [ | 526 sources = [ |
494 "$target_gen_dir/libraries.cc", | 527 "$target_gen_dir/libraries.cc", |
495 "$target_gen_dir/code-stub-libraries.cc", | 528 "$target_gen_dir/code-stub-libraries.cc", |
496 "$target_gen_dir/experimental-libraries.cc", | 529 "$target_gen_dir/experimental-libraries.cc", |
497 "$target_gen_dir/extras-libraries.cc", | 530 "$target_gen_dir/extras-libraries.cc", |
| 531 "$target_gen_dir/experimental-extras-libraries.cc", |
498 "src/snapshot/snapshot-empty.cc", | 532 "src/snapshot/snapshot-empty.cc", |
499 ] | 533 ] |
500 | 534 |
501 configs -= [ "//build/config/compiler:chromium_code" ] | 535 configs -= [ "//build/config/compiler:chromium_code" ] |
502 configs += [ "//build/config/compiler:no_chromium_code" ] | 536 configs += [ "//build/config/compiler:no_chromium_code" ] |
503 configs += [ | 537 configs += [ |
504 ":internal_config", | 538 ":internal_config", |
505 ":features", | 539 ":features", |
506 ":toolchain", | 540 ":toolchain", |
507 ] | 541 ] |
508 } | 542 } |
509 | 543 |
510 source_set("v8_snapshot") { | 544 source_set("v8_snapshot") { |
511 # Only targets in this file and the top-level visibility target can | 545 # Only targets in this file and the top-level visibility target can |
512 # depend on this. | 546 # depend on this. |
513 visibility = [ | 547 visibility = [ |
514 ":*", | 548 ":*", |
515 "//:gn_visibility", | 549 "//:gn_visibility", |
516 ] | 550 ] |
517 | 551 |
518 deps = [ | 552 deps = [ |
519 ":js2c", | 553 ":js2c", |
520 ":js2c_code_stubs", | 554 ":js2c_code_stubs", |
521 ":js2c_experimental", | 555 ":js2c_experimental", |
522 ":js2c_extras", | 556 ":js2c_extras", |
| 557 ":js2c_experimental_extras", |
523 ":v8_base", | 558 ":v8_base", |
524 ] | 559 ] |
525 public_deps = [ | 560 public_deps = [ |
526 # This should be public so downstream targets can declare the snapshot | 561 # This should be public so downstream targets can declare the snapshot |
527 # output file as their inputs. | 562 # output file as their inputs. |
528 ":run_mksnapshot", | 563 ":run_mksnapshot", |
529 ] | 564 ] |
530 | 565 |
531 sources = [ | 566 sources = [ |
532 "$target_gen_dir/libraries.cc", | 567 "$target_gen_dir/libraries.cc", |
533 "$target_gen_dir/code-stub-libraries.cc", | 568 "$target_gen_dir/code-stub-libraries.cc", |
534 "$target_gen_dir/experimental-libraries.cc", | 569 "$target_gen_dir/experimental-libraries.cc", |
535 "$target_gen_dir/extras-libraries.cc", | 570 "$target_gen_dir/extras-libraries.cc", |
| 571 "$target_gen_dir/experimental-extras-libraries.cc", |
536 "$target_gen_dir/snapshot.cc", | 572 "$target_gen_dir/snapshot.cc", |
537 ] | 573 ] |
538 | 574 |
539 configs -= [ "//build/config/compiler:chromium_code" ] | 575 configs -= [ "//build/config/compiler:chromium_code" ] |
540 configs += [ "//build/config/compiler:no_chromium_code" ] | 576 configs += [ "//build/config/compiler:no_chromium_code" ] |
541 configs += [ | 577 configs += [ |
542 ":internal_config", | 578 ":internal_config", |
543 ":features", | 579 ":features", |
544 ":toolchain", | 580 ":toolchain", |
545 ] | 581 ] |
546 } | 582 } |
547 | 583 |
548 if (v8_use_external_startup_data) { | 584 if (v8_use_external_startup_data) { |
549 source_set("v8_external_snapshot") { | 585 source_set("v8_external_snapshot") { |
550 visibility = [ ":*" ] # Only targets in this file can depend on this. | 586 visibility = [ ":*" ] # Only targets in this file can depend on this. |
551 | 587 |
552 deps = [ | 588 deps = [ |
553 ":js2c", | 589 ":js2c", |
554 ":js2c_code_stubs", | 590 ":js2c_code_stubs", |
555 ":js2c_experimental", | 591 ":js2c_experimental", |
556 ":js2c_extras", | 592 ":js2c_extras", |
| 593 ":js2c_experimental_extras", |
557 ":v8_base", | 594 ":v8_base", |
558 ] | 595 ] |
559 public_deps = [ | 596 public_deps = [ |
560 ":natives_blob", | 597 ":natives_blob", |
561 ":run_mksnapshot", | 598 ":run_mksnapshot", |
562 ] | 599 ] |
563 | 600 |
564 sources = [ | 601 sources = [ |
565 "src/snapshot/natives-external.cc", | 602 "src/snapshot/natives-external.cc", |
566 "src/snapshot/snapshot-external.cc", | 603 "src/snapshot/snapshot-external.cc", |
(...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 if (!is_component_build) { | 1815 if (!is_component_build) { |
1779 sources += [ | 1816 sources += [ |
1780 "$target_gen_dir/d8-js.cc", | 1817 "$target_gen_dir/d8-js.cc", |
1781 ] | 1818 ] |
1782 } | 1819 } |
1783 if (v8_enable_i18n_support) { | 1820 if (v8_enable_i18n_support) { |
1784 deps += [ "//third_party/icu" ] | 1821 deps += [ "//third_party/icu" ] |
1785 } | 1822 } |
1786 } | 1823 } |
1787 } | 1824 } |
OLD | NEW |