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

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

Issue 910763002: Expose ability to download network service impl in SDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixes Created 5 years, 10 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("mojo.gni") 6 import("mojo.gni")
6 import("mojo_sdk.gni") 7 import("mojo_sdk.gni")
7 8
8 # 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
9 # of a shared library. 10 # of a shared library.
10 template("mojo_native_application") { 11 template("mojo_native_application") {
11 if (defined(invoker.output_name)) { 12 if (defined(invoker.output_name)) {
12 output = invoker.output_name + ".mojo" 13 output = invoker.output_name + ".mojo"
13 library_target_name = invoker.output_name + "_library" 14 library_target_name = invoker.output_name + "_library"
14 } else { 15 } else {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 if (defined(invoker.data_deps)) { 78 if (defined(invoker.data_deps)) {
78 data_deps = invoker.data_deps 79 data_deps = invoker.data_deps
79 if (use_prebuilt_mojo_shell) { 80 if (use_prebuilt_mojo_shell) {
80 data_deps += [ copy_mojo_shell ] 81 data_deps += [ copy_mojo_shell ]
81 } 82 }
82 } else { 83 } else {
83 if (use_prebuilt_mojo_shell) { 84 if (use_prebuilt_mojo_shell) {
84 data_deps = [ copy_mojo_shell ] 85 data_deps = [ copy_mojo_shell ]
85 } 86 }
86 } 87 }
88
89 if (use_prebuilt_network_service) {
90 copy_network_service =
91 rebase_path("mojo/public/tools:copy_network_service", ".", mojo_root)
92 }
93
94 # Copy the prebuilt network service if using it.
ppi 2015/02/10 16:49:50 nit: tautology, maybe s/using it/needed/?
blundell 2015/02/11 21:06:17 Done.
95 if (use_prebuilt_network_service) {
96 if (defined(data_deps)) {
ppi 2015/02/10 16:49:50 nit: We already have a similar block above, maybe
blundell 2015/02/11 21:06:17 Done.
97 data_deps += [ copy_network_service ]
98 } else {
99 data_deps = [ copy_network_service ]
100 }
101 }
102
87 deps = rebase_path([ 103 deps = rebase_path([
88 "mojo/public/c/system", 104 "mojo/public/c/system",
89 "mojo/public/platform/native:system", 105 "mojo/public/platform/native:system",
90 ], 106 ],
91 ".", 107 ".",
92 mojo_root) 108 mojo_root)
93 if (defined(invoker.deps)) { 109 if (defined(invoker.deps)) {
94 deps += invoker.deps 110 deps += invoker.deps
95 } 111 }
96 if (defined(invoker.forward_dependent_configs_from)) { 112 if (defined(invoker.forward_dependent_configs_from)) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 rebase_input = rebase_path(input, root_build_dir) 223 rebase_input = rebase_path(input, root_build_dir)
208 rebase_output = rebase_path(output, root_build_dir) 224 rebase_output = rebase_path(output, root_build_dir)
209 args = [ 225 args = [
210 "--input=$rebase_input", 226 "--input=$rebase_input",
211 "--output=$rebase_output", 227 "--output=$rebase_output",
212 "--line=#!mojo mojo:android_handler", 228 "--line=#!mojo mojo:android_handler",
213 ] 229 ]
214 } 230 }
215 } 231 }
216 } 232 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698