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

Side by Side Diff: third_party/mojo/src/mojo/public/mojo_application.gni

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 8 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 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 import("//build/module_args/mojo.gni") 5 import("//build/module_args/mojo.gni")
6 import("mojo.gni") 6 import("mojo.gni")
7 import("mojo_sdk.gni") 7 import("mojo_sdk.gni")
8 8
9 # Generate a binary mojo application.The parameters of this template are those 9 # Generate a binary mojo application.The parameters of this template are those
10 # of a shared library. 10 # of a shared library.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (defined(invoker.libs)) { 70 if (defined(invoker.libs)) {
71 libs = invoker.libs 71 libs = invoker.libs
72 } 72 }
73 73
74 data_deps = [] 74 data_deps = []
75 if (defined(invoker.data_deps)) { 75 if (defined(invoker.data_deps)) {
76 data_deps = invoker.data_deps 76 data_deps = invoker.data_deps
77 } 77 }
78 78
79 # Copy any necessary prebuilt artifacts. 79 # Copy any necessary prebuilt artifacts.
80 if (mojo_use_prebuilt_mojo_shell) {
81 data_deps +=
82 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ]
83 }
84 if (mojo_use_prebuilt_network_service) { 80 if (mojo_use_prebuilt_network_service) {
85 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", 81 data_deps += [ rebase_path("mojo/public/tools:copy_network_service",
86 ".", 82 ".",
87 mojo_root) ] 83 mojo_root) ]
88 } 84 }
89 85
90 deps = rebase_path([ 86 deps = rebase_path([
91 "mojo/public/c/system", 87 "mojo/public/c/system",
92 "mojo/public/platform/native:system", 88 "mojo/public/platform/native:system",
93 ], 89 ],
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 if (defined(invoker.libs)) { 186 if (defined(invoker.libs)) {
191 libs = invoker.libs 187 libs = invoker.libs
192 } 188 }
193 189
194 data_deps = [] 190 data_deps = []
195 if (defined(invoker.data_deps)) { 191 if (defined(invoker.data_deps)) {
196 data_deps = invoker.data_deps 192 data_deps = invoker.data_deps
197 } 193 }
198 194
199 # Copy any necessary prebuilt artifacts. 195 # Copy any necessary prebuilt artifacts.
200 if (mojo_use_prebuilt_mojo_shell) {
201 data_deps +=
202 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ]
203 }
204 if (mojo_use_prebuilt_network_service) { 196 if (mojo_use_prebuilt_network_service) {
205 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", 197 data_deps += [ rebase_path("mojo/public/tools:copy_network_service",
206 ".", 198 ".",
207 mojo_root) ] 199 mojo_root) ]
208 } 200 }
209 201
210 deps = rebase_path([ 202 deps = rebase_path([
211 "mojo/public/c/system", 203 "mojo/public/c/system",
212 "mojo/public/platform/nacl:system", 204 "mojo/public/platform/nacl:system",
213 ], 205 ],
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 rebase_input = rebase_path(input, root_build_dir) 337 rebase_input = rebase_path(input, root_build_dir)
346 rebase_output = rebase_path(output, root_build_dir) 338 rebase_output = rebase_path(output, root_build_dir)
347 args = [ 339 args = [
348 "--input=$rebase_input", 340 "--input=$rebase_input",
349 "--output=$rebase_output", 341 "--output=$rebase_output",
350 "--line=#!mojo mojo:android_handler", 342 "--line=#!mojo mojo:android_handler",
351 ] 343 ]
352 } 344 }
353 } 345 }
354 } 346 }
OLDNEW
« no previous file with comments | « third_party/mojo/src/mojo/public/mojo.gni ('k') | third_party/mojo/src/mojo/public/tools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698