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("//mojo/public/mojo.gni") | 5 import("//mojo/public/mojo.gni") |
6 | 6 |
7 # Generate a binary mojo application.The parameters of this template are those | 7 # Generate a binary mojo application.The parameters of this template are those |
8 # of a shared library. | 8 # of a shared library. |
9 template("mojo_native_application") { | 9 template("mojo_native_application") { |
10 if (defined(invoker.output_name)) { | 10 if (defined(invoker.output_name)) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 if (defined(invoker.datadeps)) { | 62 if (defined(invoker.datadeps)) { |
63 datadeps = invoker.datadeps | 63 datadeps = invoker.datadeps |
64 if (use_prebuilt_mojo_shell) { | 64 if (use_prebuilt_mojo_shell) { |
65 datadeps += [ "//mojo/public/tools:copy_mojo_shell" ] | 65 datadeps += [ "//mojo/public/tools:copy_mojo_shell" ] |
66 } | 66 } |
67 } else { | 67 } else { |
68 if (use_prebuilt_mojo_shell) { | 68 if (use_prebuilt_mojo_shell) { |
69 datadeps = [ "//mojo/public/tools:copy_mojo_shell" ] | 69 datadeps = [ "//mojo/public/tools:copy_mojo_shell" ] |
70 } | 70 } |
71 } | 71 } |
| 72 deps = [ "//mojo/public/c/system:for_shared_library" ] |
72 if (defined(invoker.deps)) { | 73 if (defined(invoker.deps)) { |
73 deps = invoker.deps | 74 deps += invoker.deps |
74 } | 75 } |
75 if (defined(invoker.forward_dependent_configs_from)) { | 76 if (defined(invoker.forward_dependent_configs_from)) { |
76 forward_dependent_configs_from = invoker.forward_dependent_configs_from | 77 forward_dependent_configs_from = invoker.forward_dependent_configs_from |
77 } | 78 } |
78 if (defined(invoker.public_deps)) { | 79 if (defined(invoker.public_deps)) { |
79 public_deps = invoker.public_deps | 80 public_deps = invoker.public_deps |
80 } | 81 } |
81 if (defined(invoker.all_dependent_configs)) { | 82 if (defined(invoker.all_dependent_configs)) { |
82 all_dependent_configs = invoker.all_dependent_configs | 83 all_dependent_configs = invoker.all_dependent_configs |
83 } | 84 } |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 rebase_input = rebase_path(input, root_build_dir) | 178 rebase_input = rebase_path(input, root_build_dir) |
178 rebase_output = rebase_path(output, root_build_dir) | 179 rebase_output = rebase_path(output, root_build_dir) |
179 args = [ | 180 args = [ |
180 "--input=$rebase_input", | 181 "--input=$rebase_input", |
181 "--output=$rebase_output", | 182 "--output=$rebase_output", |
182 "--line=#!mojo:android_handler", | 183 "--line=#!mojo:android_handler", |
183 ] | 184 ] |
184 } | 185 } |
185 } | 186 } |
186 } | 187 } |
OLD | NEW |