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

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

Issue 1416293003: Some cleanups to observatory BUILD.gn (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « runtime/bin/main.cc ('k') | runtime/tools/create_archive.py » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 # Currently paths here are hard coded for convenience in building Mojo/Flutter. 5 # Currently paths here are hard coded for convenience in building Mojo/Flutter.
6 declare_args() { 6 declare_args() {
7 # Specify the path to a host compatible version of the Dart SDK. 7 # Specify the path to a host compatible version of the Dart SDK.
8 # This SDK is used to compile the Observatory frontend sources. 8 # This SDK is used to compile the Observatory frontend sources.
9 dart_host_sdk = rebase_path("//third_party/dart-sdk/dart-sdk") 9 dart_host_sdk = rebase_path("//third_party/dart-sdk/dart-sdk")
10 10
11 # Specify the path to a host compatible version of pub. 11 # Specify the path to a host compatible version of pub.
12 # This is used to compile the Observatory frontend sources. 12 # This is used to compile the Observatory frontend sources.
13 dart_host_pub_exe = rebase_path("$dart_host_sdk/pub") 13 dart_host_pub_exe = rebase_path("$dart_host_sdk/bin/pub")
14 } 14 }
15 15
16 # Helper build rules for packaging the Dart observatory resources. 16 # Helper build rules for packaging the Dart observatory resources.
17 observatory_sources_gypi = 17 observatory_sources_gypi =
18 exec_script("../../tools/gypi_to_gn.py", 18 exec_script("../../tools/gypi_to_gn.py",
19 [ rebase_path( 19 [ rebase_path(
20 "//dart/runtime/observatory/observatory_sources.gypi") ], 20 "//dart/runtime/observatory/observatory_sources.gypi") ],
21 "scope", 21 "scope",
22 [ "//dart/runtime/observatory/observatory_sources.gypi" ]) 22 [ "//dart/runtime/observatory/observatory_sources.gypi" ])
23 23
(...skipping 13 matching lines...) Expand all
37 37
38 script = "../../tools/observatory_tool.py" 38 script = "../../tools/observatory_tool.py"
39 39
40 inputs = [ 40 inputs = [
41 rebase_path("pubspec.yaml"), 41 rebase_path("pubspec.yaml"),
42 ] 42 ]
43 43
44 args = [ 44 args = [
45 "--silent=True", 45 "--silent=True",
46 "--pub-executable", 46 "--pub-executable",
47 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), 47 dart_host_pub_exe,
48 "--directory", 48 "--directory",
49 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), 49 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"),
50 "--command", 50 "--command",
51 "rewrite", 51 "rewrite",
52 rebase_path("//dart/runtime/observatory/pubspec.yaml"), 52 rebase_path("//dart/runtime/observatory/pubspec.yaml"),
53 rebase_path( 53 rebase_path(
54 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml"), 54 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml"),
55 "../../third_party/", 55 "../../third_party/",
56 rebase_path("../../../dart/third_party/"), 56 rebase_path("../../../dart/third_party/"),
57 ] 57 ]
(...skipping 11 matching lines...) Expand all
69 script = "//dart/tools/observatory_tool.py" 69 script = "//dart/tools/observatory_tool.py"
70 70
71 inputs = [ 71 inputs = [
72 script, 72 script,
73 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml", 73 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.yaml",
74 ] 74 ]
75 75
76 args = [ 76 args = [
77 "--silent=True", 77 "--silent=True",
78 "--pub-executable", 78 "--pub-executable",
79 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), 79 dart_host_pub_exe,
80 "--directory", 80 "--directory",
81 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), 81 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"),
82 "--command", 82 "--command",
83 "get", 83 "get",
84 ] 84 ]
85 85
86 outputs = [ 86 outputs = [
87 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.lock", 87 "$root_gen_dir/observatory_copy/dart/runtime/observatory/pubspec.lock",
88 ] 88 ]
89 } 89 }
(...skipping 12 matching lines...) Expand all
102 script = "//dart/tools/observatory_tool.py" 102 script = "//dart/tools/observatory_tool.py"
103 103
104 inputs = [ 104 inputs = [
105 script, 105 script,
106 ] 106 ]
107 inputs += sources 107 inputs += sources
108 108
109 args = [ 109 args = [
110 "--silent=True", 110 "--silent=True",
111 "--pub-executable", 111 "--pub-executable",
112 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), 112 dart_host_pub_exe,
113 "--directory", 113 "--directory",
114 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"), 114 rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"),
115 "--command", 115 "--command",
116 "build", 116 "build",
117 rebase_path("$root_out_dir/observatory/build"), 117 rebase_path("$root_out_dir/observatory/build"),
118 ] 118 ]
119 119
120 outputs = [ 120 outputs = [
121 "$root_out_dir/observatory/build/web/index.html", 121 "$root_out_dir/observatory/build/web/index.html",
122 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", 122 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js",
123 ] 123 ]
124 } 124 }
125 125
126 action("deploy_observatory") { 126 action("deploy_observatory") {
127 deps = [ 127 deps = [
128 ":pub_build_observatory", 128 ":pub_build_observatory",
129 ] 129 ]
130 130
131 script = "//dart/tools/observatory_tool.py" 131 script = "//dart/tools/observatory_tool.py"
132 132
133 inputs = [ 133 inputs = [
134 script, 134 script,
135 "$root_out_dir/observatory/build/web/index.html", 135 "$root_out_dir/observatory/build/web/index.html",
136 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js", 136 "$root_out_dir/observatory/build/web/index.html.polymer.bootstrap.dart.js",
137 ] 137 ]
138 138
139 args = [ 139 args = [
140 "--silent=True", 140 "--silent=True",
141 "--pub-executable", 141 "--pub-executable",
142 rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"), 142 dart_host_pub_exe,
143 "--directory", 143 "--directory",
144 rebase_path("$root_out_dir/observatory"), 144 rebase_path("$root_out_dir/observatory"),
145 "--command", 145 "--command",
146 "deploy", 146 "deploy",
147 ] 147 ]
148 148
149 outputs = [ 149 outputs = [
150 "$root_out_dir/observatory/deployed/web/index.html", 150 "$root_out_dir/observatory/deployed/web/index.html",
151 "$root_out_dir/observatory/deployed/web/index.html.polymer.bootstrap.dart.js ", 151 "$root_out_dir/observatory/deployed/web/index.html.polymer.bootstrap.dart.js ",
152 ] 152 ]
(...skipping 20 matching lines...) Expand all
173 "--outer_namespace", "dart", 173 "--outer_namespace", "dart",
174 "--inner_namespace", "observatory", 174 "--inner_namespace", "observatory",
175 "--name", "observatory_assets_archive", 175 "--name", "observatory_assets_archive",
176 "--client_root", rebase_path("$root_out_dir/observatory/deployed/web/"), 176 "--client_root", rebase_path("$root_out_dir/observatory/deployed/web/"),
177 ] 177 ]
178 178
179 outputs = [ 179 outputs = [
180 "$root_gen_dir/observatory/observatory_archive.cc", 180 "$root_gen_dir/observatory/observatory_archive.cc",
181 "$root_gen_dir/observatory/observatory_archive.tar", 181 "$root_gen_dir/observatory/observatory_archive.tar",
182 ] 182 ]
183 } 183 }
184
185 source_set("embedded_observatory_archive") {
186 deps = [
187 ":archive_observatory",
188 ]
189
190 sources = [
191 rebase_path("$root_gen_dir/observatory/observatory_archive.cc"),
192 ]
193 }
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/tools/create_archive.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698