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

Side by Side Diff: mojo/public/mojo_sdk.gni

Issue 1417523003: Move implementation of dart:mojo.internal to mojo/public/platform/dart (Closed) Base URL: git@github.com:domokit/mojo.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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # The absolute path to the directory containing the mojo public SDK (i.e., the 5 # The absolute path to the directory containing the mojo public SDK (i.e., the
6 # directory containing mojo/public). The build files within the Mojo public 6 # directory containing mojo/public). The build files within the Mojo public
7 # SDK use this variable to allow themselves to be parameterized by the location 7 # SDK use this variable to allow themselves to be parameterized by the location
8 # of the public SDK within a client repo. 8 # of the public SDK within a client repo.
9 mojo_root = get_path_info("../..", "abspath") 9 mojo_root = get_path_info("../..", "abspath")
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 117
118 deps = [] 118 deps = []
119 if (defined(invoker.deps)) { 119 if (defined(invoker.deps)) {
120 foreach(dep, invoker.deps) { 120 foreach(dep, invoker.deps) {
121 if (restrict_external_deps) { 121 if (restrict_external_deps) {
122 # The only deps that are not specified relative to the location of 122 # The only deps that are not specified relative to the location of
123 # the Mojo SDK should be on targets within the same file or on a 123 # the Mojo SDK should be on targets within the same file or on a
124 # whitelisted set of external dependencies. 124 # whitelisted set of external dependencies.
125 dep_dir = get_path_info(dep, "dir") 125 dep_dir = get_path_info(dep, "dir")
126 assert(dep_dir == "." || dep == "//testing/gtest") 126 assert(dep_dir == "." || dep == "//testing/gtest" ||
127 (dep == "//dart/runtime:libdart" &&
128 target_name == "mojo_internal_impl"))
127 } 129 }
128 deps += [ dep ] 130 deps += [ dep ]
129 } 131 }
130 } 132 }
131 if (defined(invoker.mojo_sdk_deps)) { 133 if (defined(invoker.mojo_sdk_deps)) {
132 foreach(sdk_dep, invoker.mojo_sdk_deps) { 134 foreach(sdk_dep, invoker.mojo_sdk_deps) {
133 # Check that the SDK dep was not mistakenly given as an absolute path. 135 # Check that the SDK dep was not mistakenly given as an absolute path.
134 assert(get_path_info(sdk_dep, "abspath") != sdk_dep) 136 assert(get_path_info(sdk_dep, "abspath") != sdk_dep)
135 deps += [ rebase_path(sdk_dep, ".", mojo_root) ] 137 deps += [ rebase_path(sdk_dep, ".", mojo_root) ]
136 } 138 }
137 } 139 }
138 } 140 }
139 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698