Add ICU message format support
[chromium-blink-merge.git] / ui / base / ime / ui_base_ime.gyp
blob176404167aa9317488f7803bc29dfece91ffd9cc
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //ui/base/ime
12       'target_name': 'ui_base_ime',
13       'type': '<(component)',
14       'dependencies': [
15         '../../../base/base.gyp:base',
16         '../../../base/base.gyp:base_i18n',
17         '../../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18         '../../../skia/skia.gyp:skia',
19         '../../../third_party/icu/icu.gyp:icui18n',
20         '../../../third_party/icu/icu.gyp:icuuc',
21         '../../../url/url.gyp:url_lib',
22         '../../events/events.gyp:dom_keycode_converter',
23         '../../events/events.gyp:events',
24         '../../events/events.gyp:events_base',
25         '../../gfx/gfx.gyp:gfx',
26         '../../gfx/gfx.gyp:gfx_geometry',
27         '../ui_base.gyp:ui_base',
28       ],
29       'defines': [
30         'UI_BASE_IME_IMPLEMENTATION',
31       ],
32       'sources' : [
33         'candidate_window.cc',
34         'candidate_window.h',
35         'chromeos/character_composer.cc',
36         'chromeos/character_composer.h',
37         'chromeos/component_extension_ime_manager.cc',
38         'chromeos/component_extension_ime_manager.h',
39         'chromeos/composition_text_chromeos.cc',
40         'chromeos/composition_text_chromeos.h',
41         'chromeos/extension_ime_util.cc',
42         'chromeos/extension_ime_util.h',
43         'chromeos/fake_ime_keyboard.cc',
44         'chromeos/fake_ime_keyboard.h',
45         'chromeos/fake_input_method_delegate.cc',
46         'chromeos/fake_input_method_delegate.h',
47         'chromeos/ime_bridge.cc',
48         'chromeos/ime_bridge.h',
49         'chromeos/ime_keyboard.cc',
50         'chromeos/ime_keyboard.h',
51         'chromeos/ime_keyboard_ozone.cc',
52         'chromeos/ime_keyboard_ozone.h',
53         'chromeos/ime_keyboard_x11.cc',
54         'chromeos/ime_keyboard_x11.h',
55         'chromeos/ime_keymap.cc',
56         'chromeos/ime_keymap.h',
57         'chromeos/input_method_delegate.h',
58         'chromeos/input_method_descriptor.cc',
59         'chromeos/input_method_descriptor.h',
60         'chromeos/input_method_manager.cc',
61         'chromeos/input_method_manager.h',
62         'chromeos/input_method_whitelist.cc',
63         'chromeos/input_method_whitelist.h',
64         'chromeos/mock_component_extension_ime_manager_delegate.cc',
65         'chromeos/mock_component_extension_ime_manager_delegate.h',
66         'chromeos/mock_ime_candidate_window_handler.cc',
67         'chromeos/mock_ime_candidate_window_handler.h',
68         'chromeos/mock_ime_engine_handler.cc',
69         'chromeos/mock_ime_engine_handler.h',
70         'chromeos/mock_ime_input_context_handler.cc',
71         'chromeos/mock_ime_input_context_handler.h',
72         'composition_text.cc',
73         'composition_text.h',
74         'composition_text_util_pango.cc',
75         'composition_text_util_pango.h',
76         'composition_underline.h',
77         'infolist_entry.cc',
78         'infolist_entry.h',
79         'input_method.h',
80         'input_method_auralinux.cc',
81         'input_method_auralinux.h',
82         'input_method_base.cc',
83         'input_method_base.h',
84         'input_method_chromeos.cc',
85         'input_method_chromeos.h',
86         'input_method_delegate.h',
87         'input_method_factory.cc',
88         'input_method_factory.h',
89         'input_method_initializer.cc',
90         'input_method_initializer.h',
91         'input_method_mac.h',
92         'input_method_mac.mm',
93         'input_method_minimal.cc',
94         'input_method_minimal.h',
95         'input_method_observer.h',
96         'input_method_win.cc',
97         'input_method_win.h',
98         'linux/fake_input_method_context.cc',
99         'linux/fake_input_method_context.h',
100         'linux/fake_input_method_context_factory.cc',
101         'linux/fake_input_method_context_factory.h',
102         'linux/linux_input_method_context.h',
103         'linux/linux_input_method_context_factory.cc',
104         'linux/linux_input_method_context_factory.h',
105         'mock_input_method.cc',
106         'mock_input_method.h',
107         'remote_input_method_delegate_win.h',
108         'remote_input_method_win.cc',
109         'remote_input_method_win.h',
110         'text_input_client.cc',
111         'text_input_client.h',
112         'text_input_type.h',
113         'ui_base_ime_export.h',
114         'win/imm32_manager.cc',
115         'win/imm32_manager.h',
116         'win/tsf_input_scope.cc',
117         'win/tsf_input_scope.h',
118       ],
119       'conditions': [
120         ['use_ozone==1', {
121           'dependencies': [
122             '../../events/ozone/events_ozone.gyp:events_ozone_layout',
123             '../../ozone/ozone.gyp:ozone',
124           ],
125         }],
126         ['use_pango==1', {
127           'dependencies': [
128             '../../../build/linux/system.gyp:pangocairo',
129           ],
130         }],
131         ['OS=="win"', {
132           # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
133           # C4324 is structure was padded due to __declspec(align()), which is
134           # uninteresting.
135           'msvs_disabled_warnings': [ 4267, 4324 ],
136           'link_settings': {
137             'libraries': [
138               '-limm32.lib',
139             ],
140           },
141         }],
142         ['use_x11==1', {
143           'dependencies': [
144             '../../../build/linux/system.gyp:x11',
145             '../../gfx/x/gfx_x11.gyp:gfx_x11',
146           ],
147         }],
148         ['toolkit_views==0 and use_aura==0', {
149           'sources!': [
150             'input_method_factory.cc',
151             'input_method_factory.h',
152             'input_method_minimal.cc',
153             'input_method_minimal.h',
154           ],
155         }],
156         ['chromeos==1', {
157           'dependencies': [
158             '../../../chromeos/chromeos.gyp:chromeos',
159           ],
160         }],
161         ['use_aura==0 or (desktop_linux==0 and use_ozone==0)', {
162           'sources!': [
163             'input_method_auralinux.cc',
164             'input_method_auralinux.h',
165             'linux/fake_input_method_context.cc',
166             'linux/fake_input_method_context.h',
167             'linux/fake_input_method_context_factory.cc',
168             'linux/fake_input_method_context_factory.h',
169             'linux/linux_input_method_context.h',
170             'linux/linux_input_method_context_factory.cc',
171             'linux/linux_input_method_context_factory.h',
172           ],
173         }],
174         ['use_x11==0', {
175           'sources!': [
176             'composition_text_util_pango.cc',
177             'composition_text_util_pango.h',
178           ],
179         }],
180       ],
181     },
182   ],