OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'variables': { | 6 'variables': { |
7 'input_method_out_dir': | 7 'input_method_out_dir': |
8 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/chromeos/input_method', | 8 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/chromeos/input_method', |
9 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 9 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
10 }, | 10 }, |
(...skipping 19 matching lines...) Expand all Loading... |
30 ], | 30 ], |
31 'message': 'Generating ibus_input_methods.h', | 31 'message': 'Generating ibus_input_methods.h', |
32 }, | 32 }, |
33 ], | 33 ], |
34 'direct_dependent_settings': { | 34 'direct_dependent_settings': { |
35 'include_dirs': [ | 35 'include_dirs': [ |
36 '<(SHARED_INTERMEDIATE_DIR)', | 36 '<(SHARED_INTERMEDIATE_DIR)', |
37 ], | 37 ], |
38 }, | 38 }, |
39 }, | 39 }, |
| 40 { |
| 41 'target_name': 'litify_mozc_proto_files', |
| 42 'type': 'none', |
| 43 'actions': [ |
| 44 { |
| 45 'action_name': 'litify_config_proto', |
| 46 'inputs': [ |
| 47 '../../../../third_party/mozc/session/config.proto', |
| 48 ], |
| 49 'outputs': [ |
| 50 '<(input_method_out_dir)/mozc/session/config.proto', |
| 51 ], |
| 52 'action': [ |
| 53 'python', |
| 54 'litify_proto_file.py', |
| 55 '../../../../third_party/mozc/session/config.proto', |
| 56 '<(input_method_out_dir)/mozc/session/config.proto', |
| 57 ], |
| 58 }, |
| 59 { |
| 60 'action_name': 'litify_commands_proto', |
| 61 'inputs': [ |
| 62 '../../../../third_party/mozc/session/commands.proto', |
| 63 ], |
| 64 'outputs': [ |
| 65 '<(input_method_out_dir)/mozc/session/commands.proto', |
| 66 ], |
| 67 'action': [ |
| 68 'python', |
| 69 'litify_proto_file.py', |
| 70 '../../../../third_party/mozc/session/commands.proto', |
| 71 '<(input_method_out_dir)/mozc/session/commands.proto', |
| 72 ], |
| 73 }, |
| 74 ], |
| 75 }, |
| 76 { |
| 77 # Protobuf compiler / generator for the mozc inputmethod commands |
| 78 # protocol buffer. |
| 79 'target_name': 'mozc_commands_proto', |
| 80 'type': 'static_library', |
| 81 'sources': [ |
| 82 '<(input_method_out_dir)/mozc/session/config.proto', |
| 83 '<(input_method_out_dir)/mozc/session/commands.proto', |
| 84 ], |
| 85 'rules': [ |
| 86 { |
| 87 'rule_name': 'genproto', |
| 88 'extension': 'proto', |
| 89 'inputs': [ |
| 90 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 91 ], |
| 92 'outputs': [ |
| 93 '<(protoc_out_dir)/third_party/mozc/session/<(RULE_INPUT_ROOT).pb.h'
, |
| 94 '<(protoc_out_dir)/third_party/mozc/session/<(RULE_INPUT_ROOT).pb.cc
', |
| 95 ], |
| 96 'action': [ |
| 97 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 98 '--proto_path=<(input_method_out_dir)/mozc', |
| 99 '<(input_method_out_dir)/mozc/session/<(RULE_INPUT_ROOT)<(RULE_INPUT
_EXT)', |
| 100 '--cpp_out=<(protoc_out_dir)/third_party/mozc', |
| 101 ], |
| 102 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', |
| 103 'process_outputs_as_sources': 1, |
| 104 }, |
| 105 ], |
| 106 'dependencies': [ |
| 107 'litify_mozc_proto_files', |
| 108 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 109 '../../../../third_party/protobuf/protobuf.gyp:protoc#host', |
| 110 ], |
| 111 'include_dirs': [ |
| 112 '<(protoc_out_dir)/third_party/mozc', |
| 113 ], |
| 114 'direct_dependent_settings': { |
| 115 'include_dirs': [ |
| 116 '<(protoc_out_dir)/third_party/mozc', |
| 117 ] |
| 118 }, |
| 119 'export_dependent_settings': [ |
| 120 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 121 ], |
| 122 }, |
40 ] | 123 ] |
41 } | 124 } |
OLD | NEW |