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

Side by Side Diff: runtime/vm/BUILD.gn

Issue 2849183002: Revert "Add support for building patched_sdk and platform.dill for dart2js:" (Closed)
Patch Set: Created 3 years, 7 months 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 | « pkg/front_end/tool/fasta_perf.dart ('k') | tools/patch_sdk.dart » ('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 (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("../../utils/generate_patch_sdk.gni")
8 import("gypi_contents.gni") 7 import("gypi_contents.gni")
9 import("../runtime_args.gni") 8 import("../runtime_args.gni")
10 9
11 config("libdart_vm_config") { 10 config("libdart_vm_config") {
12 if (defined(is_fuchsia) && is_fuchsia) { 11 if (defined(is_fuchsia) && is_fuchsia) {
13 libs = [ "magenta" ] 12 libs = [ "magenta" ]
14 } else if (is_win) { 13 } else if (is_win) {
15 libs = [ 14 libs = [
16 "advapi32.lib", 15 "advapi32.lib",
17 "shell32.lib", 16 "shell32.lib",
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 inputs = [] 374 inputs = []
376 output = invoker.output 375 output = invoker.output
377 script = "../tools/concatenate_patches.py" 376 script = "../tools/concatenate_patches.py"
378 args = [ 377 args = [
379 "--output", 378 "--output",
380 rebase_path(output, root_build_dir), 379 rebase_path(output, root_build_dir),
381 ] 380 ]
382 } 381 }
383 } 382 }
384 383
385 template("generate_vm_patched_sdk") { 384 template("generate_patched_sdk") {
386 assert(defined(invoker.libraries), "Need libraries in $target_name") 385 assert(defined(invoker.libraries), "Need libraries in $target_name")
387 386
388 concatenation_target_names = [] 387 concatenation_target_names = []
389 388
390 # Concatenate vm library patches. 389 # Concatenate vm library patches.
391 foreach(library, invoker.libraries) { 390 foreach(library, invoker.libraries) {
392 name = library[0] 391 name = library[0]
393 392
394 target_output = "$target_gen_dir/patches/${name}_patch.dart" 393 target_output = "$target_gen_dir/patches/${name}_patch.dart"
395 concatenate_patch("concatenate_${name}_patch") { 394 concatenate_patch("concatenate_${name}_patch") {
396 libsources = rebase_path(library[1], ".", library[2]) 395 libsources = rebase_path(library[1], ".", library[2])
397 output = target_output 396 output = target_output
398 } 397 }
399 concatenation_target_names += [ ":concatenate_${name}_patch" ] 398 concatenation_target_names += [ ":concatenate_${name}_patch" ]
400 } 399 }
401 400
402 # Build the patched sdk out of the concatenated patches and the special 401 # Build the patched sdk out of the concatenated patches and the special
403 # libraries. 402 # libraries.
404 generate_patched_sdk(target_name) { 403 action(target_name) {
405 mode = "vm"
406 deps = concatenation_target_names 404 deps = concatenation_target_names
407 input_patches_dir = "$target_gen_dir/patches" 405 if (!prebuilt_dart_exe_works) {
408 patched_sdk_dir = "patched_sdk" 406 deps += [ "../bin:dart_bootstrap($host_toolchain)" ]
407 }
408
409 patches_dir = "$target_gen_dir/patches"
410 patched_sdk_dir = "$root_out_dir/patched_sdk"
411
412 script = "../../tools/patch_sdk.py"
413
414 # We list the `patch_sdk.dart` tool here because the [script] (which is
415 # implicitly an input) will call it.
416 inputs = [
417 "../../tools/patch_sdk.dart",
418 ]
419 depfile = "$root_out_dir/patched_sdk.d"
420
421 outputs = [
422 # Instead of listing all outputs we list a single well-known one.
423 "${patched_sdk_dir}/platform.dill",
424 ]
425
426 args = [ "--quiet" ]
427 if (!prebuilt_dart_exe_works) {
428 dart_out_dir = get_label_info("../bin:dart_bootstrap($host_toolchain)",
429 "root_out_dir")
430 dart_bootstrap =
431 rebase_path("$dart_out_dir/dart_bootstrap$executable_suffix")
432 args += [
433 "--dart-executable",
434 dart_bootstrap,
435 ]
436 }
437 args += [
438 "vm",
439 rebase_path("../../sdk"),
440 rebase_path(patches_dir, root_build_dir),
441 rebase_path(patched_sdk_dir, root_build_dir),
442 rebase_path("../../.packages"),
443 ]
409 } 444 }
410 } 445 }
411 446
412 generate_vm_patched_sdk("patched_sdk") { 447 generate_patched_sdk("patched_sdk") {
413 libraries = [ 448 libraries = [
414 [ 449 [
415 "async", 450 "async",
416 processed_gypis.async_runtime_sources, 451 processed_gypis.async_runtime_sources,
417 "../lib", 452 "../lib",
418 ], 453 ],
419 [ 454 [
420 "collection", 455 "collection",
421 processed_gypis.collection_runtime_sources, 456 processed_gypis.collection_runtime_sources,
422 "../lib", 457 "../lib",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 processed_gypis.vmservice_runtime_sources, 506 processed_gypis.vmservice_runtime_sources,
472 "../lib", 507 "../lib",
473 ], 508 ],
474 [ 509 [
475 "io", 510 "io",
476 processed_gypis.bin_io_sources, 511 processed_gypis.bin_io_sources,
477 "../bin", 512 "../bin",
478 ], 513 ],
479 ] 514 ]
480 } 515 }
OLDNEW
« no previous file with comments | « pkg/front_end/tool/fasta_perf.dart ('k') | tools/patch_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698