1
# Copyright 2010, Google Inc.
4
# Redistribution and use in source and binary forms, with or without
5
# modification, are permitted provided that the following conditions are
8
# * Redistributions of source code must retain the above copyright
9
# notice, this list of conditions and the following disclaimer.
10
# * Redistributions in binary form must reproduce the above
11
# copyright notice, this list of conditions and the following disclaimer
12
# in the documentation and/or other materials provided with the
14
# * Neither the name of Google Inc. nor the names of its
15
# contributors may be used to endorse or promote products derived from
16
# this software without specific prior written permission.
18
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
'relative_dir': 'session',
36
'target_name': 'session',
37
'type': 'static_library',
40
'internal/candidate_list.cc',
42
'internal/session_normalizer.cc',
43
'internal/session_output.cc',
45
'session_converter.cc',
47
'session_observer_handler.cc',
49
'session_usage_observer.cc',
50
'session_watch_dog.cc',
53
'../protobuf/protobuf.gyp:protobuf',
54
'../base/base.gyp:base',
55
'../client/client.gyp:client',
56
'../composer/composer.gyp:composer',
57
'../converter/converter.gyp:converter',
58
'../usage_stats/usage_stats.gyp:usage_stats',
66
'target_name': 'config_handler',
67
'type': 'static_library',
72
'../base/base.gyp:base',
73
'../base/base.gyp:config_file_stream',
79
'target_name': 'key_parser',
80
'type': 'static_library',
85
'../base/base.gyp:base',
91
'target_name': 'genproto_session',
98
'conditions': [['two_pass_build==0', {
100
'../protobuf/protobuf.gyp:install_protoc',
105
'rule_name': 'genproto',
106
'extension': 'proto',
108
'../build_tools/run_after_chdir.py',
111
'<(proto_out_dir)/<(relative_dir)/<(RULE_INPUT_ROOT).pb.h',
112
'<(proto_out_dir)/<(relative_dir)/<(RULE_INPUT_ROOT).pb.cc',
115
'python', '../build_tools/run_after_chdir.py',
117
'<(relative_dir)/<(mozc_build_tools_dir)/protoc<(EXECUTABLE_SUFFIX)',
118
'<(relative_dir)/<(RULE_INPUT_NAME)',
119
'--cpp_out=<(proto_out_dir)',
121
'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
126
'target_name': 'session_protocol',
127
'type': 'static_library',
129
'<(proto_out_dir)/<(relative_dir)/commands.pb.cc',
130
'<(proto_out_dir)/<(relative_dir)/config.pb.cc',
131
'<(proto_out_dir)/<(relative_dir)/state.pb.cc',
134
'../protobuf/protobuf.gyp:protobuf',
139
'target_name': 'session_test',
140
'type': 'executable',
146
'../testing/testing.gyp:gtest_main',
150
'target_name': 'session_handler_test',
151
'type': 'executable',
153
'session_handler_test.cc',
157
'../testing/testing.gyp:gtest_main',
161
'target_name': 'session_module_test',
162
'type': 'executable',
164
'config_handler_test.cc',
165
'ime_switch_util_test.cc',
166
'session_converter_test.cc',
167
'session_observer_handler_test.cc',
168
'session_usage_observer_test.cc',
169
'session_watch_dog_test.cc',
173
'../testing/testing.gyp:gtest_main',
177
'target_name': 'session_internal_test',
178
'type': 'executable',
180
'internal/candidate_list_test.cc',
181
'internal/keymap_test.cc',
182
'internal/session_normalizer_test.cc',
183
'internal/session_output_test.cc',
187
'../testing/testing.gyp:gtest_main',