~ubuntu-branches/ubuntu/oneiric/mozc/oneiric

« back to all changes in this revision

Viewing changes to .pc/protobuf.patch/session/session.gyp

  • Committer: Bazaar Package Importer
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2010-07-14 03:26:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100714032647-13qjisj6m8cm8jdx
Tags: 0.12.410.102-1
* New upstream release (Closes: #588971).
  - Add mozc-server, mozc-utils-gui and scim-mozc packages.
* Update debian/rules.
  Add --gypdir option to build_mozc.py.
* Update debian/control.
  - Bumped standards-version to 3.9.0.
  - Update description.
* Add mozc icon (Closes: #588972).
* Add patch which revises issue 18.
  ibus_mozc_issue18.patch
* kFreeBSD build support.
  support_kfreebsd.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010, Google Inc.
2
 
# All rights reserved.
3
 
#
4
 
# Redistribution and use in source and binary forms, with or without
5
 
# modification, are permitted provided that the following conditions are
6
 
# met:
7
 
#
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
13
 
# distribution.
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.
17
 
#
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.
29
 
 
30
 
{
31
 
  'variables': {
32
 
    'relative_dir': 'session',
33
 
  },
34
 
  'targets': [
35
 
    {
36
 
      'target_name': 'session',
37
 
      'type': 'static_library',
38
 
      'sources': [
39
 
        'ime_switch_util.cc',
40
 
        'internal/candidate_list.cc',
41
 
        'internal/keymap.cc',
42
 
        'internal/session_normalizer.cc',
43
 
        'internal/session_output.cc',
44
 
        'session.cc',
45
 
        'session_converter.cc',
46
 
        'session_handler.cc',
47
 
        'session_observer_handler.cc',
48
 
        'session_server.cc',
49
 
        'session_usage_observer.cc',
50
 
        'session_watch_dog.cc',
51
 
      ],
52
 
      'dependencies': [
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',
59
 
        'config_handler',
60
 
        'genproto_session',
61
 
        'key_parser',
62
 
        'session_protocol',
63
 
      ],
64
 
    },
65
 
    {
66
 
      'target_name': 'config_handler',
67
 
      'type': 'static_library',
68
 
      'sources': [
69
 
        'config_handler.cc',
70
 
      ],
71
 
      'dependencies': [
72
 
        '../base/base.gyp:base',
73
 
        '../base/base.gyp:config_file_stream',
74
 
        'genproto_session',
75
 
        'session_protocol',
76
 
      ],
77
 
    },
78
 
    {
79
 
      'target_name': 'key_parser',
80
 
      'type': 'static_library',
81
 
      'sources': [
82
 
        'key_parser.cc',
83
 
      ],
84
 
      'dependencies': [
85
 
        '../base/base.gyp:base',
86
 
        'genproto_session',
87
 
        'session_protocol',
88
 
      ],
89
 
    },
90
 
    {
91
 
      'target_name': 'genproto_session',
92
 
      'type': 'none',
93
 
      'sources': [
94
 
        'commands.proto',
95
 
        'config.proto',
96
 
        'state.proto',
97
 
      ],
98
 
      'conditions': [['two_pass_build==0', {
99
 
        'dependencies': [
100
 
          '../protobuf/protobuf.gyp:install_protoc',
101
 
        ],
102
 
      }]],
103
 
      'rules': [
104
 
        {
105
 
          'rule_name': 'genproto',
106
 
          'extension': 'proto',
107
 
          'inputs': [
108
 
            '../build_tools/run_after_chdir.py',
109
 
          ],
110
 
          'outputs': [
111
 
            '<(proto_out_dir)/<(relative_dir)/<(RULE_INPUT_ROOT).pb.h',
112
 
            '<(proto_out_dir)/<(relative_dir)/<(RULE_INPUT_ROOT).pb.cc',
113
 
          ],
114
 
          'action': [
115
 
            'python', '../build_tools/run_after_chdir.py',
116
 
            '<(DEPTH)',
117
 
            '<(relative_dir)/<(mozc_build_tools_dir)/protoc<(EXECUTABLE_SUFFIX)',
118
 
            '<(relative_dir)/<(RULE_INPUT_NAME)',
119
 
            '--cpp_out=<(proto_out_dir)',
120
 
          ],
121
 
          'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
122
 
        },
123
 
      ],
124
 
    },
125
 
    {
126
 
      'target_name': 'session_protocol',
127
 
      'type': 'static_library',
128
 
      'sources': [
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',
132
 
      ],
133
 
      'dependencies': [
134
 
        '../protobuf/protobuf.gyp:protobuf',
135
 
        'genproto_session'
136
 
      ],
137
 
    },
138
 
    {
139
 
      'target_name': 'session_test',
140
 
      'type': 'executable',
141
 
      'sources': [
142
 
        'session_test.cc',
143
 
      ],
144
 
      'dependencies': [
145
 
        'session',
146
 
        '../testing/testing.gyp:gtest_main',
147
 
      ],
148
 
    },
149
 
    {
150
 
      'target_name': 'session_handler_test',
151
 
      'type': 'executable',
152
 
      'sources': [
153
 
        'session_handler_test.cc',
154
 
      ],
155
 
      'dependencies': [
156
 
        'session',
157
 
        '../testing/testing.gyp:gtest_main',
158
 
      ],
159
 
    },
160
 
    {
161
 
      'target_name': 'session_module_test',
162
 
      'type': 'executable',
163
 
      'sources': [
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',
170
 
      ],
171
 
      'dependencies': [
172
 
        'session',
173
 
        '../testing/testing.gyp:gtest_main',
174
 
      ],
175
 
    },
176
 
    {
177
 
      'target_name': 'session_internal_test',
178
 
      'type': 'executable',
179
 
      'sources': [
180
 
        'internal/candidate_list_test.cc',
181
 
        'internal/keymap_test.cc',
182
 
        'internal/session_normalizer_test.cc',
183
 
        'internal/session_output_test.cc',
184
 
      ],
185
 
      'dependencies': [
186
 
        'session',
187
 
        '../testing/testing.gyp:gtest_main',
188
 
      ],
189
 
    },
190
 
  ],
191
 
}