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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 '../../../../third_party/mozc/session/config.proto', | 55 '../../../../third_party/mozc/session/config.proto', |
56 '<(input_method_out_dir)/mozc/session/config.proto', | 56 '<(input_method_out_dir)/mozc/session/config.proto', |
57 ], | 57 ], |
58 }, | 58 }, |
59 { | 59 { |
60 'action_name': 'litify_commands_proto', | 60 'action_name': 'litify_commands_proto', |
61 'inputs': [ | 61 'inputs': [ |
62 '../../../../third_party/mozc/session/commands.proto', | 62 '../../../../third_party/mozc/session/commands.proto', |
63 ], | 63 ], |
64 'outputs': [ | 64 'outputs': [ |
| 65 '<(input_method_out_dir)/mozc/session/.litified.commands.proto', |
| 66 ], |
| 67 'action': [ |
| 68 'python', |
| 69 'litify_proto_file.py', |
| 70 '../../../../third_party/mozc/session/commands.proto', |
| 71 # For patching 'mozc_commands_patch', we set output file as temporar
y. |
| 72 '<(input_method_out_dir)/mozc/session/.litified.commands.proto', |
| 73 ], |
| 74 }, |
| 75 ] |
| 76 }, |
| 77 { |
| 78 'target_name': 'mozc_commands_patch', |
| 79 'type': 'none', |
| 80 'actions': [ |
| 81 { |
| 82 # TODO(nona): removes following patch after mozc package update. |
| 83 'action_name': 'mozc_commands_local_patch', |
| 84 'inputs': [ |
| 85 'mozc_commands.diff', |
| 86 '<(input_method_out_dir)/mozc/session/.litified.commands.proto', |
| 87 ], |
| 88 'outputs': [ |
65 '<(input_method_out_dir)/mozc/session/commands.proto', | 89 '<(input_method_out_dir)/mozc/session/commands.proto', |
66 ], | 90 ], |
67 'action': [ | 91 'action': [ |
68 'python', | 92 'patch', |
69 'litify_proto_file.py', | 93 '<(input_method_out_dir)/mozc/session/.litified.commands.proto', |
70 '../../../../third_party/mozc/session/commands.proto', | 94 '-i', |
| 95 'mozc_commands.diff', |
| 96 '-o', |
71 '<(input_method_out_dir)/mozc/session/commands.proto', | 97 '<(input_method_out_dir)/mozc/session/commands.proto', |
72 ], | 98 ], |
73 }, | 99 }, |
74 ], | 100 ], |
75 }, | 101 }, |
76 { | 102 { |
77 # Protobuf compiler / generator for the mozc inputmethod commands | 103 # Protobuf compiler / generator for the mozc inputmethod commands |
78 # protocol buffer. | 104 # protocol buffer. |
79 'target_name': 'mozc_commands_proto', | 105 'target_name': 'mozc_commands_proto', |
80 'type': 'static_library', | 106 'type': 'static_library', |
(...skipping 17 matching lines...) Expand all Loading... |
98 '--proto_path=<(input_method_out_dir)/mozc', | 124 '--proto_path=<(input_method_out_dir)/mozc', |
99 '<(input_method_out_dir)/mozc/session/<(RULE_INPUT_ROOT)<(RULE_INPUT
_EXT)', | 125 '<(input_method_out_dir)/mozc/session/<(RULE_INPUT_ROOT)<(RULE_INPUT
_EXT)', |
100 '--cpp_out=<(protoc_out_dir)/third_party/mozc', | 126 '--cpp_out=<(protoc_out_dir)/third_party/mozc', |
101 ], | 127 ], |
102 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', | 128 'message': 'Generating C++ code from <(RULE_INPUT_PATH)', |
103 'process_outputs_as_sources': 1, | 129 'process_outputs_as_sources': 1, |
104 }, | 130 }, |
105 ], | 131 ], |
106 'dependencies': [ | 132 'dependencies': [ |
107 'litify_mozc_proto_files', | 133 'litify_mozc_proto_files', |
| 134 'mozc_commands_patch', |
108 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 135 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
109 '../../../../third_party/protobuf/protobuf.gyp:protoc#host', | 136 '../../../../third_party/protobuf/protobuf.gyp:protoc#host', |
110 ], | 137 ], |
111 'include_dirs': [ | 138 'include_dirs': [ |
112 '<(protoc_out_dir)/third_party/mozc', | 139 '<(protoc_out_dir)/third_party/mozc', |
113 ], | 140 ], |
114 'direct_dependent_settings': { | 141 'direct_dependent_settings': { |
115 'include_dirs': [ | 142 'include_dirs': [ |
116 '<(protoc_out_dir)/third_party/mozc', | 143 '<(protoc_out_dir)/third_party/mozc', |
117 ] | 144 ] |
118 }, | 145 }, |
119 'export_dependent_settings': [ | 146 'export_dependent_settings': [ |
120 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 147 '../../../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
121 ], | 148 ], |
122 }, | 149 }, |
123 ] | 150 ] |
124 } | 151 } |
OLD | NEW |