| 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/toolchain/toolchain.gni") | 5 import("//build/toolchain/toolchain.gni") |
| 6 | 6 |
| 7 # Generate a binary Mojo application in a self-named directory. | 7 # Generate a binary Mojo application in a self-named directory. |
| 8 # Application resources are copied to a "resources" directory alongside the app. | 8 # Application resources are copied to a "resources" directory alongside the app. |
| 9 # The parameters of this template are those of a shared library. | 9 # The parameters of this template are those of a shared library. |
| 10 template("mojo_native_application") { | 10 template("mojo_native_application") { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 # Give the user an out; as some mojo services are depended on by the | 77 # Give the user an out; as some mojo services are depended on by the |
| 78 # runner. | 78 # runner. |
| 79 data_deps += [ "//mojo/runner:mojo_runner" ] | 79 data_deps += [ "//mojo/runner:mojo_runner" ] |
| 80 } | 80 } |
| 81 if (defined(invoker.data_deps)) { | 81 if (defined(invoker.data_deps)) { |
| 82 data_deps += invoker.data_deps | 82 data_deps += invoker.data_deps |
| 83 } | 83 } |
| 84 | 84 |
| 85 deps = [ | 85 deps = [ |
| 86 "//mojo/platform_handle:for_shared_library", | 86 "//mojo/platform_handle:for_shared_library", |
| 87 "//mojo/public/c/system:for_shared_library", |
| 87 "//mojo/public/gles2:for_shared_library", | 88 "//mojo/public/gles2:for_shared_library", |
| 88 "//mojo/public/c/system:for_shared_library", | |
| 89 ] | 89 ] |
| 90 | 90 |
| 91 deps += mojo_deps | 91 deps += mojo_deps |
| 92 if (defined(invoker.public_deps)) { | 92 if (defined(invoker.public_deps)) { |
| 93 public_deps = invoker.public_deps | 93 public_deps = invoker.public_deps |
| 94 } | 94 } |
| 95 if (defined(invoker.all_dependent_configs)) { | 95 if (defined(invoker.all_dependent_configs)) { |
| 96 all_dependent_configs = invoker.all_dependent_configs | 96 all_dependent_configs = invoker.all_dependent_configs |
| 97 } | 97 } |
| 98 if (defined(invoker.public_configs)) { | 98 if (defined(invoker.public_configs)) { |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 ] | 361 ] |
| 362 | 362 |
| 363 deps = mojo_deps | 363 deps = mojo_deps |
| 364 | 364 |
| 365 public_deps = [ | 365 public_deps = [ |
| 366 ":$zip_action_name", | 366 ":$zip_action_name", |
| 367 ] | 367 ] |
| 368 } | 368 } |
| 369 } | 369 } |
| 370 } | 370 } |
| OLD | NEW |