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

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

Issue 2552203006: Fuchsia: Reland enable observatory. Pass rpath for host builds. (Closed)
Patch Set: Add configs instead of copying flags Created 4 years 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/BUILD.gn ('k') | no next file » | 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 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 7
8 # Currently paths here are hard coded for convenience in building Mojo/Flutter. 8 # Currently paths here are hard coded for convenience in building Mojo/Flutter.
9 declare_args() { 9 declare_args() {
10 # Specify the path to a host compatible version of the Dart SDK. 10 # Specify the path to a host compatible version of the Dart SDK.
11 # This SDK is used to compile the Observatory frontend sources. 11 # This SDK is used to compile the Observatory frontend sources.
12 dart_host_sdk = rebase_path("//third_party/dart-sdk/dart-sdk") 12 dart_host_sdk = rebase_path("//third_party/dart-sdk/dart-sdk")
13 13
14 # Specify the path to a host compatible version of pub. 14 # Specify the path to a host compatible version of pub.
15 # This is used to compile the Observatory frontend sources. 15 # This is used to compile the Observatory frontend sources.
16 # 16 #
17 # The observatory build tool searches for pub first using this GN arg, then 17 # The observatory build tool searches for pub first using this GN arg, then
18 # for the checked-in SDK, and if that doesn't work, it uses the dart_bootstrap 18 # for the checked-in SDK, and if that doesn't work, it uses the dart_bootstrap
19 # built as part of the build to invoke pub. If this arg is set to a non-empty 19 # built as part of the build to invoke pub. If this arg is set to a non-empty
20 # string, we assume that there is no need for dart_bootstrap. If it is set to 20 # string, we assume that there is no need for dart_bootstrap. If it is set to
21 # "", then we assume that there may be a need for dart_bootstrap. 21 # "", then we assume that there may be a need for dart_bootstrap.
22 dart_host_pub_exe = rebase_path("$dart_host_sdk/bin/pub") 22 dart_host_pub_exe = rebase_path("$dart_host_sdk/bin/pub")
23 } 23 }
24 24
25 # We set this to "" in the Fuchsia build to force building with dart_bootstrap. 25 # We set this to "" in the Fuchsia build to force building with dart_bootstrap.
26 if (defined(is_fuchsia) && is_fuchsia) { 26 if (defined(is_fuchsia) && defined(is_fuchsia_host) &&
27 (is_fuchsia || is_fuchsia_host)) {
27 dart_host_pub_exe = "" 28 dart_host_pub_exe = ""
28 } 29 }
29 30
30 # Construct arguments to the observatory tool for finding pub. 31 # Construct arguments to the observatory tool for finding pub.
31 pub_build_deps = [] 32 pub_build_deps = []
32 pub_build_args = [] 33 pub_build_args = []
33 if (dart_host_pub_exe != "") { 34 if (dart_host_pub_exe != "") {
34 pub_build_args = [ 35 pub_build_args = [
35 "--pub-executable", 36 "--pub-executable",
36 dart_host_pub_exe, 37 dart_host_pub_exe,
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 240
240 source_set("standalone_observatory_archive") { 241 source_set("standalone_observatory_archive") {
241 deps = [ 242 deps = [
242 ":standalone_archive_observatory", 243 ":standalone_archive_observatory",
243 ] 244 ]
244 245
245 sources = [ 246 sources = [
246 rebase_path("$root_gen_dir/observatory/standalone_archive_observatory.cc"), 247 rebase_path("$root_gen_dir/observatory/standalone_archive_observatory.cc"),
247 ] 248 ]
248 } 249 }
OLDNEW
« no previous file with comments | « runtime/bin/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698