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 mojom_generator_root = "//mojo/public/tools/bindings" | 5 mojom_generator_root = "//mojo/public/tools/bindings" |
6 mojom_generator_script = "$mojom_generator_root/mojom_bindings_generator.py" | 6 mojom_generator_script = "$mojom_generator_root/mojom_bindings_generator.py" |
7 mojom_generator_sources = [ | 7 mojom_generator_sources = [ |
8 "$mojom_generator_root/generators/mojom_cpp_generator.py", | 8 "$mojom_generator_root/generators/mojom_cpp_generator.py", |
9 "$mojom_generator_root/generators/mojom_js_generator.py", | 9 "$mojom_generator_root/generators/mojom_js_generator.py", |
10 "$mojom_generator_root/generators/mojom_java_generator.py", | 10 "$mojom_generator_root/generators/mojom_java_generator.py", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 foreach(typemap, configuration.typemaps) { | 42 foreach(typemap, configuration.typemaps) { |
43 read_file(typemap.mojom, "") | 43 read_file(typemap.mojom, "") |
44 } | 44 } |
45 if (is_mac && defined(configuration.typemaps_mac)) { | 45 if (is_mac && defined(configuration.typemaps_mac)) { |
46 foreach(typemap, configuration.typemaps_mac) { | 46 foreach(typemap, configuration.typemaps_mac) { |
47 read_file(typemap.mojom, "") | 47 read_file(typemap.mojom, "") |
48 } | 48 } |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 # Generate C++/JavaScript/Java source files from mojom files. The output files | 52 # Generates targets for building C++, JavaScript and Java bindings from mojom |
53 # will go under the generated file directory tree with the same path as each | 53 # files. The output files will go under the generated file directory tree with |
54 # input file. | 54 # the same path as each input file. |
| 55 # |
| 56 # Other targets should depend on one of these generated targets (where "foo" |
| 57 # is the target name): |
| 58 # |
| 59 # foo |
| 60 # C++ and Javascript bindings. Other mojom targets should also depend on |
| 61 # this target. |
| 62 # |
| 63 # foo_blink |
| 64 # C++ bindings using Blink standard types. |
| 65 # |
| 66 # foo_java |
| 67 # Java bindings. |
55 # | 68 # |
56 # Parameters: | 69 # Parameters: |
57 # | 70 # |
58 # sources (optional if one of the deps sets listed below is present) | 71 # sources (optional if one of the deps sets listed below is present) |
59 # List of source .mojom files to compile. | 72 # List of source .mojom files to compile. |
60 # | 73 # |
61 # deps (optional) | 74 # deps (optional) |
62 # Note: this can contain only other mojom targets. | 75 # Note: this can contain only other mojom targets. |
63 # | 76 # |
64 # DEPRECATED: This is synonymous with public_deps because all mojom | 77 # DEPRECATED: This is synonymous with public_deps because all mojom |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 full_name = get_label_info(d, "label_no_toolchain") | 568 full_name = get_label_info(d, "label_no_toolchain") |
556 deps += [ "${full_name}_java" ] | 569 deps += [ "${full_name}_java" ] |
557 } | 570 } |
558 | 571 |
559 srcjar_deps = [ ":$java_srcjar_target_name" ] | 572 srcjar_deps = [ ":$java_srcjar_target_name" ] |
560 run_findbugs_override = false | 573 run_findbugs_override = false |
561 } | 574 } |
562 } | 575 } |
563 } | 576 } |
564 } | 577 } |
OLD | NEW |