| OLD | NEW |
| 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 Loading... |
| 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 (use_prebuilt_mojo_shell) { | 80 if (mojo_use_prebuilt_mojo_shell) { |
| 81 data_deps += | 81 data_deps += |
| 82 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ] | 82 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ] |
| 83 } | 83 } |
| 84 if (use_prebuilt_network_service) { | 84 if (mojo_use_prebuilt_network_service) { |
| 85 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", | 85 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", |
| 86 ".", | 86 ".", |
| 87 mojo_root) ] | 87 mojo_root) ] |
| 88 } | 88 } |
| 89 | 89 |
| 90 deps = rebase_path([ | 90 deps = rebase_path([ |
| 91 "mojo/public/c/system", | 91 "mojo/public/c/system", |
| 92 "mojo/public/platform/native:system", | 92 "mojo/public/platform/native:system", |
| 93 ], | 93 ], |
| 94 ".", | 94 ".", |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 if (defined(invoker.libs)) { | 190 if (defined(invoker.libs)) { |
| 191 libs = invoker.libs | 191 libs = invoker.libs |
| 192 } | 192 } |
| 193 | 193 |
| 194 data_deps = [] | 194 data_deps = [] |
| 195 if (defined(invoker.data_deps)) { | 195 if (defined(invoker.data_deps)) { |
| 196 data_deps = invoker.data_deps | 196 data_deps = invoker.data_deps |
| 197 } | 197 } |
| 198 | 198 |
| 199 # Copy any necessary prebuilt artifacts. | 199 # Copy any necessary prebuilt artifacts. |
| 200 if (use_prebuilt_mojo_shell) { | 200 if (mojo_use_prebuilt_mojo_shell) { |
| 201 data_deps += | 201 data_deps += |
| 202 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ] | 202 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ] |
| 203 } | 203 } |
| 204 if (use_prebuilt_network_service) { | 204 if (mojo_use_prebuilt_network_service) { |
| 205 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", | 205 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", |
| 206 ".", | 206 ".", |
| 207 mojo_root) ] | 207 mojo_root) ] |
| 208 } | 208 } |
| 209 | 209 |
| 210 deps = rebase_path([ | 210 deps = rebase_path([ |
| 211 "mojo/public/c/system", | 211 "mojo/public/c/system", |
| 212 "mojo/public/platform/nacl:system", | 212 "mojo/public/platform/nacl:system", |
| 213 ], | 213 ], |
| 214 ".", | 214 ".", |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 rebase_input = rebase_path(input, root_build_dir) | 345 rebase_input = rebase_path(input, root_build_dir) |
| 346 rebase_output = rebase_path(output, root_build_dir) | 346 rebase_output = rebase_path(output, root_build_dir) |
| 347 args = [ | 347 args = [ |
| 348 "--input=$rebase_input", | 348 "--input=$rebase_input", |
| 349 "--output=$rebase_output", | 349 "--output=$rebase_output", |
| 350 "--line=#!mojo mojo:android_handler", | 350 "--line=#!mojo mojo:android_handler", |
| 351 ] | 351 ] |
| 352 } | 352 } |
| 353 } | 353 } |
| 354 } | 354 } |
| OLD | NEW |