Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: mojo/public/tools/bindings/mojom.gni

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/cpp/utility/lib/run_loop.cc ('k') | mojo/services/files/c/lib/directory_wrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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([ "mojo/public/c/bindings" ], ".", mojo_root) 303 public_deps = rebase_path([
304 "mojo/public/c",
305 "mojo/public/c/bindings",
306 ],
307 ".",
308 mojo_root)
304 foreach(d, rebased_mojo_sdk_public_deps) { 309 foreach(d, rebased_mojo_sdk_public_deps) {
305 full_name = get_label_info(d, "label_no_toolchain") 310 full_name = get_label_info(d, "label_no_toolchain")
306 public_deps += [ "${full_name}_c" ] 311 public_deps += [ "${full_name}_c" ]
307 } 312 }
308 313
309 deps = [] 314 deps = []
310 foreach(d, rebased_mojo_sdk_deps) { 315 foreach(d, rebased_mojo_sdk_deps) {
311 # Resolve the name, so that a target //mojo/something becomes 316 # Resolve the name, so that a target //mojo/something becomes
312 # //mojo/something:something and we can append "_c" to get the C 317 # //mojo/something:something and we can append "_c" to get the C
313 # dependency name. 318 # dependency name.
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 # //mojo/something:something and we can append "_java" to get the java 568 # //mojo/something:something and we can append "_java" to get the java
564 # dependency name. 569 # dependency name.
565 full_name = get_label_info(d, "label_no_toolchain") 570 full_name = get_label_info(d, "label_no_toolchain")
566 deps += [ "${full_name}_java" ] 571 deps += [ "${full_name}_java" ]
567 } 572 }
568 573
569 srcjar_deps = [ ":$java_srcjar_target_name" ] 574 srcjar_deps = [ ":$java_srcjar_target_name" ]
570 } 575 }
571 } 576 }
572 } 577 }
OLDNEW
« no previous file with comments | « mojo/public/cpp/utility/lib/run_loop.cc ('k') | mojo/services/files/c/lib/directory_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698