Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 observatory_sources_gypi = | |
| 6 exec_script("../../tools/gypi_to_gn.py", | |
| 7 [rebase_path("observatory_sources.gypi")], | |
| 8 "scope", | |
| 9 ["observatory_sources.gypi"]) | |
| 10 | |
| 11 copy("copy_observatory") { | |
| 12 sources = observatory_sources_gypi.sources | |
| 13 outputs = [ | |
| 14 "$root_gen_dir/observatory_copy/{{source_root_relative_dir}}/{{source_file_p art}}", | |
| 15 ] | |
| 16 } | |
| 17 | |
| 18 action("rewrite_observatory_pubspec_yaml") { | |
| 19 deps = [ | |
| 20 ":copy_observatory" | |
| 21 ] | |
| 22 | |
| 23 script = "../../tools/observatory_tool.py" | |
| 24 | |
| 25 inputs = [ | |
| 26 "pubspec.yaml" | |
| 27 ] | |
| 28 | |
| 29 args = [ | |
| 30 "--pub-executable", | |
| 31 rebase_path("../../../third_party/dart-sdk/dart-sdk/bin/pub"), | |
|
zra
2015/03/30 19:50:03
I think we generally don't want code in the dart t
Cutch
2015/03/30 20:16:38
Done.
| |
| 32 "--directory", | |
| 33 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), | |
| 34 "--command", | |
| 35 "rewrite", | |
| 36 rebase_path("pubspec.yaml"), | |
| 37 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec .yaml"), | |
| 38 "../../third_party/", | |
| 39 rebase_path("../../../dart/third_party/") | |
| 40 ] | |
| 41 | |
| 42 outputs = [ | |
| 43 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml" | |
| 44 ] | |
| 45 } | |
| 46 | |
| 47 action("fetch_observatory_deps") { | |
| 48 deps = [ | |
| 49 ":write_observatory_pubspec_yaml" | |
| 50 ] | |
| 51 | |
| 52 script = "../../tools/observatory_tool.py" | |
| 53 | |
| 54 inputs = [ | |
| 55 script, | |
| 56 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml" | |
| 57 ] | |
| 58 | |
| 59 args = [ | |
| 60 "--pub-executable", | |
| 61 rebase_path("../../../third_party/dart-sdk/dart-sdk/bin/pub"), | |
|
zra
2015/03/30 19:50:03
ditto
| |
| 62 "--directory", | |
| 63 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), | |
| 64 "--command", | |
| 65 "get", | |
| 66 ] | |
| 67 | |
| 68 outputs = [ | |
| 69 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.lock" | |
| 70 ] | |
| 71 } | |
| 72 | |
| 73 action("pub_build_observatory") { | |
| 74 sources = rebase_path(observatory_sources_gypi.sources) | |
| 75 deps = [ | |
| 76 ":fetch_observatory_deps" | |
| 77 ] | |
| 78 | |
| 79 script = "../../tools/observatory_tool.py" | |
| 80 | |
| 81 inputs = [ | |
| 82 script | |
| 83 ] | |
| 84 inputs += observatory_sources_gypi.sources | |
| 85 | |
| 86 args = [ | |
| 87 "--pub-executable", | |
| 88 rebase_path("../../../third_party/dart-sdk/dart-sdk/bin/pub"), | |
|
zra
2015/03/30 19:50:03
ditto
| |
| 89 "--directory", | |
| 90 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), | |
| 91 "--command", | |
| 92 "build", | |
| 93 rebase_path("$root_out_dir/observatory/build") | |
| 94 ] | |
| 95 | |
| 96 outputs = [ | |
| 97 "$root_out_dir/observatory/build/web/index.html", | |
| 98 "$root_out_dir/observatory/build/web/index.html_bootstrap.dart.js", | |
| 99 ] | |
| 100 } | |
| 101 | |
| 102 | |
| 103 action("deploy_observatory") { | |
| 104 deps = [ | |
| 105 ":pub_build_observatory" | |
| 106 ] | |
| 107 | |
| 108 script = "../../tools/observatory_tool.py" | |
| 109 | |
| 110 inputs = [ | |
| 111 script, | |
| 112 "$root_out_dir/observatory/build/web/index.html", | |
| 113 "$root_out_dir/observatory/build/web/index.html_bootstrap.dart.js", | |
| 114 ] | |
| 115 | |
| 116 args = [ | |
| 117 "--pub-executable", | |
| 118 rebase_path("../../../third_party/dart-sdk/dart-sdk/bin/pub"), | |
|
zra
2015/03/30 19:50:03
ditto
| |
| 119 "--directory", | |
| 120 rebase_path("$root_out_dir/observatory"), | |
| 121 "--command", | |
| 122 "deploy", | |
| 123 ] | |
| 124 | |
| 125 outputs = [ | |
| 126 "$root_out_dir/observatory/deployed/web/index.html", | |
| 127 "$root_out_dir/observatory/deployed/web/index.html_bootstrap.dart.js", | |
| 128 ] | |
| 129 } | |
| OLD | NEW |