| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'includes': [ | |
| 7 'mojom_bindings_generator_variables.gypi', | |
| 8 ], | |
| 9 'actions': [ | |
| 10 { | |
| 11 'variables': { | |
| 12 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | |
| 13 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', | |
| 14 }, | |
| 15 'action_name': '<(_target_name)_mojom_bindings_stamp', | |
| 16 # The java output directory is deleted to ensure that the java library | |
| 17 # doesn't try to compile stale files. | |
| 18 'action': [ | |
| 19 'python', '<(DEPTH)/build/rmdir_and_stamp.py', | |
| 20 '<(java_out_dir)', | |
| 21 '<(stamp_filename)', | |
| 22 ], | |
| 23 'inputs': [ '<@(_sources)' ], | |
| 24 'outputs': [ '<(stamp_filename)' ], | |
| 25 } | |
| 26 ], | |
| 27 'rules': [ | |
| 28 { | |
| 29 'rule_name': '<(_target_name)_mojom_bindings_generator', | |
| 30 'extension': 'mojom', | |
| 31 'variables': { | |
| 32 'mojom_base_output_dir': | |
| 33 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', | |
| 34 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | |
| 35 'mojom_import_args%': [ | |
| 36 '-I<(DEPTH)', | |
| 37 '-I<(DEPTH)/third_party/mojo/src' | |
| 38 ], | |
| 39 'stamp_filename': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/<(_target_na
me).stamp', | |
| 40 }, | |
| 41 'inputs': [ | |
| 42 '<@(mojom_bindings_generator_sources)', | |
| 43 '<(stamp_filename)', | |
| 44 ], | |
| 45 'outputs': [ | |
| 46 '<(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', | |
| 48 '<(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', | |
| 50 ], | |
| 51 'action': [ | |
| 52 'python', '<@(mojom_bindings_generator)', | |
| 53 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', | |
| 54 '--use_bundled_pylibs', | |
| 55 '-d', '<(DEPTH)', | |
| 56 '<@(mojom_import_args)', | |
| 57 '-o', '<(SHARED_INTERMEDIATE_DIR)', | |
| 58 '--java_output_directory=<(java_out_dir)', | |
| 59 ], | |
| 60 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP
UT_ROOT).mojom', | |
| 61 'process_outputs_as_sources': 1, | |
| 62 } | |
| 63 ], | |
| 64 'dependencies': [ | |
| 65 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_interface_bindings_generatio
n', | |
| 66 ], | |
| 67 'include_dirs': [ | |
| 68 '<(DEPTH)', | |
| 69 '<(DEPTH)/third_party/mojo/src', | |
| 70 '<(SHARED_INTERMEDIATE_DIR)', | |
| 71 '<(SHARED_INTERMEDIATE_DIR)/third_party/mojo/src', | |
| 72 ], | |
| 73 'direct_dependent_settings': { | |
| 74 'include_dirs': [ | |
| 75 '<(DEPTH)', | |
| 76 '<(DEPTH)/third_party/mojo/src', | |
| 77 '<(SHARED_INTERMEDIATE_DIR)', | |
| 78 '<(SHARED_INTERMEDIATE_DIR)/third_party/mojo/src', | |
| 79 ], | |
| 80 'variables': { | |
| 81 'generated_src_dirs': [ | |
| 82 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', | |
| 83 ], | |
| 84 'additional_input_paths': [ | |
| 85 '<@(mojom_bindings_generator_sources)', | |
| 86 '<@(_sources)', | |
| 87 ], | |
| 88 }, | |
| 89 }, | |
| 90 'hard_dependency': 1, | |
| 91 } | |
| OLD | NEW |