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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/tools/create_archive.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/BUILD.gn
diff --git a/runtime/observatory/BUILD.gn b/runtime/observatory/BUILD.gn
index faa5e001706bfc136f7611773c46489431a93d7e..a4a76ee5a630a0dc8598025a242135193625ff98 100644
--- a/runtime/observatory/BUILD.gn
+++ b/runtime/observatory/BUILD.gn
@@ -10,7 +10,7 @@ declare_args() {
# Specify the path to a host compatible version of pub.
# This is used to compile the Observatory frontend sources.
- dart_host_pub_exe = rebase_path("$dart_host_sdk/pub")
+ dart_host_pub_exe = rebase_path("$dart_host_sdk/bin/pub")
}
# Helper build rules for packaging the Dart observatory resources.
@@ -44,7 +44,7 @@ action("write_observatory_pubspec_yaml") {
args = [
"--silent=True",
"--pub-executable",
- rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"),
+ dart_host_pub_exe,
"--directory",
rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"),
"--command",
@@ -76,7 +76,7 @@ action("copy_observatory_deps") {
args = [
"--silent=True",
"--pub-executable",
- rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"),
+ dart_host_pub_exe,
"--directory",
rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"),
"--command",
@@ -109,7 +109,7 @@ action("pub_build_observatory") {
args = [
"--silent=True",
"--pub-executable",
- rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"),
+ dart_host_pub_exe,
"--directory",
rebase_path("$root_gen_dir/observatory_copy/dart/runtime/observatory/"),
"--command",
@@ -139,7 +139,7 @@ action("deploy_observatory") {
args = [
"--silent=True",
"--pub-executable",
- rebase_path("//third_party/dart-sdk/dart-sdk/bin/pub"),
+ dart_host_pub_exe,
"--directory",
rebase_path("$root_out_dir/observatory"),
"--command",
@@ -180,4 +180,14 @@ action("archive_observatory") {
"$root_gen_dir/observatory/observatory_archive.cc",
"$root_gen_dir/observatory/observatory_archive.tar",
]
-}
+}
+
+source_set("embedded_observatory_archive") {
+ deps = [
+ ":archive_observatory",
+ ]
+
+ sources = [
+ rebase_path("$root_gen_dir/observatory/observatory_archive.cc"),
+ ]
+}
« 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