Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: BUILD.gn

Issue 1475953002: [stubs] A new approach to TF stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win64 build Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 if (v8_use_external_startup_data) { 260 if (v8_use_external_startup_data) {
261 outputs += [ "$target_gen_dir/libraries.bin" ] 261 outputs += [ "$target_gen_dir/libraries.bin" ]
262 args += [ 262 args += [
263 "--startup_blob", 263 "--startup_blob",
264 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), 264 rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
265 ] 265 ]
266 } 266 }
267 } 267 }
268 268
269 action("js2c_code_stubs") {
270 visibility = [ ":*" ] # Only targets in this file can depend on this.
271
272 script = "tools/js2c.py"
273
274 # The script depends on this other script, this rule causes a rebuild if it
275 # changes.
276 inputs = [ "tools/jsmin.py" ]
277
278 sources = [
279 "src/js/macros.py",
280 "src/messages.h",
281 "src/js/code-stubs.js"
282 ]
283
284 outputs = [
285 "$target_gen_dir/code-stub-libraries.cc",
286 ]
287
288 args = [
289 rebase_path("$target_gen_dir/code-stub-libraries.cc",
290 root_build_dir),
291 "CODE_STUB",
292 ] + rebase_path(sources, root_build_dir)
293
294 if (v8_use_external_startup_data) {
295 outputs += [ "$target_gen_dir/libraries_code_stub.bin" ]
296 args += [
297 "--startup_blob",
298 rebase_path("$target_gen_dir/libraries_code_stub.bin", root_build_dir),
299 ]
300 }
301 }
302
303 action("js2c_experimental") { 269 action("js2c_experimental") {
304 visibility = [ ":*" ] # Only targets in this file can depend on this. 270 visibility = [ ":*" ] # Only targets in this file can depend on this.
305 271
306 script = "tools/js2c.py" 272 script = "tools/js2c.py"
307 273
308 # The script depends on this other script, this rule causes a rebuild if it 274 # The script depends on this other script, this rule causes a rebuild if it
309 # changes. 275 # changes.
310 inputs = [ "tools/jsmin.py" ] 276 inputs = [ "tools/jsmin.py" ]
311 277
312 sources = [ 278 sources = [
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 399 }
434 } 400 }
435 } 401 }
436 402
437 if (v8_use_external_startup_data) { 403 if (v8_use_external_startup_data) {
438 action("natives_blob") { 404 action("natives_blob") {
439 visibility = [ ":*" ] # Only targets in this file can depend on this. 405 visibility = [ ":*" ] # Only targets in this file can depend on this.
440 406
441 deps = [ 407 deps = [
442 ":js2c", 408 ":js2c",
443 ":js2c_code_stubs",
444 ":js2c_experimental", 409 ":js2c_experimental",
445 ":js2c_extras", 410 ":js2c_extras",
446 ":js2c_experimental_extras", 411 ":js2c_experimental_extras",
447 ] 412 ]
448 413
449 sources = [ 414 sources = [
450 "$target_gen_dir/libraries.bin", 415 "$target_gen_dir/libraries.bin",
451 "$target_gen_dir/libraries_code_stub.bin",
452 "$target_gen_dir/libraries_experimental.bin", 416 "$target_gen_dir/libraries_experimental.bin",
453 "$target_gen_dir/libraries_extras.bin", 417 "$target_gen_dir/libraries_extras.bin",
454 "$target_gen_dir/libraries_experimental_extras.bin", 418 "$target_gen_dir/libraries_experimental_extras.bin",
455 ] 419 ]
456 420
457 outputs = [ 421 outputs = [
458 "$root_out_dir/natives_blob.bin", 422 "$root_out_dir/natives_blob.bin",
459 ] 423 ]
460 424
461 script = "tools/concatenate-files.py" 425 script = "tools/concatenate-files.py"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 493
530 ############################################################################### 494 ###############################################################################
531 # Source Sets (aka static libraries) 495 # Source Sets (aka static libraries)
532 # 496 #
533 497
534 source_set("v8_nosnapshot") { 498 source_set("v8_nosnapshot") {
535 visibility = [ ":*" ] # Only targets in this file can depend on this. 499 visibility = [ ":*" ] # Only targets in this file can depend on this.
536 500
537 deps = [ 501 deps = [
538 ":js2c", 502 ":js2c",
539 ":js2c_code_stubs",
540 ":js2c_experimental", 503 ":js2c_experimental",
541 ":js2c_extras", 504 ":js2c_extras",
542 ":js2c_experimental_extras", 505 ":js2c_experimental_extras",
543 ":v8_base", 506 ":v8_base",
544 ] 507 ]
545 508
546 sources = [ 509 sources = [
547 "$target_gen_dir/libraries.cc", 510 "$target_gen_dir/libraries.cc",
548 "$target_gen_dir/code-stub-libraries.cc",
549 "$target_gen_dir/experimental-libraries.cc", 511 "$target_gen_dir/experimental-libraries.cc",
550 "$target_gen_dir/extras-libraries.cc", 512 "$target_gen_dir/extras-libraries.cc",
551 "$target_gen_dir/experimental-extras-libraries.cc", 513 "$target_gen_dir/experimental-extras-libraries.cc",
552 "src/snapshot/snapshot-empty.cc", 514 "src/snapshot/snapshot-empty.cc",
553 ] 515 ]
554 516
555 configs -= [ "//build/config/compiler:chromium_code" ] 517 configs -= [ "//build/config/compiler:chromium_code" ]
556 configs += [ "//build/config/compiler:no_chromium_code" ] 518 configs += [ "//build/config/compiler:no_chromium_code" ]
557 configs += [ 519 configs += [
558 ":internal_config", 520 ":internal_config",
559 ":features", 521 ":features",
560 ":toolchain", 522 ":toolchain",
561 ] 523 ]
562 } 524 }
563 525
564 source_set("v8_snapshot") { 526 source_set("v8_snapshot") {
565 # Only targets in this file and the top-level visibility target can 527 # Only targets in this file and the top-level visibility target can
566 # depend on this. 528 # depend on this.
567 visibility = [ 529 visibility = [
568 ":*", 530 ":*",
569 "//:gn_visibility", 531 "//:gn_visibility",
570 ] 532 ]
571 533
572 deps = [ 534 deps = [
573 ":js2c", 535 ":js2c",
574 ":js2c_code_stubs",
575 ":js2c_experimental", 536 ":js2c_experimental",
576 ":js2c_extras", 537 ":js2c_extras",
577 ":js2c_experimental_extras", 538 ":js2c_experimental_extras",
578 ":v8_base", 539 ":v8_base",
579 ] 540 ]
580 public_deps = [ 541 public_deps = [
581 # This should be public so downstream targets can declare the snapshot 542 # This should be public so downstream targets can declare the snapshot
582 # output file as their inputs. 543 # output file as their inputs.
583 ":run_mksnapshot", 544 ":run_mksnapshot",
584 ] 545 ]
585 546
586 sources = [ 547 sources = [
587 "$target_gen_dir/libraries.cc", 548 "$target_gen_dir/libraries.cc",
588 "$target_gen_dir/code-stub-libraries.cc",
589 "$target_gen_dir/experimental-libraries.cc", 549 "$target_gen_dir/experimental-libraries.cc",
590 "$target_gen_dir/extras-libraries.cc", 550 "$target_gen_dir/extras-libraries.cc",
591 "$target_gen_dir/experimental-extras-libraries.cc", 551 "$target_gen_dir/experimental-extras-libraries.cc",
592 "$target_gen_dir/snapshot.cc", 552 "$target_gen_dir/snapshot.cc",
593 ] 553 ]
594 554
595 configs -= [ "//build/config/compiler:chromium_code" ] 555 configs -= [ "//build/config/compiler:chromium_code" ]
596 configs += [ "//build/config/compiler:no_chromium_code" ] 556 configs += [ "//build/config/compiler:no_chromium_code" ]
597 configs += [ 557 configs += [
598 ":internal_config", 558 ":internal_config",
599 ":features", 559 ":features",
600 ":toolchain", 560 ":toolchain",
601 ] 561 ]
602 } 562 }
603 563
604 if (v8_use_external_startup_data) { 564 if (v8_use_external_startup_data) {
605 source_set("v8_external_snapshot") { 565 source_set("v8_external_snapshot") {
606 visibility = [ ":*" ] # Only targets in this file can depend on this. 566 visibility = [ ":*" ] # Only targets in this file can depend on this.
607 567
608 deps = [ 568 deps = [
609 ":js2c", 569 ":js2c",
610 ":js2c_code_stubs",
611 ":js2c_experimental", 570 ":js2c_experimental",
612 ":js2c_extras", 571 ":js2c_extras",
613 ":js2c_experimental_extras", 572 ":js2c_experimental_extras",
614 ":v8_base", 573 ":v8_base",
615 ] 574 ]
616 public_deps = [ 575 public_deps = [
617 ":natives_blob", 576 ":natives_blob",
618 ":run_mksnapshot", 577 ":run_mksnapshot",
619 ] 578 ]
620 579
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 "src/compiler/bytecode-graph-builder.cc", 697 "src/compiler/bytecode-graph-builder.cc",
739 "src/compiler/bytecode-graph-builder.h", 698 "src/compiler/bytecode-graph-builder.h",
740 "src/compiler/change-lowering.cc", 699 "src/compiler/change-lowering.cc",
741 "src/compiler/change-lowering.h", 700 "src/compiler/change-lowering.h",
742 "src/compiler/c-linkage.cc", 701 "src/compiler/c-linkage.cc",
743 "src/compiler/coalesced-live-ranges.cc", 702 "src/compiler/coalesced-live-ranges.cc",
744 "src/compiler/coalesced-live-ranges.h", 703 "src/compiler/coalesced-live-ranges.h",
745 "src/compiler/code-generator-impl.h", 704 "src/compiler/code-generator-impl.h",
746 "src/compiler/code-generator.cc", 705 "src/compiler/code-generator.cc",
747 "src/compiler/code-generator.h", 706 "src/compiler/code-generator.h",
707 "src/compiler/code-stub-assembler.cc",
708 "src/compiler/code-stub-assembler.h",
748 "src/compiler/common-node-cache.cc", 709 "src/compiler/common-node-cache.cc",
749 "src/compiler/common-node-cache.h", 710 "src/compiler/common-node-cache.h",
750 "src/compiler/common-operator-reducer.cc", 711 "src/compiler/common-operator-reducer.cc",
751 "src/compiler/common-operator-reducer.h", 712 "src/compiler/common-operator-reducer.h",
752 "src/compiler/common-operator.cc", 713 "src/compiler/common-operator.cc",
753 "src/compiler/common-operator.h", 714 "src/compiler/common-operator.h",
754 "src/compiler/control-builders.cc", 715 "src/compiler/control-builders.cc",
755 "src/compiler/control-builders.h", 716 "src/compiler/control-builders.h",
756 "src/compiler/control-equivalence.cc", 717 "src/compiler/control-equivalence.cc",
757 "src/compiler/control-equivalence.h", 718 "src/compiler/control-equivalence.h",
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 if (!is_component_build) { 1833 if (!is_component_build) {
1873 sources += [ 1834 sources += [
1874 "$target_gen_dir/d8-js.cc", 1835 "$target_gen_dir/d8-js.cc",
1875 ] 1836 ]
1876 } 1837 }
1877 if (v8_enable_i18n_support) { 1838 if (v8_enable_i18n_support) {
1878 deps += [ "//third_party/icu" ] 1839 deps += [ "//third_party/icu" ]
1879 } 1840 }
1880 } 1841 }
1881 } 1842 }
OLDNEW
« no previous file with comments | « no previous file | src/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698