| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 if (v8_use_external_startup_data) { | 251 if (v8_use_external_startup_data) { |
| 252 outputs += [ "$target_gen_dir/libraries.bin" ] | 252 outputs += [ "$target_gen_dir/libraries.bin" ] |
| 253 args += [ | 253 args += [ |
| 254 "--startup_blob", | 254 "--startup_blob", |
| 255 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), | 255 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), |
| 256 ] | 256 ] |
| 257 } | 257 } |
| 258 } | 258 } |
| 259 | 259 |
| 260 action("js2c_code_stubs") { |
| 261 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 262 |
| 263 script = "tools/js2c.py" |
| 264 |
| 265 # The script depends on this other script, this rule causes a rebuild if it |
| 266 # changes. |
| 267 inputs = [ "tools/jsmin.py" ] |
| 268 |
| 269 sources = [ |
| 270 "src/macros.py", |
| 271 "src/messages.h", |
| 272 "src/code-stubs.js" |
| 273 ] |
| 274 |
| 275 outputs = [ |
| 276 "$target_gen_dir/code-stub-libraries.cc", |
| 277 ] |
| 278 |
| 279 args = [ |
| 280 rebase_path("$target_gen_dir/code-stub-libraries.cc", |
| 281 root_build_dir), |
| 282 "CODE_STUB", |
| 283 ] + rebase_path(sources, root_build_dir) |
| 284 |
| 285 if (v8_use_external_startup_data) { |
| 286 outputs += [ "$target_gen_dir/libraries_code_stub.bin" ] |
| 287 args += [ |
| 288 "--startup_blob", |
| 289 rebase_path("$target_gen_dir/libraries_code_stub.bin", root_build_dir), |
| 290 ] |
| 291 } |
| 292 } |
| 293 |
| 260 action("js2c_experimental") { | 294 action("js2c_experimental") { |
| 261 visibility = [ ":*" ] # Only targets in this file can depend on this. | 295 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 262 | 296 |
| 263 script = "tools/js2c.py" | 297 script = "tools/js2c.py" |
| 264 | 298 |
| 265 # The script depends on this other script, this rule causes a rebuild if it | 299 # The script depends on this other script, this rule causes a rebuild if it |
| 266 # changes. | 300 # changes. |
| 267 inputs = [ "tools/jsmin.py" ] | 301 inputs = [ "tools/jsmin.py" ] |
| 268 | 302 |
| 269 sources = [ | 303 sources = [ |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + | 381 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + |
| 348 rebase_path(inputs, root_build_dir) | 382 rebase_path(inputs, root_build_dir) |
| 349 } | 383 } |
| 350 | 384 |
| 351 if (v8_use_external_startup_data) { | 385 if (v8_use_external_startup_data) { |
| 352 action("natives_blob") { | 386 action("natives_blob") { |
| 353 visibility = [ ":*" ] # Only targets in this file can depend on this. | 387 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 354 | 388 |
| 355 deps = [ | 389 deps = [ |
| 356 ":js2c", | 390 ":js2c", |
| 391 ":js2c_code_stubs", |
| 357 ":js2c_experimental", | 392 ":js2c_experimental", |
| 358 ":js2c_extras", | 393 ":js2c_extras", |
| 359 ] | 394 ] |
| 360 | 395 |
| 361 sources = [ | 396 sources = [ |
| 362 "$target_gen_dir/libraries.bin", | 397 "$target_gen_dir/libraries.bin", |
| 398 "$target_gen_dir/libraries_code_stub.bin", |
| 363 "$target_gen_dir/libraries_experimental.bin", | 399 "$target_gen_dir/libraries_experimental.bin", |
| 364 "$target_gen_dir/libraries_extras.bin", | 400 "$target_gen_dir/libraries_extras.bin", |
| 365 ] | 401 ] |
| 366 | 402 |
| 367 outputs = [ | 403 outputs = [ |
| 368 "$root_out_dir/natives_blob.bin", | 404 "$root_out_dir/natives_blob.bin", |
| 369 ] | 405 ] |
| 370 | 406 |
| 371 script = "tools/concatenate-files.py" | 407 script = "tools/concatenate-files.py" |
| 372 | 408 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 474 |
| 439 ############################################################################### | 475 ############################################################################### |
| 440 # Source Sets (aka static libraries) | 476 # Source Sets (aka static libraries) |
| 441 # | 477 # |
| 442 | 478 |
| 443 source_set("v8_nosnapshot") { | 479 source_set("v8_nosnapshot") { |
| 444 visibility = [ ":*" ] # Only targets in this file can depend on this. | 480 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 445 | 481 |
| 446 deps = [ | 482 deps = [ |
| 447 ":js2c", | 483 ":js2c", |
| 484 ":js2c_code_stubs", |
| 448 ":js2c_experimental", | 485 ":js2c_experimental", |
| 449 ":js2c_extras", | 486 ":js2c_extras", |
| 450 ":v8_base", | 487 ":v8_base", |
| 451 ] | 488 ] |
| 452 | 489 |
| 453 sources = [ | 490 sources = [ |
| 454 "$target_gen_dir/libraries.cc", | 491 "$target_gen_dir/libraries.cc", |
| 492 "$target_gen_dir/code-stub-libraries.cc", |
| 455 "$target_gen_dir/experimental-libraries.cc", | 493 "$target_gen_dir/experimental-libraries.cc", |
| 456 "$target_gen_dir/extras-libraries.cc", | 494 "$target_gen_dir/extras-libraries.cc", |
| 457 "src/snapshot/snapshot-empty.cc", | 495 "src/snapshot/snapshot-empty.cc", |
| 458 ] | 496 ] |
| 459 | 497 |
| 460 configs -= [ "//build/config/compiler:chromium_code" ] | 498 configs -= [ "//build/config/compiler:chromium_code" ] |
| 461 configs += [ "//build/config/compiler:no_chromium_code" ] | 499 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 462 configs += [ | 500 configs += [ |
| 463 ":internal_config", | 501 ":internal_config", |
| 464 ":features", | 502 ":features", |
| 465 ":toolchain", | 503 ":toolchain", |
| 466 ] | 504 ] |
| 467 } | 505 } |
| 468 | 506 |
| 469 source_set("v8_snapshot") { | 507 source_set("v8_snapshot") { |
| 470 # Only targets in this file and the top-level visibility target can | 508 # Only targets in this file and the top-level visibility target can |
| 471 # depend on this. | 509 # depend on this. |
| 472 visibility = [ | 510 visibility = [ |
| 473 ":*", | 511 ":*", |
| 474 "//:gn_visibility", | 512 "//:gn_visibility", |
| 475 ] | 513 ] |
| 476 | 514 |
| 477 deps = [ | 515 deps = [ |
| 478 ":js2c", | 516 ":js2c", |
| 517 ":js2c_code_stubs", |
| 479 ":js2c_experimental", | 518 ":js2c_experimental", |
| 480 ":js2c_extras", | 519 ":js2c_extras", |
| 481 ":v8_base", | 520 ":v8_base", |
| 482 ] | 521 ] |
| 483 public_deps = [ | 522 public_deps = [ |
| 484 # This should be public so downstream targets can declare the snapshot | 523 # This should be public so downstream targets can declare the snapshot |
| 485 # output file as their inputs. | 524 # output file as their inputs. |
| 486 ":run_mksnapshot", | 525 ":run_mksnapshot", |
| 487 ] | 526 ] |
| 488 | 527 |
| 489 sources = [ | 528 sources = [ |
| 490 "$target_gen_dir/libraries.cc", | 529 "$target_gen_dir/libraries.cc", |
| 530 "$target_gen_dir/code-stub-libraries.cc", |
| 491 "$target_gen_dir/experimental-libraries.cc", | 531 "$target_gen_dir/experimental-libraries.cc", |
| 492 "$target_gen_dir/extras-libraries.cc", | 532 "$target_gen_dir/extras-libraries.cc", |
| 493 "$target_gen_dir/snapshot.cc", | 533 "$target_gen_dir/snapshot.cc", |
| 494 ] | 534 ] |
| 495 | 535 |
| 496 configs -= [ "//build/config/compiler:chromium_code" ] | 536 configs -= [ "//build/config/compiler:chromium_code" ] |
| 497 configs += [ "//build/config/compiler:no_chromium_code" ] | 537 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 498 configs += [ | 538 configs += [ |
| 499 ":internal_config", | 539 ":internal_config", |
| 500 ":features", | 540 ":features", |
| 501 ":toolchain", | 541 ":toolchain", |
| 502 ] | 542 ] |
| 503 } | 543 } |
| 504 | 544 |
| 505 if (v8_use_external_startup_data) { | 545 if (v8_use_external_startup_data) { |
| 506 source_set("v8_external_snapshot") { | 546 source_set("v8_external_snapshot") { |
| 507 visibility = [ ":*" ] # Only targets in this file can depend on this. | 547 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 508 | 548 |
| 509 deps = [ | 549 deps = [ |
| 510 ":js2c", | 550 ":js2c", |
| 551 ":js2c_code_stubs", |
| 511 ":js2c_experimental", | 552 ":js2c_experimental", |
| 512 ":js2c_extras", | 553 ":js2c_extras", |
| 513 ":v8_base", | 554 ":v8_base", |
| 514 ] | 555 ] |
| 515 public_deps = [ | 556 public_deps = [ |
| 516 ":natives_blob", | 557 ":natives_blob", |
| 517 ":run_mksnapshot", | 558 ":run_mksnapshot", |
| 518 ] | 559 ] |
| 519 | 560 |
| 520 sources = [ | 561 sources = [ |
| (...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 "src/d8-debug.cc", | 1755 "src/d8-debug.cc", |
| 1715 "src/d8-debug.h", | 1756 "src/d8-debug.h", |
| 1716 "$target_gen_dir/d8-js.cc", | 1757 "$target_gen_dir/d8-js.cc", |
| 1717 ] | 1758 ] |
| 1718 } | 1759 } |
| 1719 if (v8_enable_i18n_support) { | 1760 if (v8_enable_i18n_support) { |
| 1720 deps += [ "//third_party/icu" ] | 1761 deps += [ "//third_party/icu" ] |
| 1721 } | 1762 } |
| 1722 } | 1763 } |
| 1723 } | 1764 } |
| OLD | NEW |