OLD | NEW |
---|---|
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import("../../build/executable_suffix.gni") | 5 import("../../build/executable_suffix.gni") |
6 import("../../build/prebuilt_dart_sdk.gni") | 6 import("../../build/prebuilt_dart_sdk.gni") |
7 import("gypi_contents.gni") | 7 import("gypi_contents.gni") |
8 import("../runtime_args.gni") | 8 import("../runtime_args.gni") |
9 | 9 |
10 config("libdart_vm_config") { | 10 config("libdart_vm_config") { |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
399 | 399 |
400 # We list all files which make up the sdk (modulo patches) and get them | 400 # We list all files which make up the sdk (modulo patches) and get them |
401 # back as a GN list object. | 401 # back as a GN list object. |
402 shared_sdk_sources = exec_script("../../tools/list_dart_files.py", | 402 shared_sdk_sources = exec_script("../../tools/list_dart_files.py", |
403 [ | 403 [ |
404 "absolute", | 404 "absolute", |
405 rebase_path("../../sdk/lib"), | 405 rebase_path("../../sdk/lib"), |
406 ], | 406 ], |
407 "list lines") | 407 "list lines") |
408 | 408 |
409 front_end_sources = exec_script("../../tools/list_dart_files.py", | |
410 [ | |
411 "absolute", | |
412 rebase_path("../../pkg/front_end"), | |
413 ], | |
414 "list lines") | |
415 | |
416 kernel_sources = exec_script("../../tools/list_dart_files.py", | |
kustermann
2017/03/02 12:14:14
These exec_script things have just broken the buil
| |
417 [ | |
418 "absolute", | |
419 rebase_path("../../pkg/kernel"), | |
420 ], | |
421 "list lines") | |
422 | |
409 # We list the `patch_sdk.dart` tool here because the [script] (which is | 423 # We list the `patch_sdk.dart` tool here because the [script] (which is |
410 # implicitly an input) will call it. | 424 # implicitly an input) will call it. |
411 inputs = [ | 425 inputs = [ |
412 "../../tools/patch_sdk.dart", | 426 "../../tools/patch_sdk.dart", |
413 ] | 427 ] |
414 | 428 |
415 # Files below are not patches, they will not be in [concatenation_files] | 429 # Files below are not patches, they will not be in [concatenation_files] |
416 # but the `patch_sdk.dart` script will copy them into the patched sdk. | 430 # but the `patch_sdk.dart` script will copy them into the patched sdk. |
417 inputs += [ | 431 inputs += [ |
418 "../bin/builtin.dart", | 432 "../bin/builtin.dart", |
419 "../bin/vmservice/vmservice_io.dart", | 433 "../bin/vmservice/vmservice_io.dart", |
420 "../bin/vmservice/loader.dart", | 434 "../bin/vmservice/loader.dart", |
421 "../bin/vmservice/server.dart", | 435 "../bin/vmservice/server.dart", |
422 ] | 436 ] |
423 | 437 |
424 # Add all the normal sdk sources. | 438 # Add all the normal sdk sources. |
425 inputs += shared_sdk_sources | 439 inputs += shared_sdk_sources |
426 | 440 |
427 # Add all the concatenated patch files. | 441 # Add all the concatenated patch files. |
428 inputs += concatenation_files | 442 inputs += concatenation_files |
429 | 443 |
444 # Add some front-end dependencies | |
445 inputs += front_end_sources | |
446 inputs += kernel_sources | |
447 | |
430 outputs = [ | 448 outputs = [ |
431 # Instead of listing all outputs we list a single well-known one. | 449 # Instead of listing all outputs we list a single well-known one. |
432 "${patched_sdk_dir}/lib/core/core.dart", | 450 "${patched_sdk_dir}/lib/core/core.dart", |
433 ] | 451 ] |
434 | 452 |
435 args = [ "--quiet" ] | 453 args = [ "--quiet" ] |
436 if (!prebuilt_dart_exe_works) { | 454 if (!prebuilt_dart_exe_works) { |
437 dart_out_dir = get_label_info("../bin:dart_bootstrap($host_toolchain)", | 455 dart_out_dir = get_label_info("../bin:dart_bootstrap($host_toolchain)", |
438 "root_out_dir") | 456 "root_out_dir") |
439 dart_bootstrap = | 457 dart_bootstrap = |
440 rebase_path("$dart_out_dir/dart_bootstrap$executable_suffix") | 458 rebase_path("$dart_out_dir/dart_bootstrap$executable_suffix") |
441 args += [ | 459 args += [ |
442 "--dart-executable", | 460 "--dart-executable", |
443 dart_bootstrap, | 461 dart_bootstrap, |
444 ] | 462 ] |
445 } | 463 } |
446 args += [ | 464 args += [ |
447 "vm", | 465 "vm", |
448 rebase_path("../../sdk"), | 466 rebase_path("../../sdk"), |
449 rebase_path(patches_dir, root_build_dir), | 467 rebase_path(patches_dir, root_build_dir), |
450 rebase_path(patched_sdk_dir, root_build_dir), | 468 rebase_path(patched_sdk_dir, root_build_dir), |
469 rebase_path("../../.packages"), | |
451 ] | 470 ] |
452 } | 471 } |
453 } | 472 } |
454 | 473 |
455 generate_patched_sdk("patched_sdk") { | 474 generate_patched_sdk("patched_sdk") { |
456 libraries = [ | 475 libraries = [ |
457 [ | 476 [ |
458 "async", | 477 "async", |
459 processed_gypis.async_runtime_sources, | 478 processed_gypis.async_runtime_sources, |
460 "../lib", | 479 "../lib", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
514 processed_gypis.vmservice_runtime_sources, | 533 processed_gypis.vmservice_runtime_sources, |
515 "../lib", | 534 "../lib", |
516 ], | 535 ], |
517 [ | 536 [ |
518 "io", | 537 "io", |
519 processed_gypis.bin_io_sources, | 538 processed_gypis.bin_io_sources, |
520 "../bin", | 539 "../bin", |
521 ], | 540 ], |
522 ] | 541 ] |
523 } | 542 } |
OLD | NEW |