blob: e17d242e5f8e8d1ad0cf9dcbb370ca8bec4f055e [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001# Copyright (c) 2012 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.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
9 'includes': [
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000010 'shell_dialogs.gypi',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000011 'ui_resources.gypi',
Torne (Richard Coles)b2df76e2013-05-13 16:52:09 +010012 'ui_unittests.gypi',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000013 ],
14 'targets': [
15 {
16 'target_name': 'ui',
17 'type': '<(component)',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000018 'dependencies': [
19 '../base/base.gyp:base',
20 '../base/base.gyp:base_i18n',
21 '../base/base.gyp:base_static',
22 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000023 '../net/net.gyp:net',
24 '../skia/skia.gyp:skia',
25 '../third_party/icu/icu.gyp:icui18n',
26 '../third_party/icu/icu.gyp:icuuc',
27 '../third_party/libpng/libpng.gyp:libpng',
28 '../third_party/zlib/zlib.gyp:zlib',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +010029 '../url/url.gyp:url_lib',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000030 'base/strings/ui_strings.gyp:ui_strings',
31 'ui_resources',
32 ],
33 'defines': [
34 'UI_IMPLEMENTATION',
35 ],
36 # Export these dependencies since text_elider.h includes ICU headers.
37 'export_dependent_settings': [
38 '../net/net.gyp:net',
39 '../third_party/icu/icu.gyp:icui18n',
40 '../third_party/icu/icu.gyp:icuuc',
41 ],
42 'sources' : [
43 'android/ui_jni_registrar.cc',
44 'android/ui_jni_registrar.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010045 'android/view_android.cc',
46 'android/view_android.h',
47 'android/window_android.cc',
48 'android/window_android.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000049 'base/accelerators/accelerator.cc',
50 'base/accelerators/accelerator.h',
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +010051 'base/accelerators/menu_label_accelerator_util_linux.cc',
52 'base/accelerators/menu_label_accelerator_util_linux.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000053 'base/accelerators/platform_accelerator.h',
54 'base/accelerators/platform_accelerator_cocoa.h',
55 'base/accelerators/platform_accelerator_cocoa.mm',
56 'base/accelerators/platform_accelerator_gtk.cc',
57 'base/accelerators/platform_accelerator_gtk.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000058 'base/accelerators/accelerator_manager.cc',
59 'base/accelerators/accelerator_manager.h',
60 'base/accessibility/accessibility_types.h',
61 'base/accessibility/accessible_text_utils.cc',
62 'base/accessibility/accessible_text_utils.h',
63 'base/accessibility/accessible_view_state.cc',
64 'base/accessibility/accessible_view_state.h',
65 'base/animation/animation.cc',
66 'base/animation/animation.h',
67 'base/animation/animation_container.cc',
68 'base/animation/animation_container.h',
69 'base/animation/animation_container_element.h',
70 'base/animation/animation_container_observer.h',
71 'base/animation/animation_delegate.h',
72 'base/animation/linear_animation.cc',
73 'base/animation/linear_animation.h',
74 'base/animation/multi_animation.cc',
75 'base/animation/multi_animation.h',
76 'base/animation/slide_animation.cc',
77 'base/animation/slide_animation.h',
78 'base/animation/throb_animation.cc',
79 'base/animation/throb_animation.h',
80 'base/animation/tween.cc',
81 'base/animation/tween.h',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010082 'base/base_window.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000083 'base/clipboard/clipboard.cc',
84 'base/clipboard/clipboard.h',
85 'base/clipboard/clipboard_android.cc',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000086 'base/clipboard/clipboard_android_initialization.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010087 'base/clipboard/clipboard_aura.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000088 'base/clipboard/clipboard_aurax11.cc',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010089 'base/clipboard/clipboard_constants.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000090 'base/clipboard/clipboard_gtk.cc',
91 'base/clipboard/clipboard_mac.mm',
92 'base/clipboard/clipboard_util_win.cc',
93 'base/clipboard/clipboard_util_win.h',
94 'base/clipboard/clipboard_win.cc',
95 'base/clipboard/custom_data_helper.cc',
96 'base/clipboard/custom_data_helper.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010097 'base/clipboard/custom_data_helper_linux.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000098 'base/clipboard/custom_data_helper_mac.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000099 'base/clipboard/scoped_clipboard_writer.cc',
100 'base/clipboard/scoped_clipboard_writer.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100101 'base/cocoa/animation_utils.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000102 'base/cocoa/base_view.h',
103 'base/cocoa/base_view.mm',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100104 'base/cocoa/cocoa_event_utils.h',
105 'base/cocoa/cocoa_event_utils.mm',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100106 'base/cocoa/controls/hover_image_menu_button.h',
107 'base/cocoa/controls/hover_image_menu_button.mm',
108 'base/cocoa/controls/hover_image_menu_button_cell.h',
109 'base/cocoa/controls/hover_image_menu_button_cell.mm',
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100110 'base/cocoa/controls/hyperlink_button_cell.h',
111 'base/cocoa/controls/hyperlink_button_cell.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000112 'base/cocoa/events_mac.mm',
113 'base/cocoa/find_pasteboard.h',
114 'base/cocoa/find_pasteboard.mm',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100115 'base/cocoa/flipped_view.h',
116 'base/cocoa/flipped_view.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000117 'base/cocoa/focus_tracker.h',
118 'base/cocoa/focus_tracker.mm',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000119 'base/cocoa/focus_window_set.h',
120 'base/cocoa/focus_window_set.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000121 'base/cocoa/fullscreen_window_manager.h',
122 'base/cocoa/fullscreen_window_manager.mm',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000123 'base/cocoa/hover_button.h',
124 'base/cocoa/hover_button.mm',
125 'base/cocoa/hover_image_button.h',
126 'base/cocoa/hover_image_button.mm',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100127 'base/cocoa/menu_controller.h',
128 'base/cocoa/menu_controller.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000129 'base/cocoa/nib_loading.h',
130 'base/cocoa/nib_loading.mm',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100131 'base/cocoa/nsgraphics_context_additions.h',
132 'base/cocoa/nsgraphics_context_additions.mm',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000133 'base/cocoa/tracking_area.h',
134 'base/cocoa/tracking_area.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000135 'base/cocoa/underlay_opengl_hosting_window.h',
136 'base/cocoa/underlay_opengl_hosting_window.mm',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100137 'base/cocoa/view_description.h',
138 'base/cocoa/view_description.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000139 'base/cocoa/window_size_constants.h',
140 'base/cocoa/window_size_constants.mm',
141 'base/cursor/cursor.cc',
142 'base/cursor/cursor.h',
143 'base/cursor/cursor_loader.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100144 'base/cursor/cursor_loader_null.cc',
145 'base/cursor/cursor_loader_null.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000146 'base/cursor/cursor_loader_win.cc',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100147 'base/cursor/cursor_null.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000148 'base/cursor/cursor_loader_win.h',
149 'base/cursor/cursor_loader_x11.cc',
150 'base/cursor/cursor_loader_x11.h',
151 'base/cursor/cursor_win.cc',
152 'base/cursor/cursor_x11.cc',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100153 'base/cursor/cursors_aura.cc',
154 'base/cursor/cursors_aura.h',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100155 'base/default_theme_provider.cc',
156 'base/default_theme_provider.h',
157 'base/default_theme_provider_mac.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000158 'base/dragdrop/cocoa_dnd_util.h',
159 'base/dragdrop/cocoa_dnd_util.mm',
160 'base/dragdrop/drag_drop_types.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000161 'base/dragdrop/drag_drop_types_win.cc',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000162 'base/dragdrop/drag_source_win.cc',
163 'base/dragdrop/drag_source_win.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000164 'base/dragdrop/drag_utils.cc',
165 'base/dragdrop/drag_utils.h',
166 'base/dragdrop/drag_utils_aura.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000167 'base/dragdrop/drag_utils_win.cc',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000168 'base/dragdrop/drop_target_win.cc',
169 'base/dragdrop/drop_target_win.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000170 'base/dragdrop/gtk_dnd_util.cc',
171 'base/dragdrop/gtk_dnd_util.h',
172 'base/dragdrop/os_exchange_data.cc',
173 'base/dragdrop/os_exchange_data.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100174 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
175 'base/dragdrop/os_exchange_data_provider_aurax11.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000176 'base/dragdrop/os_exchange_data_provider_aura.cc',
177 'base/dragdrop/os_exchange_data_provider_aura.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000178 'base/dragdrop/os_exchange_data_provider_win.cc',
179 'base/dragdrop/os_exchange_data_provider_win.h',
180 'base/events/event.cc',
181 'base/events/event.h',
182 'base/events/event_constants.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000183 'base/events/event_conversion_gtk.cc',
184 'base/events/event_conversion_gtk.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000185 'base/events/event_dispatcher.cc',
186 'base/events/event_dispatcher.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000187 'base/events/event_handler.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000188 'base/events/event_handler.h',
189 'base/events/event_target.cc',
190 'base/events/event_target.h',
191 'base/events/event_utils.cc',
192 'base/events/event_utils.h',
193 'base/gestures/gesture_configuration.cc',
194 'base/gestures/gesture_configuration.h',
195 'base/gestures/gesture_point.cc',
196 'base/gestures/gesture_point.h',
197 'base/gestures/gesture_recognizer.h',
198 'base/gestures/gesture_recognizer_impl.cc',
199 'base/gestures/gesture_recognizer_impl.h',
200 'base/gestures/gesture_sequence.cc',
201 'base/gestures/gesture_sequence.h',
202 'base/gestures/gesture_types.cc',
203 'base/gestures/gesture_types.h',
204 'base/gestures/gesture_util.cc',
205 'base/gestures/gesture_util.h',
206 'base/gestures/velocity_calculator.cc',
207 'base/gestures/velocity_calculator.h',
208 'base/gtk/event_synthesis_gtk.cc',
209 'base/gtk/event_synthesis_gtk.h',
210 'base/gtk/focus_store_gtk.cc',
211 'base/gtk/focus_store_gtk.h',
212 'base/gtk/g_object_destructor_filo.cc',
213 'base/gtk/g_object_destructor_filo.h',
214 'base/gtk/gtk_expanded_container.cc',
215 'base/gtk/gtk_expanded_container.h',
216 'base/gtk/gtk_floating_container.cc',
217 'base/gtk/gtk_floating_container.h',
218 'base/gtk/gtk_hig_constants.h',
219 'base/gtk/gtk_im_context_util.cc',
220 'base/gtk/gtk_im_context_util.h',
221 'base/gtk/gtk_screen_util.cc',
222 'base/gtk/gtk_screen_util.h',
223 'base/gtk/gtk_signal.h',
224 'base/gtk/gtk_signal_registrar.cc',
225 'base/gtk/gtk_signal_registrar.h',
226 'base/gtk/gtk_windowing.cc',
227 'base/gtk/gtk_windowing.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000228 'base/gtk/owned_widget_gtk.cc',
229 'base/gtk/owned_widget_gtk.h',
230 'base/gtk/scoped_gobject.h',
231 'base/gtk/scoped_region.cc',
232 'base/gtk/scoped_region.h',
233 'base/hit_test.h',
234 'base/keycodes/keyboard_code_conversion.cc',
235 'base/keycodes/keyboard_code_conversion.h',
Ben Murdochbbcdd452013-07-25 10:06:34 +0100236 'base/keycodes/keyboard_code_conversion_android.cc',
237 'base/keycodes/keyboard_code_conversion_android.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000238 'base/keycodes/keyboard_code_conversion_gtk.cc',
239 'base/keycodes/keyboard_code_conversion_gtk.h',
240 'base/keycodes/keyboard_code_conversion_mac.h',
241 'base/keycodes/keyboard_code_conversion_mac.mm',
242 'base/keycodes/keyboard_code_conversion_win.cc',
243 'base/keycodes/keyboard_code_conversion_win.h',
244 'base/keycodes/keyboard_code_conversion_x.cc',
245 'base/keycodes/keyboard_code_conversion_x.h',
246 'base/keycodes/keyboard_codes.h',
247 'base/keycodes/usb_keycode_map.h',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100248 'base/latency_info.cc',
249 'base/latency_info.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000250 'base/l10n/l10n_font_util.cc',
251 'base/l10n/l10n_font_util.h',
252 'base/l10n/l10n_util.cc',
253 'base/l10n/l10n_util.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100254 'base/l10n/l10n_util_android.h',
255 'base/l10n/l10n_util_android.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000256 'base/l10n/l10n_util_collator.h',
257 'base/l10n/l10n_util_mac.h',
258 'base/l10n/l10n_util_mac.mm',
259 'base/l10n/l10n_util_posix.cc',
260 'base/l10n/l10n_util_win.cc',
261 'base/l10n/l10n_util_win.h',
Ben Murdochbb1529c2013-08-08 10:24:53 +0100262 'base/l10n/time_format.cc',
263 'base/l10n/time_format.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000264 'base/layout.cc',
265 'base/layout.h',
266 'base/layout_mac.mm',
267 'base/models/button_menu_item_model.cc',
268 'base/models/button_menu_item_model.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000269 'base/models/combobox_model.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000270 'base/models/combobox_model.h',
Torne (Richard Coles)a93a17c2013-05-15 11:34:50 +0100271 'base/models/dialog_model.cc',
272 'base/models/dialog_model.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000273 'base/models/list_model.h',
274 'base/models/list_model_observer.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000275 'base/models/list_selection_model.cc',
276 'base/models/list_selection_model.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000277 'base/models/menu_model.cc',
278 'base/models/menu_model.h',
279 'base/models/menu_model_delegate.h',
280 'base/models/menu_separator_types.h',
281 'base/models/simple_menu_model.cc',
282 'base/models/simple_menu_model.h',
283 'base/models/table_model.cc',
284 'base/models/table_model.h',
285 'base/models/table_model_observer.h',
286 'base/models/tree_model.cc',
287 'base/models/tree_model.h',
288 'base/models/tree_node_iterator.h',
289 'base/models/tree_node_model.h',
Ben Murdochca12bfa2013-07-23 11:17:05 +0100290 'base/ozone/evdev/key_event_converter_ozone.cc',
291 'base/ozone/evdev/key_event_converter_ozone.h',
292 'base/ozone/evdev/touch_event_converter_ozone.cc',
293 'base/ozone/evdev/touch_event_converter_ozone.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100294 'base/ozone/event_converter_ozone.cc',
295 'base/ozone/event_converter_ozone.h',
Ben Murdochca12bfa2013-07-23 11:17:05 +0100296 'base/ozone/event_factory_delegate_ozone.h',
297 'base/ozone/event_factory_ozone.cc',
298 'base/ozone/event_factory_ozone.h',
Torne (Richard Coles)868fa2f2013-06-11 10:57:03 +0100299 'base/ozone/events_ozone.cc',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100300 'base/ozone/surface_factory_ozone.cc',
301 'base/ozone/surface_factory_ozone.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000302 'base/range/range.cc',
303 'base/range/range.h',
304 'base/range/range_mac.mm',
305 'base/range/range_win.cc',
306 'base/resource/data_pack.cc',
307 'base/resource/data_pack.h',
308 'base/resource/resource_bundle.cc',
309 'base/resource/resource_bundle.h',
310 'base/resource/resource_bundle_android.cc',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100311 'base/resource/resource_bundle_auralinux.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000312 'base/resource/resource_bundle_gtk.cc',
313 'base/resource/resource_bundle_ios.mm',
314 'base/resource/resource_bundle_mac.mm',
315 'base/resource/resource_bundle_win.cc',
316 'base/resource/resource_bundle_win.h',
317 'base/resource/resource_data_dll_win.cc',
318 'base/resource/resource_data_dll_win.h',
319 'base/resource/resource_handle.h',
320 'base/text/bytes_formatting.cc',
321 'base/text/bytes_formatting.h',
322 'base/text/text_elider.cc',
323 'base/text/text_elider.h',
324 'base/text/utf16_indexing.cc',
325 'base/text/utf16_indexing.h',
326 'base/theme_provider.cc',
327 'base/theme_provider.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000328 'base/touch/touch_device.cc',
329 'base/touch/touch_device.h',
330 'base/touch/touch_device_android.cc',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100331 'base/touch/touch_device_aurax11.cc',
Torne (Richard Coles)a93a17c2013-05-15 11:34:50 +0100332 'base/touch/touch_device_ozone.cc',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000333 'base/touch/touch_device_win.cc',
334 'base/touch/touch_editing_controller.cc',
335 'base/touch/touch_editing_controller.h',
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100336 'base/touch/touch_enabled.cc',
337 'base/touch/touch_enabled.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100338 'base/touch/touch_factory_x11.cc',
339 'base/touch/touch_factory_x11.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000340 'base/ui_base_exports.cc',
341 'base/ui_base_paths.cc',
342 'base/ui_base_paths.h',
343 'base/ui_base_switches.cc',
344 'base/ui_base_switches.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100345 'base/ui_base_switches_util.cc',
346 'base/ui_base_switches_util.h',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100347 'base/ui_base_types.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000348 'base/ui_base_types.h',
349 'base/ui_export.h',
350 'base/view_prop.cc',
351 'base/view_prop.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100352 'base/win/accessibility_ids_win.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000353 'base/win/accessibility_misc_utils.cc',
354 'base/win/accessibility_misc_utils.h',
355 'base/win/atl_module.h',
356 'base/win/dpi.cc',
357 'base/win/dpi.h',
358 'base/win/events_win.cc',
359 'base/win/extra_sdk_defines.h',
360 'base/win/foreground_helper.cc',
361 'base/win/foreground_helper.h',
362 'base/win/hidden_window.cc',
363 'base/win/hidden_window.h',
364 'base/win/hwnd_subclass.cc',
365 'base/win/hwnd_subclass.h',
366 'base/win/hwnd_util.cc',
367 'base/win/hwnd_util.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000368 'base/win/message_box_win.cc',
369 'base/win/message_box_win.h',
370 'base/win/mouse_wheel_util.cc',
371 'base/win/mouse_wheel_util.h',
372 'base/win/scoped_ole_initializer.cc',
373 'base/win/scoped_ole_initializer.h',
374 'base/win/scoped_set_map_mode.h',
375 'base/win/shell.cc',
376 'base/win/shell.h',
377 'base/win/singleton_hwnd.cc',
378 'base/win/singleton_hwnd.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000379 'base/win/touch_input.cc',
380 'base/win/touch_input.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000381 'base/win/window_impl.cc',
382 'base/win/window_impl.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000383 'base/window_open_disposition.cc',
384 'base/window_open_disposition.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000385 'base/work_area_watcher_observer.h',
386 'base/x/active_window_watcher_x.cc',
387 'base/x/active_window_watcher_x.h',
388 'base/x/active_window_watcher_x_observer.h',
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100389 'base/x/device_data_manager.cc',
390 'base/x/device_data_manager.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000391 'base/x/device_list_cache_x.cc',
392 'base/x/device_list_cache_x.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000393 'base/x/events_x.cc',
394 'base/x/root_window_property_watcher_x.cc',
395 'base/x/root_window_property_watcher_x.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100396 'base/x/selection_owner.cc',
397 'base/x/selection_owner.h',
398 'base/x/selection_requestor.cc',
399 'base/x/selection_requestor.h',
400 'base/x/selection_utils.cc',
401 'base/x/selection_utils.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000402 'base/x/work_area_watcher_x.cc',
403 'base/x/work_area_watcher_x.h',
404 'base/x/x11_atom_cache.cc',
405 'base/x/x11_atom_cache.h',
406 'base/x/x11_util.cc',
407 'base/x/x11_util.h',
408 'base/x/x11_util_internal.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000409 'gfx/android/device_display_info.cc',
410 'gfx/android/device_display_info.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000411 'gfx/android/java_bitmap.cc',
412 'gfx/android/java_bitmap.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000413 'gfx/blit.cc',
414 'gfx/blit.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000415 'gfx/break_list.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000416 'gfx/canvas.cc',
417 'gfx/canvas.h',
418 'gfx/canvas_android.cc',
419 'gfx/canvas_mac.mm',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000420 'gfx/canvas_paint_gtk.h',
421 'gfx/canvas_paint_mac.h',
422 'gfx/canvas_paint_win.h',
423 'gfx/canvas_paint_gtk.cc',
424 'gfx/canvas_paint_mac.mm',
425 'gfx/canvas_paint_win.cc',
426 'gfx/canvas_skia.cc',
427 'gfx/canvas_skia_paint.h',
428 'gfx/codec/jpeg_codec.cc',
429 'gfx/codec/jpeg_codec.h',
430 'gfx/codec/png_codec.cc',
431 'gfx/codec/png_codec.h',
432 'gfx/color_analysis.cc',
433 'gfx/color_analysis.h',
434 'gfx/color_profile.cc',
435 'gfx/color_profile.h',
436 'gfx/color_profile_mac.cc',
437 'gfx/color_profile_win.cc',
438 'gfx/color_utils.cc',
439 'gfx/color_utils.h',
440 'gfx/display.cc',
441 'gfx/display.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000442 'gfx/display_observer.cc',
443 'gfx/display_observer.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000444 'gfx/favicon_size.cc',
445 'gfx/favicon_size.h',
446 'gfx/font.cc',
447 'gfx/font.h',
448 'gfx/font_fallback_win.cc',
449 'gfx/font_fallback_win.h',
450 'gfx/font_list.cc',
451 'gfx/font_list.h',
452 'gfx/font_render_params_android.cc',
453 'gfx/font_render_params_linux.cc',
454 'gfx/font_render_params_linux.h',
455 'gfx/font_smoothing_win.cc',
456 'gfx/font_smoothing_win.h',
457 'gfx/gfx_paths.cc',
458 'gfx/gfx_paths.h',
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100459 'gfx/gpu_memory_buffer.cc',
460 'gfx/gpu_memory_buffer.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000461 'gfx/image/canvas_image_source.cc',
462 'gfx/image/canvas_image_source.h',
463 'gfx/image/image.cc',
464 'gfx/image/image.h',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100465 'gfx/image/image_family.cc',
466 'gfx/image/image_family.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000467 'gfx/image/image_ios.mm',
468 'gfx/image/image_mac.mm',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000469 'gfx/image/image_png_rep.cc',
470 'gfx/image/image_png_rep.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000471 'gfx/image/image_skia.cc',
472 'gfx/image/image_skia.h',
473 'gfx/image/image_skia_operations.cc',
474 'gfx/image/image_skia_operations.h',
475 'gfx/image/image_skia_rep.cc',
476 'gfx/image/image_skia_rep.h',
477 'gfx/image/image_skia_source.h',
478 'gfx/image/image_skia_util_ios.h',
479 'gfx/image/image_skia_util_ios.mm',
480 'gfx/image/image_skia_util_mac.h',
481 'gfx/image/image_skia_util_mac.mm',
482 'gfx/image/image_util.cc',
483 'gfx/image/image_util.h',
484 'gfx/image/image_util_ios.mm',
485 'gfx/insets.cc',
486 'gfx/insets.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000487 'gfx/insets_base.h',
488 'gfx/insets_f.cc',
489 'gfx/insets_f.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000490 'gfx/interpolated_transform.cc',
491 'gfx/interpolated_transform.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000492 'gfx/mac/scoped_ns_disable_screen_updates.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000493 'gfx/matrix3_f.cc',
494 'gfx/matrix3_f.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000495 'gfx/native_widget_types.h',
496 'gfx/pango_util.cc',
497 'gfx/pango_util.h',
498 'gfx/path.cc',
499 'gfx/path.h',
500 'gfx/path_aura.cc',
501 'gfx/path_gtk.cc',
502 'gfx/path_win.cc',
503 'gfx/path_win.h',
Ben Murdocheb525c52013-07-10 11:40:50 +0100504 'gfx/path_x11.cc',
505 'gfx/path_x11.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000506 'gfx/platform_font.h',
507 'gfx/platform_font_android.cc',
508 'gfx/platform_font_ios.h',
509 'gfx/platform_font_ios.mm',
510 'gfx/platform_font_mac.h',
511 'gfx/platform_font_mac.mm',
512 'gfx/platform_font_pango.cc',
513 'gfx/platform_font_pango.h',
514 'gfx/platform_font_win.cc',
515 'gfx/platform_font_win.h',
516 'gfx/point.cc',
517 'gfx/point.h',
518 'gfx/point3_f.cc',
519 'gfx/point3_f.h',
520 'gfx/point_base.h',
521 'gfx/point_conversions.cc',
522 'gfx/point_conversions.h',
523 'gfx/point_f.cc',
524 'gfx/point_f.h',
525 'gfx/quad_f.cc',
526 'gfx/quad_f.h',
527 'gfx/rect.cc',
528 'gfx/rect.h',
529 'gfx/rect_base.h',
530 'gfx/rect_base_impl.h',
531 'gfx/rect_conversions.cc',
532 'gfx/rect_conversions.h',
533 'gfx/rect_f.cc',
534 'gfx/rect_f.h',
535 'gfx/render_text.cc',
536 'gfx/render_text.h',
537 'gfx/render_text_linux.cc',
538 'gfx/render_text_linux.h',
539 'gfx/render_text_mac.cc',
540 'gfx/render_text_mac.h',
541 'gfx/render_text_win.cc',
542 'gfx/render_text_win.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000543 'gfx/safe_integer_conversions.h',
544 'gfx/scoped_cg_context_save_gstate_mac.h',
545 'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
546 'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
547 'gfx/scoped_ui_graphics_push_context_ios.h',
548 'gfx/scoped_ui_graphics_push_context_ios.mm',
549 'gfx/screen.cc',
550 'gfx/screen.h',
551 'gfx/screen_android.cc',
552 'gfx/screen_aura.cc',
553 'gfx/screen_gtk.cc',
554 'gfx/screen_ios.mm',
555 'gfx/screen_mac.mm',
556 'gfx/screen_win.cc',
557 'gfx/screen_win.h',
558 'gfx/scrollbar_size.cc',
559 'gfx/scrollbar_size.h',
560 'gfx/selection_model.cc',
561 'gfx/selection_model.h',
562 'gfx/shadow_value.cc',
563 'gfx/shadow_value.h',
564 'gfx/size.cc',
565 'gfx/size.h',
566 'gfx/size_base.h',
567 'gfx/size_conversions.cc',
568 'gfx/size_conversions.h',
569 'gfx/size_f.cc',
570 'gfx/size_f.h',
571 'gfx/skbitmap_operations.cc',
572 'gfx/skbitmap_operations.h',
573 'gfx/skia_util.cc',
574 'gfx/skia_util.h',
575 'gfx/skia_utils_gtk.cc',
576 'gfx/skia_utils_gtk.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000577 'gfx/switches.cc',
578 'gfx/switches.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000579 'gfx/sys_color_change_listener.cc',
580 'gfx/sys_color_change_listener.h',
581 'gfx/text_constants.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000582 'gfx/text_utils.cc',
583 'gfx/text_utils.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000584 'gfx/transform.cc',
585 'gfx/transform.h',
586 'gfx/transform_util.cc',
587 'gfx/transform_util.h',
588 'gfx/vector2d.cc',
589 'gfx/vector2d.h',
590 'gfx/vector2d_conversions.cc',
591 'gfx/vector2d_conversions.h',
592 'gfx/vector2d_f.cc',
593 'gfx/vector2d_f.h',
594 'gfx/vector3d_f.cc',
595 'gfx/vector3d_f.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000596 'webui/jstemplate_builder.cc',
597 'webui/jstemplate_builder.h',
598 'webui/web_ui_util.cc',
599 'webui/web_ui_util.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000600 ],
601 'target_conditions': [
602 ['OS == "ios"', {
603 'sources/': [
604 ['include', '^base/l10n/l10n_util_mac\\.mm$'],
605 ],
606 }],
607 ],
608 'conditions': [
609 ['OS!="ios"', {
610 'includes': [
611 'base/ime/ime.gypi',
612 ],
613 'dependencies': [
614 '<(libjpeg_gyp_path):libjpeg',
615 ],
616 }, { # OS=="ios"
617 # iOS only uses a subset of UI.
618 'sources/': [
619 ['exclude', '\\.(cc|mm)$'],
620 ['include', '_ios\\.(cc|mm)$'],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000621 ['include', '(^|/)ios/'],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000622 ['include', '^gfx/'],
623 ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000624 ['include', '^base/animation/'],
625 ['include', '^base/l10n/'],
626 ['include', '^base/layout'],
627 ['include', '^base/range/'],
628 ['include', '^base/resource/'],
629 ['include', '^base/text/text_elider\\.'],
630 ['include', '^base/ui_base_'],
631 ],
632 'link_settings': {
633 'libraries': [
634 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
635 ],
636 },
637 }],
638 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
639 # http://crbug.com/105550
640 ['use_canvas_skia==1', {
641 'sources!': [
642 'gfx/canvas_android.cc',
643 'gfx/canvas_mac.mm',
644 ],
645 }, { # use_canvas_skia!=1
646 'sources!': [
647 'gfx/canvas_skia.cc',
648 ],
649 }],
650 ['use_aura==1', {
651 'sources/': [
652 ['exclude', 'gfx/gtk_'],
653 ['exclude', 'gfx/gtk_util.cc'],
654 ['exclude', 'gfx/gtk_util.h'],
655 ['exclude', 'gfx/screen_gtk.cc'],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000656 ['exclude', 'base/work_area_watcher_observer.h'],
657 ['exclude', 'base/x/active_window_watcher_x.cc'],
658 ['exclude', 'base/x/active_window_watcher_x.h'],
659 ['exclude', 'base/x/active_window_watcher_x_observer.h'],
660 ['exclude', 'base/x/root_window_property_watcher_x.cc'],
661 ['exclude', 'base/x/root_window_property_watcher_x.h'],
662 ['exclude', 'base/x/work_area_watcher_x.cc'],
663 ['exclude', 'base/x/work_area_watcher_x.h'],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000664 ],
665 }, { # use_aura!=1
666 'sources!': [
667 'base/cursor/cursor.cc',
668 'base/cursor/cursor.h',
669 'base/cursor/cursor_loader_x11.cc',
670 'base/cursor/cursor_loader_x11.h',
671 'base/cursor/cursor_win.cc',
672 'base/cursor/cursor_x11.cc',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100673 'base/x/selection_owner.cc',
674 'base/x/selection_owner.h',
675 'base/x/selection_requestor.cc',
676 'base/x/selection_requestor.h',
677 'base/x/selection_utils.cc',
678 'base/x/selection_utils.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000679 ]
680 }],
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100681 ['use_pango==0', {
682 'sources/': [
683 ['exclude', '^gfx/pango_util\\.'],
684 ['exclude', '^gfx/platform_font_pango\\.'],
685 ],
686 }],
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100687 ['use_aura==0 or OS!="linux"', {
688 'sources!': [
689 'base/resource/resource_bundle_auralinux.cc',
690 ],
691 }],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000692 ['use_aura==1 and OS=="win"', {
693 'sources/': [
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000694 ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000695 ],
696 }],
697 ['use_aura==0 and toolkit_views==0', {
698 'sources/': [
699 ['exclude', '^base/gestures/*'],
700 ]
701 }],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000702 ['use_glib == 1', {
703 'dependencies': [
704 # font_gtk.cc uses fontconfig.
705 '../build/linux/system.gyp:fontconfig',
706 '../build/linux/system.gyp:glib',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000707 ],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000708 'conditions': [
709 ['toolkit_views==0', {
710 # Note: because of gyp predence rules this has to be defined as
711 # 'sources/' rather than 'sources!'.
712 'sources/': [
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000713 ['exclude', '^base/dragdrop/drag_utils.cc'],
714 ['exclude', '^base/dragdrop/drag_utils.h'],
715 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
716 ['exclude', '^base/dragdrop/os_exchange_data.h'],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000717 ],
718 }, {
719 # Note: because of gyp predence rules this has to be defined as
720 # 'sources/' rather than 'sources!'.
721 'sources/': [
722 ['include', '^base/dragdrop/os_exchange_data.cc'],
723 ],
724 }],
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100725 ['use_pango==1', {
726 'dependencies': [
727 '../build/linux/system.gyp:pangocairo',
728 ],
729 }],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000730 ],
731 }],
732 ['toolkit_uses_gtk == 1', {
733 'dependencies': [
734 '../build/linux/system.gyp:gtk',
735 ],
736 'sources': [
737 'gfx/gtk_native_view_id_manager.cc',
738 'gfx/gtk_native_view_id_manager.h',
739 'gfx/gtk_preserve_window.cc',
740 'gfx/gtk_preserve_window.h',
741 'gfx/gtk_util.cc',
742 'gfx/gtk_util.h',
743 'gfx/image/cairo_cached_surface.cc',
744 'gfx/image/cairo_cached_surface.h',
745 ],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000746 }],
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100747 ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000748 'sources!': [
749 'base/clipboard/clipboard_aurax11.cc',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100750 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000751 'base/touch/touch_device.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000752 ],
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100753 }, {
754 'sources!': [
755 'base/clipboard/clipboard_aura.cc',
756 'base/dragdrop/os_exchange_data_provider_aura.cc',
757 'base/dragdrop/os_exchange_data_provider_aura.h',
758 'base/touch/touch_device_aurax11.cc',
759 ],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000760 }],
761 ['OS=="win"', {
762 'sources': [
763 'gfx/gdi_util.cc',
764 'gfx/gdi_util.h',
765 'gfx/icon_util.cc',
766 'gfx/icon_util.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000767 ],
768 'sources!': [
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000769 'base/touch/touch_device.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000770 ],
771 'include_dirs': [
772 '../',
773 '../third_party/wtl/include',
774 ],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000775 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
776 # C4324 is structure was padded due to __declspec(align()), which is
777 # uninteresting.
778 'msvs_disabled_warnings': [ 4267, 4324 ],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000779 'msvs_settings': {
780 'VCLinkerTool': {
781 'DelayLoadDLLs': [
782 'd2d1.dll',
783 'd3d10_1.dll',
784 'dwmapi.dll',
785 ],
786 'AdditionalDependencies': [
787 'd2d1.lib',
788 'd3d10_1.lib',
789 'dwmapi.lib',
790 ],
791 },
792 },
793 'link_settings': {
794 'libraries': [
795 '-limm32.lib',
796 '-ld2d1.lib',
797 '-ldwmapi.lib',
798 '-loleacc.lib',
799 ],
800 },
801 },{ # OS!="win"
802 'conditions': [
803 ['use_aura==0', {
804 'sources!': [
805 'base/view_prop.cc',
806 'base/view_prop.h',
807 ],
808 }],
809 ],
810 'sources!': [
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000811 'base/dragdrop/drag_drop_types.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000812 'base/dragdrop/os_exchange_data.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000813 ],
814 'sources/': [
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000815 ['exclude', '^base/win/'],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000816 ],
817 }],
818 ['OS=="mac"', {
819 'sources!': [
820 'base/dragdrop/drag_utils.cc',
821 'base/dragdrop/drag_utils.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000822 ],
823 'link_settings': {
824 'libraries': [
825 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
826 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
827 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
828 ],
829 },
830 }],
831 ['use_x11==1', {
832 'all_dependent_settings': {
833 'ldflags': [
834 '-L<(PRODUCT_DIR)',
835 ],
836 'link_settings': {
837 'libraries': [
838 '-lX11',
839 '-lXcursor',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000840 '-lXrender', # For XRender* function calls in x11_util.cc.
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000841 ],
842 },
843 },
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000844 'link_settings': {
845 'libraries': [
846 '-lX11',
847 '-lXcursor',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000848 '-lXrender', # For XRender* function calls in x11_util.cc.
849 ],
850 },
851 'dependencies': [
852 '../build/linux/system.gyp:x11',
853 '../build/linux/system.gyp:xext',
854 '../build/linux/system.gyp:xfixes',
855 ],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000856 }, { # use_x11==0
857 'sources/': [
858 ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
859 ['exclude', 'base/x/*'],
860 ],
861 }],
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100862 ['use_ozone==0', {
863 'sources!': [
864 'base/cursor/cursor_null.cc',
865 'base/cursor/cursor_loader_null.cc',
866 'base/cursor/cursor_loader_null.h',
867 ],
868 }],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000869 ['toolkit_views==0', {
870 'sources!': [
871 'base/events/event.cc',
872 'base/events/event.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000873 'base/events/event_dispatcher.cc',
874 'base/events/event_dispatcher.h',
875 'base/events/event_handler.cc',
876 'base/events/event_handler.h',
877 'base/events/event_target.cc',
878 'base/events/event_target.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000879 'base/x/events_x.cc',
880 ],
881 }],
882 ['OS=="android"', {
883 'sources!': [
884 'base/dragdrop/drag_utils.cc',
885 'base/dragdrop/drag_utils.h',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000886 'base/touch/touch_device.cc',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000887 ],
888 'dependencies': [
889 'ui_jni_headers',
890 ],
891 'include_dirs': [
892 '<(SHARED_INTERMEDIATE_DIR)/ui',
893 ],
894 'link_settings': {
895 'libraries': [
896 '-ljnigraphics',
897 ],
898 },
899 }],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000900 ['OS=="android" and android_webview_build==0', {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000901 'dependencies': [
902 'ui_java',
903 ],
904 }],
905 ['OS=="android" or OS=="ios"', {
906 'sources!': [
907 'gfx/render_text.cc',
908 'gfx/render_text.h',
909 ],
910 }],
911 ['OS=="linux"', {
912 'libraries': [
913 '-ldl',
914 ],
915 }],
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100916 ['use_system_icu==1', {
917 # When using the system icu, the icu targets generate shim headers
918 # which are included by public headers in the ui target, so we need
919 # ui to be a hard dependency for all its users.
920 'hard_dependency': 1,
921 }],
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000922 ],
923 },
Ben Murdocheb525c52013-07-10 11:40:50 +0100924 {
925 'target_name': 'webui_test_support',
926 'type': 'none',
927 'direct_dependent_settings': {
928 'include_dirs': [
929 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
930 ]
931 }
932 }
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000933 ],
934 'conditions': [
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000935 ['OS=="android"' , {
936 'targets': [
937 {
938 'target_name': 'ui_jni_headers',
939 'type': 'none',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100940 'direct_dependent_settings': {
941 'include_dirs': [
942 '<(SHARED_INTERMEDIATE_DIR)/ui',
943 ],
944 },
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000945 'sources': [
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100946 'android/java/src/org/chromium/ui/Clipboard.java',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000947 'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000948 'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100949 'android/java/src/org/chromium/ui/LocalizationUtils.java',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000950 'android/java/src/org/chromium/ui/SelectFileDialog.java',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100951 'android/java/src/org/chromium/ui/ViewAndroid.java',
952 'android/java/src/org/chromium/ui/WindowAndroid.java',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000953 ],
954 'variables': {
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000955 'jni_gen_package': 'ui',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000956 },
957 'includes': [ '../build/jni_generator.gypi' ],
958 },
959 {
960 'target_name': 'ui_java',
961 'type': 'none',
962 'variables': {
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000963 'java_in_dir': '../ui/android/java',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000964 'has_java_resources': 1,
965 'R_package': 'org.chromium.ui',
966 'R_package_relpath': 'org/chromium/ui',
967 'java_strings_grd': 'android_ui_strings.grd',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000968 },
969 'dependencies': [
970 '../base/base.gyp:base_java',
Ben Murdoch32409262013-08-07 11:04:47 +0100971 'window_open_disposition_java',
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000972 ],
973 'includes': [ '../build/java.gypi' ],
974 },
Ben Murdoch32409262013-08-07 11:04:47 +0100975 {
976 'target_name': 'window_open_disposition_java',
977 'type': 'none',
978 'sources': [
979 'android/java/WindowOpenDisposition.template',
980 ],
981 'variables': {
982 'package_name': 'org/chromium/ui',
983 'template_deps': ['base/window_open_disposition_list.h'],
984 },
985 'includes': [ '../build/android/java_cpp_template.gypi' ],
986 },
Torne (Richard Coles)58218062012-11-14 11:43:16 +0000987 ],
988 }],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +0000989 ['OS=="mac"', {
990 'targets': [
991 {
992 'target_name': 'ui_cocoa_third_party_toolkits',
993 'type': '<(component)',
994 'sources': [
995 # Build Apple sample code
996 '../third_party/apple_sample_code/ImageAndTextCell.h',
997 '../third_party/apple_sample_code/ImageAndTextCell.m',
998 # Build the necessary GTM sources
999 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
1000 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
1001 '../third_party/GTM/AppKit/GTMIBArray.h',
1002 '../third_party/GTM/AppKit/GTMIBArray.m',
1003 '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
1004 '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
1005 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
1006 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
1007 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
1008 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
1009 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
1010 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
1011 '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
1012 '../third_party/GTM/AppKit/GTMUILocalizer.h',
1013 '../third_party/GTM/AppKit/GTMUILocalizer.m',
1014 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
1015 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
1016 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
1017 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
1018 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
1019 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
1020 # MolokoCacao additions
1021 '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
1022 '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
1023 # Build necessary Mozilla sources
1024 '../third_party/mozilla/NSScreen+Utils.h',
1025 '../third_party/mozilla/NSScreen+Utils.m',
1026 '../third_party/mozilla/NSWorkspace+Utils.h',
1027 '../third_party/mozilla/NSWorkspace+Utils.m',
1028 ],
1029 'include_dirs': [
1030 '..',
1031 '../third_party/apple',
1032 '../third_party/GTM',
1033 '../third_party/GTM/AppKit',
1034 '../third_party/GTM/DebugUtils',
1035 '../third_party/GTM/Foundation',
1036 ],
1037 'link_settings': {
1038 'libraries': [
1039 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +01001040 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +00001041 ],
1042 },
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +01001043 'conditions': [
1044 ['component=="shared_library"', {
1045 # GTM is third-party code, so we don't want to add _EXPORT
1046 # annotations to it, so build it without -fvisibility=hidden
1047 # (else the interface class symbols will be hidden in a 64bit
1048 # build). Only do this in a component build, so that the shipping
1049 # chrome binary doesn't end up with unnecessarily exported
1050 # symbols.
1051 'xcode_settings': {
1052 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
1053 },
1054 }],
1055 ],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +00001056 },
1057 ],
1058 }],
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001059 ],
1060}