| 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 # TODO(vardhan): Targets for each language bindings depend on a central | 5 # TODO(vardhan): Targets for each language bindings depend on a central |
| 6 # generator target which generates bindings for /every/ language. Create | 6 # generator target which generates bindings for /every/ language. Create |
| 7 # separate generator targets for each language. | 7 # separate generator targets for each language. |
| 8 | 8 |
| 9 import("../../mojo_sdk.gni") | 9 import("../../mojo_sdk.gni") |
| 10 | 10 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 if (defined(invoker.visibility)) { | 293 if (defined(invoker.visibility)) { |
| 294 visibility = invoker.visibility | 294 visibility = invoker.visibility |
| 295 } | 295 } |
| 296 if (defined(invoker.testonly)) { | 296 if (defined(invoker.testonly)) { |
| 297 testonly = invoker.testonly | 297 testonly = invoker.testonly |
| 298 } | 298 } |
| 299 | 299 |
| 300 public_configs = | 300 public_configs = |
| 301 rebase_path([ "mojo/public/build/config:mojo_sdk" ], ".", mojo_root) | 301 rebase_path([ "mojo/public/build/config:mojo_sdk" ], ".", mojo_root) |
| 302 | 302 |
| 303 public_deps = rebase_path([ | 303 public_deps = rebase_path([ "mojo/public/c:bindings" ], ".", mojo_root) |
| 304 "mojo/public/c", | |
| 305 "mojo/public/c/bindings", | |
| 306 ], | |
| 307 ".", | |
| 308 mojo_root) | |
| 309 foreach(d, rebased_mojo_sdk_public_deps) { | 304 foreach(d, rebased_mojo_sdk_public_deps) { |
| 310 full_name = get_label_info(d, "label_no_toolchain") | 305 full_name = get_label_info(d, "label_no_toolchain") |
| 311 public_deps += [ "${full_name}_c" ] | 306 public_deps += [ "${full_name}_c" ] |
| 312 } | 307 } |
| 313 | 308 |
| 314 deps = [] | 309 deps = [] |
| 315 foreach(d, rebased_mojo_sdk_deps) { | 310 foreach(d, rebased_mojo_sdk_deps) { |
| 316 # Resolve the name, so that a target //mojo/something becomes | 311 # Resolve the name, so that a target //mojo/something becomes |
| 317 # //mojo/something:something and we can append "_c" to get the C | 312 # //mojo/something:something and we can append "_c" to get the C |
| 318 # dependency name. | 313 # dependency name. |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 # //mojo/something:something and we can append "_java" to get the java | 563 # //mojo/something:something and we can append "_java" to get the java |
| 569 # dependency name. | 564 # dependency name. |
| 570 full_name = get_label_info(d, "label_no_toolchain") | 565 full_name = get_label_info(d, "label_no_toolchain") |
| 571 deps += [ "${full_name}_java" ] | 566 deps += [ "${full_name}_java" ] |
| 572 } | 567 } |
| 573 | 568 |
| 574 srcjar_deps = [ ":$java_srcjar_target_name" ] | 569 srcjar_deps = [ ":$java_srcjar_target_name" ] |
| 575 } | 570 } |
| 576 } | 571 } |
| 577 } | 572 } |
| OLD | NEW |