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