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

« back to all changes in this revision

Viewing changes to unix/ibus/ibus.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:
30
30
{
31
31
  'variables': {
32
32
    'relative_dir': 'unix/ibus',
33
 
    'variables': {
34
 
      # SYSROOT directory path used for Chromium OS build
35
 
      'sysroot%': '',
36
 
    },
37
 
    'sysroot%': '<(sysroot)',
38
 
    'ibus_dependencies': [
39
 
      '../../base/base.gyp:base',
 
33
    'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)',
 
34
    'pkg_config_libs': [
 
35
      'dbus-1',
 
36
      'glib-2.0',
 
37
      'gobject-2.0',
 
38
      'ibus-1.0',
 
39
      'libcurl',
 
40
    ],
 
41
    'ibus_client_dependencies' : [
 
42
      '../../client/client.gyp:client',
 
43
      '../../session/session.gyp:ime_switch_util',
 
44
    ],
 
45
    'ibus_standalone_dependencies' : [
40
46
      '../../base/base.gyp:config_file_stream',
41
47
      '../../composer/composer.gyp:composer',
42
48
      '../../converter/converter.gyp:converter',
50
56
      '../../transliteration/transliteration.gyp:transliteration',
51
57
      '../../usage_stats/usage_stats.gyp:usage_stats',
52
58
    ],
53
 
    'ibus_include_dirs': [
54
 
      ' <!@(pkg-config --cflags-only-I ibus-1.0)'
55
 
    ],
56
 
    'ibus_libraries': [
57
 
      ' <!@(pkg-config --libs ibus-1.0)',
58
 
      '/usr/lib/libprotobuf.a',
59
 
    ],
60
 
    'ibus_ldflags': [
61
 
      ' <!@(pkg-config --libs-only-L ibus-1.0)'
62
 
    ],
63
59
  },
64
60
  'targets': [
65
61
    {
70
66
        'key_translator.cc',
71
67
        'mozc_engine.cc',
72
68
        'path_util.cc',
73
 
        'session.cc',
74
 
      ],
75
 
      'include_dirs': [
76
 
        '<@(ibus_include_dirs)',
 
69
      ],
 
70
      'actions': [
 
71
        {
 
72
          'action_name': 'gen_mozc_xml',
 
73
          'inputs': [
 
74
            './gen_mozc_xml.py',
 
75
          ],
 
76
          'outputs': [
 
77
            '<(gen_out_dir)/mozc.xml',
 
78
          ],
 
79
          'conditions': [
 
80
            ['chromeos==1 and branding=="GoogleJapaneseInput"', {
 
81
              'action': [
 
82
                'python', '../../build_tools/redirect.py',
 
83
                '<(gen_out_dir)/mozc.xml',
 
84
                './gen_mozc_xml.py',
 
85
                '--platform=ChromeOS',
 
86
                '--branding=GoogleJapaneseInput',
 
87
              ],
 
88
            }],
 
89
            ['chromeos==1 and branding!="GoogleJapaneseInput"', {
 
90
              'action': [
 
91
                'python', '../../build_tools/redirect.py',
 
92
                '<(gen_out_dir)/mozc.xml',
 
93
                './gen_mozc_xml.py',
 
94
                '--platform=ChromeOS',
 
95
                '--branding=Mozc',
 
96
              ],
 
97
            }],
 
98
            ['chromeos!=1', {
 
99
              'action': [
 
100
                'python', '../../build_tools/redirect.py',
 
101
                '<(gen_out_dir)/mozc.xml',
 
102
                './gen_mozc_xml.py',
 
103
                '--platform=Linux',
 
104
                '--branding=Mozc',
 
105
              ],
 
106
            }],
 
107
          ],
 
108
        },
 
109
      ],
 
110
      'conditions': [
 
111
        ['chromeos==1', {
 
112
         'sources': [ 'session.cc' ],
 
113
        }],
 
114
       ],
 
115
      'cflags': [
 
116
        '<!@(pkg-config --cflags <@(pkg_config_libs))',
77
117
      ],
78
118
    },
79
119
    {
81
121
      'type': 'executable',
82
122
      'sources': [
83
123
        'main.cc',
 
124
        '<(gen_out_dir)/main.h',
 
125
      ],
 
126
      'actions': [
 
127
        {
 
128
          'action_name': 'gen_main_h',
 
129
          'inputs': [
 
130
            './gen_mozc_xml.py',
 
131
          ],
 
132
          'outputs': [
 
133
            '<(gen_out_dir)/main.h',
 
134
          ],
 
135
          'conditions': [
 
136
            ['chromeos==1 and branding=="GoogleJapaneseInput"', {
 
137
              'action': [
 
138
                'python', '../../build_tools/redirect.py',
 
139
                '<(gen_out_dir)/main.h',
 
140
                './gen_mozc_xml.py',
 
141
                '--platform=ChromeOS',
 
142
                '--branding=GoogleJapaneseInput',
 
143
                '--output_cpp'
 
144
              ],
 
145
            }],
 
146
            ['chromeos==1 and branding!="GoogleJapaneseInput"', {
 
147
              'action': [
 
148
                'python', '../../build_tools/redirect.py',
 
149
                '<(gen_out_dir)/main.h',
 
150
                './gen_mozc_xml.py',
 
151
                '--platform=ChromeOS',
 
152
                '--branding=Mozc',
 
153
                '--output_cpp'
 
154
              ],
 
155
            }],
 
156
            ['chromeos!=1', {
 
157
              'action': [
 
158
                'python', '../../build_tools/redirect.py',
 
159
                '<(gen_out_dir)/main.h',
 
160
                './gen_mozc_xml.py',
 
161
                '--platform=Linux',
 
162
                '--branding=Mozc',
 
163
                '--output_cpp'
 
164
              ],
 
165
            }],
 
166
          ],
 
167
        },
84
168
      ],
85
169
      'dependencies': [
86
 
        '<@(ibus_dependencies)',
 
170
        '../../base/base.gyp:base',
87
171
        'ibus_mozc_lib',
88
172
      ],
89
 
      'include_dirs': [
90
 
        '<@(ibus_include_dirs)',
 
173
      'conditions': [
 
174
        ['chromeos==1', {
 
175
         'dependencies+': [
 
176
           '<@(ibus_standalone_dependencies)',
 
177
         ],
 
178
        }, {
 
179
         'dependencies+': [
 
180
           '<@(ibus_client_dependencies)',
 
181
         ],
 
182
        }],
 
183
       ],
 
184
      'cflags': [
 
185
        '<!@(pkg-config --cflags <@(pkg_config_libs))',
91
186
      ],
92
187
      'libraries': [
93
 
        '<@(ibus_libraries)',
 
188
        '<!@(pkg-config --libs-only-l <@(pkg_config_libs))',
94
189
      ],
95
190
      'ldflags': [
96
 
        '<@(ibus_ldflags)',
97
 
      ]
 
191
        '<!@(pkg-config --libs-only-L <@(pkg_config_libs))',
 
192
      ],
98
193
    },
99
194
    {
100
195
      'target_name': 'ibus_mozc_test',
102
197
      'sources': [
103
198
        'key_translator_test.cc',
104
199
        'path_util_test.cc',
105
 
        'session_test.cc',
 
200
      ],
 
201
      'conditions': [
 
202
        ['chromeos==1', {
 
203
           'sources': [ 'session_test.cc' ],
 
204
        }],
106
205
      ],
107
206
      'dependencies': [
108
 
        '<@(ibus_dependencies)',
 
207
        '../../base/base.gyp:base',
109
208
        '../../testing/testing.gyp:gtest_main',
110
209
        'ibus_mozc_lib',
111
210
      ],
112
 
      'include_dirs': [
113
 
        '<@(ibus_include_dirs)',
 
211
      'conditions': [
 
212
        ['chromeos==1', {
 
213
         'dependencies+': [
 
214
           '<@(ibus_standalone_dependencies)',
 
215
         ],
 
216
        }, {
 
217
         'dependencies+': [
 
218
           '<@(ibus_client_dependencies)',
 
219
         ],
 
220
        }],
 
221
       ],
 
222
      'cflags': [
 
223
        '<!@(pkg-config --cflags <@(pkg_config_libs))',
114
224
      ],
115
225
      'libraries': [
116
 
        '<@(ibus_libraries)',
 
226
        '<!@(pkg-config --libs-only-l <@(pkg_config_libs))',
117
227
      ],
118
228
      'ldflags': [
119
 
        '<@(ibus_ldflags)',
120
 
      ]
 
229
        '<!@(pkg-config --libs-only-L <@(pkg_config_libs))',
 
230
      ],
 
231
      'variables': {
 
232
        'test_size': 'small',
 
233
      },
121
234
    },
122
235
  ],
123
236
}