| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 if (v8_use_external_startup_data) { | 290 if (v8_use_external_startup_data) { |
| 291 outputs += [ "$target_gen_dir/libraries_experimental.bin" ] | 291 outputs += [ "$target_gen_dir/libraries_experimental.bin" ] |
| 292 args += [ | 292 args += [ |
| 293 "--startup_blob", | 293 "--startup_blob", |
| 294 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir), | 294 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir), |
| 295 ] | 295 ] |
| 296 } | 296 } |
| 297 } | 297 } |
| 298 | 298 |
| 299 action("js2c_extras") { | |
| 300 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
| 301 | |
| 302 script = "tools/js2c.py" | |
| 303 | |
| 304 # The script depends on this other script, this rule causes a rebuild if it | |
| 305 # changes. | |
| 306 inputs = [ "tools/jsmin.py" ] | |
| 307 | |
| 308 sources = v8_extra_library_files | |
| 309 | |
| 310 outputs = [ | |
| 311 "$target_gen_dir/extras-libraries.cc", | |
| 312 ] | |
| 313 | |
| 314 args = [ | |
| 315 rebase_path("$target_gen_dir/extras-libraries.cc", | |
| 316 root_build_dir), | |
| 317 "EXTRAS", | |
| 318 ] + rebase_path(sources, root_build_dir) | |
| 319 | |
| 320 if (v8_use_external_startup_data) { | |
| 321 outputs += [ "$target_gen_dir/libraries_extras.bin" ] | |
| 322 args += [ | |
| 323 "--startup_blob", | |
| 324 rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir), | |
| 325 ] | |
| 326 } | |
| 327 } | |
| 328 | |
| 329 action("d8_js2c") { | 299 action("d8_js2c") { |
| 330 visibility = [ ":*" ] # Only targets in this file can depend on this. | 300 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 331 | 301 |
| 332 script = "tools/js2c.py" | 302 script = "tools/js2c.py" |
| 333 | 303 |
| 334 inputs = [ | 304 inputs = [ |
| 335 "src/d8.js", | 305 "src/d8.js", |
| 336 "src/macros.py", | 306 "src/macros.py", |
| 337 ] | 307 ] |
| 338 | 308 |
| 339 outputs = [ | 309 outputs = [ |
| 340 "$target_gen_dir/d8-js.cc", | 310 "$target_gen_dir/d8-js.cc", |
| 341 ] | 311 ] |
| 342 | 312 |
| 343 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + | 313 args = rebase_path(outputs, root_build_dir) + [ "D8" ] + |
| 344 rebase_path(inputs, root_build_dir) | 314 rebase_path(inputs, root_build_dir) |
| 345 } | 315 } |
| 346 | 316 |
| 347 if (v8_use_external_startup_data) { | 317 if (v8_use_external_startup_data) { |
| 348 action("natives_blob") { | 318 action("natives_blob") { |
| 349 visibility = [ ":*" ] # Only targets in this file can depend on this. | 319 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 350 | 320 |
| 351 deps = [ | 321 deps = [ |
| 352 ":js2c", | 322 ":js2c", |
| 353 ":js2c_experimental", | 323 ":js2c_experimental", |
| 354 ":js2c_extras", | |
| 355 ] | 324 ] |
| 356 | 325 |
| 357 sources = [ | 326 sources = [ |
| 358 "$target_gen_dir/libraries.bin", | 327 "$target_gen_dir/libraries.bin", |
| 359 "$target_gen_dir/libraries_experimental.bin", | 328 "$target_gen_dir/libraries_experimental.bin", |
| 360 "$target_gen_dir/libraries_extras.bin", | |
| 361 ] | 329 ] |
| 362 | 330 |
| 363 outputs = [ | 331 outputs = [ |
| 364 "$root_out_dir/natives_blob.bin", | 332 "$root_out_dir/natives_blob.bin", |
| 365 ] | 333 ] |
| 366 | 334 |
| 367 script = "tools/concatenate-files.py" | 335 script = "tools/concatenate-files.py" |
| 368 | 336 |
| 369 args = rebase_path(sources + outputs, root_build_dir) | 337 args = rebase_path(sources + outputs, root_build_dir) |
| 370 } | 338 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 ############################################################################### | 403 ############################################################################### |
| 436 # Source Sets (aka static libraries) | 404 # Source Sets (aka static libraries) |
| 437 # | 405 # |
| 438 | 406 |
| 439 source_set("v8_nosnapshot") { | 407 source_set("v8_nosnapshot") { |
| 440 visibility = [ ":*" ] # Only targets in this file can depend on this. | 408 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 441 | 409 |
| 442 deps = [ | 410 deps = [ |
| 443 ":js2c", | 411 ":js2c", |
| 444 ":js2c_experimental", | 412 ":js2c_experimental", |
| 445 ":js2c_extras", | |
| 446 ":v8_base", | 413 ":v8_base", |
| 447 ] | 414 ] |
| 448 | 415 |
| 449 sources = [ | 416 sources = [ |
| 450 "$target_gen_dir/libraries.cc", | 417 "$target_gen_dir/libraries.cc", |
| 451 "$target_gen_dir/experimental-libraries.cc", | 418 "$target_gen_dir/experimental-libraries.cc", |
| 452 "$target_gen_dir/extras-libraries.cc", | |
| 453 "src/snapshot/snapshot-empty.cc", | 419 "src/snapshot/snapshot-empty.cc", |
| 454 ] | 420 ] |
| 455 | 421 |
| 456 configs -= [ "//build/config/compiler:chromium_code" ] | 422 configs -= [ "//build/config/compiler:chromium_code" ] |
| 457 configs += [ "//build/config/compiler:no_chromium_code" ] | 423 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 458 configs += [ | 424 configs += [ |
| 459 ":internal_config", | 425 ":internal_config", |
| 460 ":features", | 426 ":features", |
| 461 ":toolchain", | 427 ":toolchain", |
| 462 ] | 428 ] |
| 463 } | 429 } |
| 464 | 430 |
| 465 source_set("v8_snapshot") { | 431 source_set("v8_snapshot") { |
| 466 # Only targets in this file and the top-level visibility target can | 432 # Only targets in this file and the top-level visibility target can |
| 467 # depend on this. | 433 # depend on this. |
| 468 visibility = [ | 434 visibility = [ |
| 469 ":*", | 435 ":*", |
| 470 "//:gn_visibility", | 436 "//:gn_visibility", |
| 471 ] | 437 ] |
| 472 | 438 |
| 473 deps = [ | 439 deps = [ |
| 474 ":js2c", | 440 ":js2c", |
| 475 ":js2c_experimental", | 441 ":js2c_experimental", |
| 476 ":js2c_extras", | |
| 477 ":run_mksnapshot", | 442 ":run_mksnapshot", |
| 478 ":v8_base", | 443 ":v8_base", |
| 479 ] | 444 ] |
| 480 | 445 |
| 481 sources = [ | 446 sources = [ |
| 482 "$target_gen_dir/libraries.cc", | 447 "$target_gen_dir/libraries.cc", |
| 483 "$target_gen_dir/experimental-libraries.cc", | 448 "$target_gen_dir/experimental-libraries.cc", |
| 484 "$target_gen_dir/extras-libraries.cc", | |
| 485 "$target_gen_dir/snapshot.cc", | 449 "$target_gen_dir/snapshot.cc", |
| 486 ] | 450 ] |
| 487 | 451 |
| 488 configs -= [ "//build/config/compiler:chromium_code" ] | 452 configs -= [ "//build/config/compiler:chromium_code" ] |
| 489 configs += [ "//build/config/compiler:no_chromium_code" ] | 453 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 490 configs += [ | 454 configs += [ |
| 491 ":internal_config", | 455 ":internal_config", |
| 492 ":features", | 456 ":features", |
| 493 ":toolchain", | 457 ":toolchain", |
| 494 ] | 458 ] |
| 495 } | 459 } |
| 496 | 460 |
| 497 if (v8_use_external_startup_data) { | 461 if (v8_use_external_startup_data) { |
| 498 source_set("v8_external_snapshot") { | 462 source_set("v8_external_snapshot") { |
| 499 visibility = [ ":*" ] # Only targets in this file can depend on this. | 463 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 500 | 464 |
| 501 deps = [ | 465 deps = [ |
| 502 ":js2c", | 466 ":js2c", |
| 503 ":js2c_experimental", | 467 ":js2c_experimental", |
| 504 ":js2c_extras", | |
| 505 ":run_mksnapshot", | 468 ":run_mksnapshot", |
| 506 ":v8_base", | 469 ":v8_base", |
| 507 ":natives_blob", | 470 ":natives_blob", |
| 508 ] | 471 ] |
| 509 | 472 |
| 510 sources = [ | 473 sources = [ |
| 511 "src/snapshot/natives-external.cc", | 474 "src/snapshot/natives-external.cc", |
| 512 "src/snapshot/snapshot-external.cc", | 475 "src/snapshot/snapshot-external.cc", |
| 513 ] | 476 ] |
| 514 | 477 |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1659 sources += [ | 1622 sources += [ |
| 1660 "src/d8-debug.cc", | 1623 "src/d8-debug.cc", |
| 1661 "$target_gen_dir/d8-js.cc", | 1624 "$target_gen_dir/d8-js.cc", |
| 1662 ] | 1625 ] |
| 1663 } | 1626 } |
| 1664 if (v8_enable_i18n_support) { | 1627 if (v8_enable_i18n_support) { |
| 1665 deps += [ "//third_party/icu" ] | 1628 deps += [ "//third_party/icu" ] |
| 1666 } | 1629 } |
| 1667 } | 1630 } |
| 1668 } | 1631 } |
| OLD | NEW |