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

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

Issue 2477283002: Convert printing IPCs to Mojo
Patch Set: Fix more Windows compile errors Created 3 years, 11 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
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 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 29 matching lines...) Expand all
40 foreach(configuration, _bindings_configurations) { 40 foreach(configuration, _bindings_configurations) {
41 # Check that the mojom field of each typemap refers to a mojom that exists. 41 # Check that the mojom field of each typemap refers to a mojom that exists.
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 if (is_win && defined(configuration.typemaps_win)) {
51 foreach(typemap, configuration.typemaps_win) {
52 read_file(typemap.mojom, "")
53 }
54 }
50 } 55 }
51 56
52 # Generates targets for building C++, JavaScript and Java bindings from mojom 57 # Generates targets for building C++, JavaScript and Java bindings from mojom
53 # files. The output files will go under the generated file directory tree with 58 # files. The output files will go under the generated file directory tree with
54 # the same path as each input file. 59 # the same path as each input file.
55 # 60 #
56 # Other targets should depend on one of these generated targets (where "foo" 61 # Other targets should depend on one of these generated targets (where "foo"
57 # is the target name): 62 # is the target name):
58 # 63 #
59 # foo 64 # foo
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 active_typemaps += [ typemap ] 285 active_typemaps += [ typemap ]
281 } 286 }
282 } 287 }
283 if (is_mac && defined(bindings_configuration.typemaps_mac)) { 288 if (is_mac && defined(bindings_configuration.typemaps_mac)) {
284 foreach(typemap, bindings_configuration.typemaps_mac) { 289 foreach(typemap, bindings_configuration.typemaps_mac) {
285 if (get_path_info(source, "abspath") == typemap.mojom) { 290 if (get_path_info(source, "abspath") == typemap.mojom) {
286 active_typemaps += [ typemap ] 291 active_typemaps += [ typemap ]
287 } 292 }
288 } 293 }
289 } 294 }
295 if (is_win && defined(bindings_configuration.typemaps_win)) {
296 foreach(typemap, bindings_configuration.typemaps_win) {
297 if (get_path_info(source, "abspath") == typemap.mojom) {
298 active_typemaps += [ typemap ]
299 }
300 }
301 }
290 } 302 }
291 303
292 if (!cpp_only) { 304 if (!cpp_only) {
293 generator_js_outputs = 305 generator_js_outputs =
294 [ "{{source_gen_dir}}/{{source_name_part}}.mojom.js" ] 306 [ "{{source_gen_dir}}/{{source_name_part}}.mojom.js" ]
295 generator_java_outputs = 307 generator_java_outputs =
296 [ "{{source_gen_dir}}/{{source_name_part}}.mojom.srcjar" ] 308 [ "{{source_gen_dir}}/{{source_name_part}}.mojom.srcjar" ]
297 } 309 }
298 generator_target_name = "${target_name}${variant_suffix}__generator" 310 generator_target_name = "${target_name}${variant_suffix}__generator"
299 action_foreach(generator_target_name) { 311 action_foreach(generator_target_name) {
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 full_name = get_label_info(d, "label_no_toolchain") 566 full_name = get_label_info(d, "label_no_toolchain")
555 deps += [ "${full_name}_java" ] 567 deps += [ "${full_name}_java" ]
556 } 568 }
557 569
558 srcjar_deps = [ ":$java_srcjar_target_name" ] 570 srcjar_deps = [ ":$java_srcjar_target_name" ]
559 run_findbugs_override = false 571 run_findbugs_override = false
560 } 572 }
561 } 573 }
562 } 574 }
563 } 575 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698