| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 if (mojo_use_prebuilt_mojo_shell) { | 62 if (mojo_use_prebuilt_mojo_shell) { |
| 63 data_deps += | 63 data_deps += |
| 64 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ] | 64 [ rebase_path("mojo/public/tools:copy_mojo_shell", ".", mojo_root) ] |
| 65 } | 65 } |
| 66 if (mojo_use_prebuilt_network_service) { | 66 if (mojo_use_prebuilt_network_service) { |
| 67 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", | 67 data_deps += [ rebase_path("mojo/public/tools:copy_network_service", |
| 68 ".", | 68 ".", |
| 69 mojo_root) ] | 69 mojo_root) ] |
| 70 } | 70 } |
| 71 | 71 |
| 72 deps = | 72 deps = rebase_path([ "mojo/public/platform/native:system_thunks" ], |
| 73 rebase_path([ "mojo/public/platform/native:system" ], ".", mojo_root) | 73 ".", |
| 74 mojo_root) |
| 74 if (defined(invoker.deps)) { | 75 if (defined(invoker.deps)) { |
| 75 deps += invoker.deps | 76 deps += invoker.deps |
| 76 } | 77 } |
| 77 if (defined(invoker.configs)) { | 78 if (defined(invoker.configs)) { |
| 78 configs += invoker.configs | 79 configs += invoker.configs |
| 79 } | 80 } |
| 80 forward_variables_from(invoker, | 81 forward_variables_from(invoker, |
| 81 [ | 82 [ |
| 82 "public_deps", | 83 "public_deps", |
| 83 "all_dependent_configs", | 84 "all_dependent_configs", |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 shared_library(shared_library_name) { | 304 shared_library(shared_library_name) { |
| 304 visibility = [ | 305 visibility = [ |
| 305 ":${copy_symbols_target}", | 306 ":${copy_symbols_target}", |
| 306 ":${zip_action_name}", | 307 ":${zip_action_name}", |
| 307 ] | 308 ] |
| 308 | 309 |
| 309 if (defined(invoker.sources)) { | 310 if (defined(invoker.sources)) { |
| 310 sources = invoker.sources | 311 sources = invoker.sources |
| 311 } | 312 } |
| 312 | 313 |
| 313 deps = | 314 deps = rebase_path([ "mojo/public/platform/native:system_thunks" ], |
| 314 rebase_path([ "mojo/public/platform/native:system" ], ".", mojo_root) | 315 ".", |
| 316 mojo_root) |
| 315 if (defined(invoker.jni_package)) { | 317 if (defined(invoker.jni_package)) { |
| 316 deps += [ ":${generate_jni_name}" ] | 318 deps += [ ":${generate_jni_name}" ] |
| 317 } | 319 } |
| 318 if (defined(invoker.deps)) { | 320 if (defined(invoker.deps)) { |
| 319 deps += invoker.deps | 321 deps += invoker.deps |
| 320 } | 322 } |
| 321 } | 323 } |
| 322 | 324 |
| 323 copy(copy_symbols_target) { | 325 copy(copy_symbols_target) { |
| 324 visibility = [ ":${final_target_name}" ] | 326 visibility = [ ":${final_target_name}" ] |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 deps = [ | 429 deps = [ |
| 428 ":${copy_symbols_target}", | 430 ":${copy_symbols_target}", |
| 429 ] | 431 ] |
| 430 | 432 |
| 431 public_deps = [ | 433 public_deps = [ |
| 432 ":${zip_action_name}", | 434 ":${zip_action_name}", |
| 433 ] | 435 ] |
| 434 } | 436 } |
| 435 } | 437 } |
| 436 } | 438 } |
| OLD | NEW |