| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 { | 5 { |
| 6 'includes': [ | 6 'includes': [ |
| 7 'mojom_bindings_generator_variables.gypi', | 7 'mojom_bindings_generator_variables.gypi', |
| 8 ], | 8 ], |
| 9 'actions': [ | 9 'actions': [ |
| 10 { | 10 { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 'rules': [ | 27 'rules': [ |
| 28 { | 28 { |
| 29 'rule_name': '<(_target_name)_mojom_bindings_generator', | 29 'rule_name': '<(_target_name)_mojom_bindings_generator', |
| 30 'extension': 'mojom', | 30 'extension': 'mojom', |
| 31 'variables': { | 31 'variables': { |
| 32 'mojom_base_output_dir': | 32 'mojom_base_output_dir': |
| 33 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', | 33 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', |
| 34 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 34 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
| 35 'mojom_import_args%': [ | 35 'mojom_import_args%': [ |
| 36 '-I<(DEPTH)', | 36 '-I<(DEPTH)', |
| 37 '-I<(DEPTH)/third_party/mojo/src' | |
| 38 ], | 37 ], |
| 39 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', | 38 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', |
| 40 }, | 39 }, |
| 41 'inputs': [ | 40 'inputs': [ |
| 42 '<@(mojom_bindings_generator_sources)', | 41 '<@(mojom_bindings_generator_sources)', |
| 43 '<(stamp_filename)', | 42 '<(stamp_filename)', |
| 44 ], | 43 ], |
| 45 'outputs': [ | 44 'outputs': [ |
| 46 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.cc', | 45 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.cc', |
| 47 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.h', | 46 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.h', |
| 48 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.js', | 47 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.js', |
| 49 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom-internal.h', | 48 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom-internal.h', |
| 50 ], | 49 ], |
| 51 'action': [ | 50 'action': [ |
| 52 'python', '<@(mojom_bindings_generator)', | 51 'python', '<@(mojom_bindings_generator)', |
| 53 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', | 52 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', |
| 54 '--use_bundled_pylibs', | 53 '--use_bundled_pylibs', |
| 55 '-d', '<(DEPTH)', | 54 '-d', '<(DEPTH)', |
| 56 '<@(mojom_import_args)', | 55 '<@(mojom_import_args)', |
| 57 '-o', '<(SHARED_INTERMEDIATE_DIR)', | 56 '-o', '<(SHARED_INTERMEDIATE_DIR)', |
| 58 '--java_output_directory=<(java_out_dir)', | 57 '--java_output_directory=<(java_out_dir)', |
| 59 ], | 58 ], |
| 60 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP
UT_ROOT).mojom', | 59 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP
UT_ROOT).mojom', |
| 61 'process_outputs_as_sources': 1, | 60 'process_outputs_as_sources': 1, |
| 62 } | 61 } |
| 63 ], | 62 ], |
| 64 'dependencies': [ | 63 'dependencies': [ |
| 65 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_generatio
n', | 64 '<(DEPTH)/mojo/mojo_public.gyp:mojo_interface_bindings_generation', |
| 66 ], | 65 ], |
| 67 'include_dirs': [ | 66 'include_dirs': [ |
| 68 '<(DEPTH)', | 67 '<(DEPTH)', |
| 69 '<(DEPTH)/third_party/mojo/src', | |
| 70 '<(SHARED_INTERMEDIATE_DIR)', | 68 '<(SHARED_INTERMEDIATE_DIR)', |
| 71 '<(SHARED_INTERMEDIATE_DIR)/third_party/mojo/src', | |
| 72 ], | 69 ], |
| 73 'direct_dependent_settings': { | 70 'direct_dependent_settings': { |
| 74 'include_dirs': [ | 71 'include_dirs': [ |
| 75 '<(DEPTH)', | 72 '<(DEPTH)', |
| 76 '<(DEPTH)/third_party/mojo/src', | |
| 77 '<(SHARED_INTERMEDIATE_DIR)', | 73 '<(SHARED_INTERMEDIATE_DIR)', |
| 78 '<(SHARED_INTERMEDIATE_DIR)/third_party/mojo/src', | |
| 79 ], | 74 ], |
| 80 'variables': { | 75 'variables': { |
| 81 'generated_src_dirs': [ | 76 'generated_src_dirs': [ |
| 82 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | 77 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', |
| 83 ], | 78 ], |
| 84 'additional_input_paths': [ | 79 'additional_input_paths': [ |
| 85 '<@(mojom_bindings_generator_sources)', | 80 '<@(mojom_bindings_generator_sources)', |
| 86 '<@(_sources)', | 81 '<@(_sources)', |
| 87 ], | 82 ], |
| 88 }, | 83 }, |
| 89 }, | 84 }, |
| 90 'hard_dependency': 1, | 85 'hard_dependency': 1, |
| 91 } | 86 } |
| OLD | NEW |