Don't crash when SimpleCache index is corrupt.
[chromium-blink-merge.git] / ui / ui.gyp
blob775eafef542e4048874c6ce8839a7fd38f3b43d9
1 # 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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'includes': [
10     'shell_dialogs.gypi',
11     'ui_resources.gypi',
12     'ui_unittests.gypi',
13   ],
14   'targets': [
15     {
16       'target_name': 'ui',
17       'type': '<(component)',
18       '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',
23         '../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',
29         '../url/url.gyp:url_lib',
30         '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',
45         'android/view_android.cc',
46         'android/view_android.h',
47         'android/window_android.cc',
48         'android/window_android.h',
49         'base/accelerators/accelerator.cc',
50         'base/accelerators/accelerator.h',
51         'base/accelerators/platform_accelerator.h',
52         'base/accelerators/platform_accelerator_cocoa.h',
53         'base/accelerators/platform_accelerator_cocoa.mm',
54         'base/accelerators/platform_accelerator_gtk.cc',
55         'base/accelerators/platform_accelerator_gtk.h',
56         'base/accelerators/accelerator_manager.cc',
57         'base/accelerators/accelerator_manager.h',
58         'base/accessibility/accessibility_types.h',
59         'base/accessibility/accessible_text_utils.cc',
60         'base/accessibility/accessible_text_utils.h',
61         'base/accessibility/accessible_view_state.cc',
62         'base/accessibility/accessible_view_state.h',
63         'base/animation/animation.cc',
64         'base/animation/animation.h',
65         'base/animation/animation_container.cc',
66         'base/animation/animation_container.h',
67         'base/animation/animation_container_element.h',
68         'base/animation/animation_container_observer.h',
69         'base/animation/animation_delegate.h',
70         'base/animation/linear_animation.cc',
71         'base/animation/linear_animation.h',
72         'base/animation/multi_animation.cc',
73         'base/animation/multi_animation.h',
74         'base/animation/slide_animation.cc',
75         'base/animation/slide_animation.h',
76         'base/animation/throb_animation.cc',
77         'base/animation/throb_animation.h',
78         'base/animation/tween.cc',
79         'base/animation/tween.h',
80         'base/base_window.h',
81         'base/clipboard/clipboard.cc',
82         'base/clipboard/clipboard.h',
83         'base/clipboard/clipboard_android.cc',
84         'base/clipboard/clipboard_android_initialization.h',
85         'base/clipboard/clipboard_aura.cc',
86         'base/clipboard/clipboard_aurax11.cc',
87         'base/clipboard/clipboard_constants.cc',
88         'base/clipboard/clipboard_gtk.cc',
89         'base/clipboard/clipboard_mac.mm',
90         'base/clipboard/clipboard_util_win.cc',
91         'base/clipboard/clipboard_util_win.h',
92         'base/clipboard/clipboard_win.cc',
93         'base/clipboard/custom_data_helper.cc',
94         'base/clipboard/custom_data_helper.h',
95         'base/clipboard/custom_data_helper_linux.cc',
96         'base/clipboard/custom_data_helper_mac.mm',
97         'base/clipboard/scoped_clipboard_writer.cc',
98         'base/clipboard/scoped_clipboard_writer.h',
99         'base/cocoa/animation_utils.h',
100         'base/cocoa/base_view.h',
101         'base/cocoa/base_view.mm',
102         'base/cocoa/cocoa_event_utils.h',
103         'base/cocoa/cocoa_event_utils.mm',
104         'base/cocoa/controls/hover_image_menu_button.h',
105         'base/cocoa/controls/hover_image_menu_button.mm',
106         'base/cocoa/controls/hover_image_menu_button_cell.h',
107         'base/cocoa/controls/hover_image_menu_button_cell.mm',
108         'base/cocoa/events_mac.mm',
109         'base/cocoa/find_pasteboard.h',
110         'base/cocoa/find_pasteboard.mm',
111         'base/cocoa/flipped_view.h',
112         'base/cocoa/flipped_view.mm',
113         'base/cocoa/focus_tracker.h',
114         'base/cocoa/focus_tracker.mm',
115         'base/cocoa/focus_window_set.h',
116         'base/cocoa/focus_window_set.mm',
117         'base/cocoa/fullscreen_window_manager.h',
118         'base/cocoa/fullscreen_window_manager.mm',
119         'base/cocoa/hover_button.h',
120         'base/cocoa/hover_button.mm',
121         'base/cocoa/hover_image_button.h',
122         'base/cocoa/hover_image_button.mm',
123         'base/cocoa/menu_controller.h',
124         'base/cocoa/menu_controller.mm',
125         'base/cocoa/nib_loading.h',
126         'base/cocoa/nib_loading.mm',
127         'base/cocoa/nsgraphics_context_additions.h',
128         'base/cocoa/nsgraphics_context_additions.mm',
129         'base/cocoa/tracking_area.h',
130         'base/cocoa/tracking_area.mm',
131         'base/cocoa/underlay_opengl_hosting_window.h',
132         'base/cocoa/underlay_opengl_hosting_window.mm',
133         'base/cocoa/view_description.h',
134         'base/cocoa/view_description.mm',
135         'base/cocoa/window_size_constants.h',
136         'base/cocoa/window_size_constants.mm',
137         'base/cursor/cursor.cc',
138         'base/cursor/cursor.h',
139         'base/cursor/cursor_loader.h',
140         'base/cursor/cursor_loader_null.cc',
141         'base/cursor/cursor_loader_null.h',
142         'base/cursor/cursor_loader_win.cc',
143         'base/cursor/cursor_null.cc',
144         'base/cursor/cursor_loader_win.h',
145         'base/cursor/cursor_loader_x11.cc',
146         'base/cursor/cursor_loader_x11.h',
147         'base/cursor/cursor_win.cc',
148         'base/cursor/cursor_x11.cc',
149         'base/cursor/cursors_aura.cc',
150         'base/cursor/cursors_aura.h',
151         'base/default_theme_provider.cc',
152         'base/default_theme_provider.h',
153         'base/default_theme_provider_mac.mm',
154         'base/dragdrop/cocoa_dnd_util.h',
155         'base/dragdrop/cocoa_dnd_util.mm',
156         'base/dragdrop/drag_drop_types.h',
157         'base/dragdrop/drag_drop_types_win.cc',
158         'base/dragdrop/drag_source_win.cc',
159         'base/dragdrop/drag_source_win.h',
160         'base/dragdrop/drag_utils.cc',
161         'base/dragdrop/drag_utils.h',
162         'base/dragdrop/drag_utils_aura.cc',
163         'base/dragdrop/drag_utils_win.cc',
164         'base/dragdrop/drop_target_win.cc',
165         'base/dragdrop/drop_target_win.h',
166         'base/dragdrop/gtk_dnd_util.cc',
167         'base/dragdrop/gtk_dnd_util.h',
168         'base/dragdrop/os_exchange_data.cc',
169         'base/dragdrop/os_exchange_data.h',
170         'base/dragdrop/os_exchange_data_provider_aurax11.cc',
171         'base/dragdrop/os_exchange_data_provider_aurax11.h',
172         'base/dragdrop/os_exchange_data_provider_aura.cc',
173         'base/dragdrop/os_exchange_data_provider_aura.h',
174         'base/dragdrop/os_exchange_data_provider_win.cc',
175         'base/dragdrop/os_exchange_data_provider_win.h',
176         'base/events/event.cc',
177         'base/events/event.h',
178         'base/events/event_constants.h',
179         'base/events/event_conversion_gtk.cc',
180         'base/events/event_conversion_gtk.h',
181         'base/events/event_dispatcher.cc',
182         'base/events/event_dispatcher.h',
183         'base/events/event_handler.cc',
184         'base/events/event_handler.h',
185         'base/events/event_target.cc',
186         'base/events/event_target.h',
187         'base/events/event_utils.cc',
188         'base/events/event_utils.h',
189         'base/events/key_identifier_conversion.cc',
190         'base/events/key_identifier_conversion.h',
191         'base/gestures/gesture_configuration.cc',
192         'base/gestures/gesture_configuration.h',
193         'base/gestures/gesture_point.cc',
194         'base/gestures/gesture_point.h',
195         'base/gestures/gesture_recognizer.h',
196         'base/gestures/gesture_recognizer_impl.cc',
197         'base/gestures/gesture_recognizer_impl.h',
198         'base/gestures/gesture_sequence.cc',
199         'base/gestures/gesture_sequence.h',
200         'base/gestures/gesture_types.cc',
201         'base/gestures/gesture_types.h',
202         'base/gestures/gesture_util.cc',
203         'base/gestures/gesture_util.h',
204         'base/gestures/velocity_calculator.cc',
205         'base/gestures/velocity_calculator.h',
206         'base/gtk/event_synthesis_gtk.cc',
207         'base/gtk/event_synthesis_gtk.h',
208         'base/gtk/focus_store_gtk.cc',
209         'base/gtk/focus_store_gtk.h',
210         'base/gtk/g_object_destructor_filo.cc',
211         'base/gtk/g_object_destructor_filo.h',
212         'base/gtk/gtk_expanded_container.cc',
213         'base/gtk/gtk_expanded_container.h',
214         'base/gtk/gtk_floating_container.cc',
215         'base/gtk/gtk_floating_container.h',
216         'base/gtk/gtk_hig_constants.h',
217         'base/gtk/gtk_im_context_util.cc',
218         'base/gtk/gtk_im_context_util.h',
219         'base/gtk/gtk_screen_util.cc',
220         'base/gtk/gtk_screen_util.h',
221         'base/gtk/gtk_signal.h',
222         'base/gtk/gtk_signal_registrar.cc',
223         'base/gtk/gtk_signal_registrar.h',
224         'base/gtk/gtk_windowing.cc',
225         'base/gtk/gtk_windowing.h',
226         'base/gtk/menu_label_accelerator_util.cc',
227         'base/gtk/menu_label_accelerator_util.h',
228         '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',
236         'base/keycodes/keyboard_code_conversion_gtk.cc',
237         'base/keycodes/keyboard_code_conversion_gtk.h',
238         'base/keycodes/keyboard_code_conversion_mac.h',
239         'base/keycodes/keyboard_code_conversion_mac.mm',
240         'base/keycodes/keyboard_code_conversion_win.cc',
241         'base/keycodes/keyboard_code_conversion_win.h',
242         'base/keycodes/keyboard_code_conversion_x.cc',
243         'base/keycodes/keyboard_code_conversion_x.h',
244         'base/keycodes/keyboard_codes.h',
245         'base/keycodes/usb_keycode_map.h',
246         'base/latency_info.cc',
247         'base/latency_info.h',
248         'base/l10n/l10n_font_util.cc',
249         'base/l10n/l10n_font_util.h',
250         'base/l10n/l10n_util.cc',
251         'base/l10n/l10n_util.h',
252         'base/l10n/l10n_util_android.h',
253         'base/l10n/l10n_util_android.cc',
254         'base/l10n/l10n_util_collator.h',
255         'base/l10n/l10n_util_mac.h',
256         'base/l10n/l10n_util_mac.mm',
257         'base/l10n/l10n_util_posix.cc',
258         'base/l10n/l10n_util_win.cc',
259         'base/l10n/l10n_util_win.h',
260         'base/layout.cc',
261         'base/layout.h',
262         'base/layout_mac.mm',
263         'base/models/button_menu_item_model.cc',
264         'base/models/button_menu_item_model.h',
265         'base/models/combobox_model.cc',
266         'base/models/combobox_model.h',
267         'base/models/dialog_model.cc',
268         'base/models/dialog_model.h',
269         'base/models/list_model.h',
270         'base/models/list_model_observer.h',
271         'base/models/list_selection_model.cc',
272         'base/models/list_selection_model.h',
273         'base/models/menu_model.cc',
274         'base/models/menu_model.h',
275         'base/models/menu_model_delegate.h',
276         'base/models/menu_separator_types.h',
277         'base/models/simple_menu_model.cc',
278         'base/models/simple_menu_model.h',
279         'base/models/table_model.cc',
280         'base/models/table_model.h',
281         'base/models/table_model_observer.h',
282         'base/models/tree_model.cc',
283         'base/models/tree_model.h',
284         'base/models/tree_node_iterator.h',
285         'base/models/tree_node_model.h',
286         'base/ozone/events_ozone.cc',
287         'base/ozone/event_factory_ozone.cc',
288         'base/ozone/event_factory_ozone.h',
289         'base/ozone/event_converter_ozone.cc',
290         'base/ozone/event_converter_ozone.h',
291         'base/ozone/events_ozone.cc',
292         'base/ozone/key_event_converter_ozone.cc',
293         'base/ozone/key_event_converter_ozone.h',
294         'base/ozone/surface_factory_ozone.cc',
295         'base/ozone/surface_factory_ozone.h',
296         'base/ozone/touch_event_converter_ozone.cc',
297         'base/ozone/touch_event_converter_ozone.h',
298         'base/range/range.cc',
299         'base/range/range.h',
300         'base/range/range_mac.mm',
301         'base/range/range_win.cc',
302         'base/resource/data_pack.cc',
303         'base/resource/data_pack.h',
304         'base/resource/resource_bundle.cc',
305         'base/resource/resource_bundle.h',
306         'base/resource/resource_bundle_android.cc',
307         'base/resource/resource_bundle_auralinux.cc',
308         'base/resource/resource_bundle_gtk.cc',
309         'base/resource/resource_bundle_ios.mm',
310         'base/resource/resource_bundle_mac.mm',
311         'base/resource/resource_bundle_win.cc',
312         'base/resource/resource_bundle_win.h',
313         'base/resource/resource_data_dll_win.cc',
314         'base/resource/resource_data_dll_win.h',
315         'base/resource/resource_handle.h',
316         'base/text/bytes_formatting.cc',
317         'base/text/bytes_formatting.h',
318         'base/text/text_elider.cc',
319         'base/text/text_elider.h',
320         'base/text/utf16_indexing.cc',
321         'base/text/utf16_indexing.h',
322         'base/theme_provider.cc',
323         'base/theme_provider.h',
324         'base/touch/touch_device.cc',
325         'base/touch/touch_device.h',
326         'base/touch/touch_device_android.cc',
327         'base/touch/touch_device_aurax11.cc',
328         'base/touch/touch_device_ozone.cc',
329         'base/touch/touch_device_win.cc',
330         'base/touch/touch_editing_controller.cc',
331         'base/touch/touch_editing_controller.h',
332         'base/touch/touch_factory_x11.cc',
333         'base/touch/touch_factory_x11.h',
334         'base/ui_base_exports.cc',
335         'base/ui_base_paths.cc',
336         'base/ui_base_paths.h',
337         'base/ui_base_switches.cc',
338         'base/ui_base_switches.h',
339         'base/ui_base_switches_util.cc',
340         'base/ui_base_switches_util.h',
341         'base/ui_base_types.cc',
342         'base/ui_base_types.h',
343         'base/ui_export.h',
344         'base/view_prop.cc',
345         'base/view_prop.h',
346         'base/win/accessibility_ids_win.h',
347         'base/win/accessibility_misc_utils.cc',
348         'base/win/accessibility_misc_utils.h',
349         'base/win/atl_module.h',
350         'base/win/dpi.cc',
351         'base/win/dpi.h',
352         'base/win/events_win.cc',
353         'base/win/extra_sdk_defines.h',
354         'base/win/foreground_helper.cc',
355         'base/win/foreground_helper.h',
356         'base/win/hidden_window.cc',
357         'base/win/hidden_window.h',
358         'base/win/hwnd_subclass.cc',
359         'base/win/hwnd_subclass.h',
360         'base/win/hwnd_util.cc',
361         'base/win/hwnd_util.h',
362         'base/win/ime_input.cc',
363         'base/win/ime_input.h',
364         'base/win/message_box_win.cc',
365         'base/win/message_box_win.h',
366         'base/win/mouse_wheel_util.cc',
367         'base/win/mouse_wheel_util.h',
368         'base/win/scoped_ole_initializer.cc',
369         'base/win/scoped_ole_initializer.h',
370         'base/win/scoped_set_map_mode.h',
371         'base/win/shell.cc',
372         'base/win/shell.h',
373         'base/win/singleton_hwnd.cc',
374         'base/win/singleton_hwnd.h',
375         'base/win/touch_input.cc',
376         'base/win/touch_input.h',
377         'base/win/window_impl.cc',
378         'base/win/window_impl.h',
379         'base/window_open_disposition.cc',
380         'base/window_open_disposition.h',
381         'base/work_area_watcher_observer.h',
382         'base/x/active_window_watcher_x.cc',
383         'base/x/active_window_watcher_x.h',
384         'base/x/active_window_watcher_x_observer.h',
385         'base/x/device_data_manager.cc',
386         'base/x/device_data_manager.h',
387         'base/x/device_list_cache_x.cc',
388         'base/x/device_list_cache_x.h',
389         'base/x/events_x.cc',
390         'base/x/root_window_property_watcher_x.cc',
391         'base/x/root_window_property_watcher_x.h',
392         'base/x/selection_owner.cc',
393         'base/x/selection_owner.h',
394         'base/x/selection_requestor.cc',
395         'base/x/selection_requestor.h',
396         'base/x/selection_utils.cc',
397         'base/x/selection_utils.h',
398         'base/x/work_area_watcher_x.cc',
399         'base/x/work_area_watcher_x.h',
400         'base/x/x11_atom_cache.cc',
401         'base/x/x11_atom_cache.h',
402         'base/x/x11_util.cc',
403         'base/x/x11_util.h',
404         'base/x/x11_util_internal.h',
405         'gfx/android/device_display_info.cc',
406         'gfx/android/device_display_info.h',
407         'gfx/android/java_bitmap.cc',
408         'gfx/android/java_bitmap.h',
409         'gfx/blit.cc',
410         'gfx/blit.h',
411         'gfx/break_list.h',
412         'gfx/canvas.cc',
413         'gfx/canvas.h',
414         'gfx/canvas_android.cc',
415         'gfx/canvas_mac.mm',
416         'gfx/canvas_paint.h',
417         'gfx/canvas_paint_gtk.h',
418         'gfx/canvas_paint_mac.h',
419         'gfx/canvas_paint_win.h',
420         'gfx/canvas_paint_gtk.cc',
421         'gfx/canvas_paint_mac.mm',
422         'gfx/canvas_paint_win.cc',
423         'gfx/canvas_skia.cc',
424         'gfx/canvas_skia_paint.h',
425         'gfx/codec/jpeg_codec.cc',
426         'gfx/codec/jpeg_codec.h',
427         'gfx/codec/png_codec.cc',
428         'gfx/codec/png_codec.h',
429         'gfx/color_analysis.cc',
430         'gfx/color_analysis.h',
431         'gfx/color_profile.cc',
432         'gfx/color_profile.h',
433         'gfx/color_profile_mac.cc',
434         'gfx/color_profile_win.cc',
435         'gfx/color_utils.cc',
436         'gfx/color_utils.h',
437         'gfx/display.cc',
438         'gfx/display.h',
439         'gfx/display_observer.cc',
440         'gfx/display_observer.h',
441         'gfx/favicon_size.cc',
442         'gfx/favicon_size.h',
443         'gfx/font.cc',
444         'gfx/font.h',
445         'gfx/font_fallback_win.cc',
446         'gfx/font_fallback_win.h',
447         'gfx/font_list.cc',
448         'gfx/font_list.h',
449         'gfx/font_render_params_android.cc',
450         'gfx/font_render_params_linux.cc',
451         'gfx/font_render_params_linux.h',
452         'gfx/font_smoothing_win.cc',
453         'gfx/font_smoothing_win.h',
454         'gfx/gfx_paths.cc',
455         'gfx/gfx_paths.h',
456         'gfx/image/canvas_image_source.cc',
457         'gfx/image/canvas_image_source.h',
458         'gfx/image/image.cc',
459         'gfx/image/image.h',
460         'gfx/image/image_family.cc',
461         'gfx/image/image_family.h',
462         'gfx/image/image_ios.mm',
463         'gfx/image/image_mac.mm',
464         'gfx/image/image_png_rep.cc',
465         'gfx/image/image_png_rep.h',
466         'gfx/image/image_skia.cc',
467         'gfx/image/image_skia.h',
468         'gfx/image/image_skia_operations.cc',
469         'gfx/image/image_skia_operations.h',
470         'gfx/image/image_skia_rep.cc',
471         'gfx/image/image_skia_rep.h',
472         'gfx/image/image_skia_source.h',
473         'gfx/image/image_skia_util_ios.h',
474         'gfx/image/image_skia_util_ios.mm',
475         'gfx/image/image_skia_util_mac.h',
476         'gfx/image/image_skia_util_mac.mm',
477         'gfx/image/image_util.cc',
478         'gfx/image/image_util.h',
479         'gfx/image/image_util_ios.mm',
480         'gfx/insets.cc',
481         'gfx/insets.h',
482         'gfx/insets_base.h',
483         'gfx/insets_f.cc',
484         'gfx/insets_f.h',
485         'gfx/interpolated_transform.cc',
486         'gfx/interpolated_transform.h',
487         'gfx/mac/scoped_ns_disable_screen_updates.h',
488         'gfx/matrix3_f.cc',
489         'gfx/matrix3_f.h',
490         'gfx/native_widget_types.h',
491         'gfx/pango_util.cc',
492         'gfx/pango_util.h',
493         'gfx/path.cc',
494         'gfx/path.h',
495         'gfx/path_aura.cc',
496         'gfx/path_gtk.cc',
497         'gfx/path_win.cc',
498         'gfx/path_win.h',
499         'gfx/platform_font.h',
500         'gfx/platform_font_android.cc',
501         'gfx/platform_font_ios.h',
502         'gfx/platform_font_ios.mm',
503         'gfx/platform_font_mac.h',
504         'gfx/platform_font_mac.mm',
505         'gfx/platform_font_pango.cc',
506         'gfx/platform_font_pango.h',
507         'gfx/platform_font_win.cc',
508         'gfx/platform_font_win.h',
509         'gfx/point.cc',
510         'gfx/point.h',
511         'gfx/point3_f.cc',
512         'gfx/point3_f.h',
513         'gfx/point_base.h',
514         'gfx/point_conversions.cc',
515         'gfx/point_conversions.h',
516         'gfx/point_f.cc',
517         'gfx/point_f.h',
518         'gfx/quad_f.cc',
519         'gfx/quad_f.h',
520         'gfx/rect.cc',
521         'gfx/rect.h',
522         'gfx/rect_base.h',
523         'gfx/rect_base_impl.h',
524         'gfx/rect_conversions.cc',
525         'gfx/rect_conversions.h',
526         'gfx/rect_f.cc',
527         'gfx/rect_f.h',
528         'gfx/render_text.cc',
529         'gfx/render_text.h',
530         'gfx/render_text_linux.cc',
531         'gfx/render_text_linux.h',
532         'gfx/render_text_mac.cc',
533         'gfx/render_text_mac.h',
534         'gfx/render_text_win.cc',
535         'gfx/render_text_win.h',
536         'gfx/safe_integer_conversions.h',
537         'gfx/scoped_cg_context_save_gstate_mac.h',
538         'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
539         'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
540         'gfx/scoped_ui_graphics_push_context_ios.h',
541         'gfx/scoped_ui_graphics_push_context_ios.mm',
542         'gfx/screen.cc',
543         'gfx/screen.h',
544         'gfx/screen_android.cc',
545         'gfx/screen_aura.cc',
546         'gfx/screen_gtk.cc',
547         'gfx/screen_ios.mm',
548         'gfx/screen_mac.mm',
549         'gfx/screen_win.cc',
550         'gfx/screen_win.h',
551         'gfx/scrollbar_size.cc',
552         'gfx/scrollbar_size.h',
553         'gfx/selection_model.cc',
554         'gfx/selection_model.h',
555         'gfx/shadow_value.cc',
556         'gfx/shadow_value.h',
557         'gfx/size.cc',
558         'gfx/size.h',
559         'gfx/size_base.h',
560         'gfx/size_conversions.cc',
561         'gfx/size_conversions.h',
562         'gfx/size_f.cc',
563         'gfx/size_f.h',
564         'gfx/skbitmap_operations.cc',
565         'gfx/skbitmap_operations.h',
566         'gfx/skia_util.cc',
567         'gfx/skia_util.h',
568         'gfx/skia_utils_gtk.cc',
569         'gfx/skia_utils_gtk.h',
570         'gfx/switches.cc',
571         'gfx/switches.h',
572         'gfx/sys_color_change_listener.cc',
573         'gfx/sys_color_change_listener.h',
574         'gfx/text_constants.h',
575         'gfx/text_utils.cc',
576         'gfx/text_utils.h',
577         'gfx/transform.cc',
578         'gfx/transform.h',
579         'gfx/transform_util.cc',
580         'gfx/transform_util.h',
581         'gfx/vector2d.cc',
582         'gfx/vector2d.h',
583         'gfx/vector2d_conversions.cc',
584         'gfx/vector2d_conversions.h',
585         'gfx/vector2d_f.cc',
586         'gfx/vector2d_f.h',
587         'gfx/vector3d_f.cc',
588         'gfx/vector3d_f.h',
589         'webui/jstemplate_builder.cc',
590         'webui/jstemplate_builder.h',
591         'webui/web_ui_util.cc',
592         'webui/web_ui_util.h',
593       ],
594       'target_conditions': [
595         ['OS == "ios"', {
596           'sources/': [
597             ['include', '^base/l10n/l10n_util_mac\\.mm$'],
598           ],
599         }],
600       ],
601       'conditions': [
602         ['OS!="ios"', {
603           'includes': [
604             'base/ime/ime.gypi',
605           ],
606           'dependencies': [
607             '<(libjpeg_gyp_path):libjpeg',
608           ],
609         }, {  # OS=="ios"
610           # iOS only uses a subset of UI.
611           'sources/': [
612             ['exclude', '\\.(cc|mm)$'],
613             ['include', '_ios\\.(cc|mm)$'],
614             ['include', '(^|/)ios/'],
615             ['include', '^gfx/'],
616             ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
617             ['include', '^base/animation/'],
618             ['include', '^base/l10n/'],
619             ['include', '^base/layout'],
620             ['include', '^base/range/'],
621             ['include', '^base/resource/'],
622             ['include', '^base/text/text_elider\\.'],
623             ['include', '^base/ui_base_'],
624           ],
625           'link_settings': {
626             'libraries': [
627               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
628             ],
629           },
630         }],
631         # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
632         #                  http://crbug.com/105550
633         ['use_canvas_skia==1', {
634           'sources!': [
635             'gfx/canvas_android.cc',
636             'gfx/canvas_mac.mm',
637           ],
638         }, {  # use_canvas_skia!=1
639           'sources!': [
640             'gfx/canvas_skia.cc',
641           ],
642         }],
643         ['use_aura==1', {
644           'sources/': [
645             ['exclude', 'gfx/gtk_'],
646             ['exclude', 'gfx/gtk_util.cc'],
647             ['exclude', 'gfx/gtk_util.h'],
648             ['exclude', 'gfx/screen_gtk.cc'],
649             ['exclude', 'base/work_area_watcher_observer.h'],
650             ['exclude', 'base/x/active_window_watcher_x.cc'],
651             ['exclude', 'base/x/active_window_watcher_x.h'],
652             ['exclude', 'base/x/active_window_watcher_x_observer.h'],
653             ['exclude', 'base/x/root_window_property_watcher_x.cc'],
654             ['exclude', 'base/x/root_window_property_watcher_x.h'],
655             ['exclude', 'base/x/work_area_watcher_x.cc'],
656             ['exclude', 'base/x/work_area_watcher_x.h'],
657            ],
658         }, {  # use_aura!=1
659           'sources!': [
660             'base/cursor/cursor.cc',
661             'base/cursor/cursor.h',
662             'base/cursor/cursor_loader_x11.cc',
663             'base/cursor/cursor_loader_x11.h',
664             'base/cursor/cursor_win.cc',
665             'base/cursor/cursor_x11.cc',
666             'base/x/selection_owner.cc',
667             'base/x/selection_owner.h',
668             'base/x/selection_requestor.cc',
669             'base/x/selection_requestor.h',
670             'base/x/selection_utils.cc',
671             'base/x/selection_utils.h',
672           ]
673         }],
674         ['use_pango==0', {
675           'sources/': [
676             ['exclude', '^gfx/pango_util\\.'],
677             ['exclude', '^gfx/platform_font_pango\\.'],
678           ],
679         }],
680         ['use_aura==0 or OS!="linux"', {
681           'sources!': [
682             'base/resource/resource_bundle_auralinux.cc',
683           ],
684         }],
685         ['use_aura==1 and OS=="win"', {
686           'sources/': [
687             ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
688           ],
689         }],
690         ['use_aura==0 and toolkit_views==0', {
691           'sources/': [
692             ['exclude', '^base/gestures/*'],
693           ]
694         }],
695         ['use_glib == 1', {
696           'dependencies': [
697             # font_gtk.cc uses fontconfig.
698             '../build/linux/system.gyp:fontconfig',
699             '../build/linux/system.gyp:glib',
700           ],
701           'conditions': [
702             ['toolkit_views==0', {
703               # Note: because of gyp predence rules this has to be defined as
704               # 'sources/' rather than 'sources!'.
705               'sources/': [
706                 ['exclude', '^base/dragdrop/drag_utils.cc'],
707                 ['exclude', '^base/dragdrop/drag_utils.h'],
708                 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
709                 ['exclude', '^base/dragdrop/os_exchange_data.h'],
710               ],
711             }, {
712               # Note: because of gyp predence rules this has to be defined as
713               # 'sources/' rather than 'sources!'.
714               'sources/': [
715                 ['include', '^base/dragdrop/os_exchange_data.cc'],
716               ],
717             }],
718             ['use_pango==1', {
719               'dependencies': [
720                 '../build/linux/system.gyp:pangocairo',
721               ],
722             }],
723           ],
724         }],
725         ['toolkit_uses_gtk == 1', {
726           'dependencies': [
727             '../build/linux/system.gyp:gtk',
728           ],
729           'sources': [
730             'gfx/gtk_native_view_id_manager.cc',
731             'gfx/gtk_native_view_id_manager.h',
732             'gfx/gtk_preserve_window.cc',
733             'gfx/gtk_preserve_window.h',
734             'gfx/gtk_util.cc',
735             'gfx/gtk_util.h',
736             'gfx/image/cairo_cached_surface.cc',
737             'gfx/image/cairo_cached_surface.h',
738           ],
739         }],
740         ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
741           'sources!': [
742             'base/clipboard/clipboard_aurax11.cc',
743             'base/dragdrop/os_exchange_data_provider_aurax11.cc',
744             'base/touch/touch_device.cc',
745           ],
746         }, {
747           'sources!': [
748             'base/clipboard/clipboard_aura.cc',
749             'base/dragdrop/os_exchange_data_provider_aura.cc',
750             'base/dragdrop/os_exchange_data_provider_aura.h',
751             'base/touch/touch_device_aurax11.cc',
752           ],
753         }],
754         ['OS=="win"', {
755           'sources': [
756             'gfx/gdi_util.cc',
757             'gfx/gdi_util.h',
758             'gfx/icon_util.cc',
759             'gfx/icon_util.h',
760           ],
761           'sources!': [
762             'base/touch/touch_device.cc',
763           ],
764           'include_dirs': [
765             '../',
766             '../third_party/wtl/include',
767           ],
768           # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
769           # C4324 is structure was padded due to __declspec(align()), which is
770           # uninteresting.
771           'msvs_disabled_warnings': [ 4267, 4324 ],
772           'msvs_settings': {
773             'VCLinkerTool': {
774               'DelayLoadDLLs': [
775                 'd2d1.dll',
776                 'd3d10_1.dll',
777                 'dwmapi.dll',
778               ],
779               'AdditionalDependencies': [
780                 'd2d1.lib',
781                 'd3d10_1.lib',
782                 'dwmapi.lib',
783               ],
784             },
785           },
786           'link_settings': {
787             'libraries': [
788               '-limm32.lib',
789               '-ld2d1.lib',
790               '-ldwmapi.lib',
791               '-loleacc.lib',
792             ],
793           },
794         },{  # OS!="win"
795           'conditions': [
796             ['use_aura==0', {
797               'sources!': [
798                 'base/view_prop.cc',
799                 'base/view_prop.h',
800               ],
801             }],
802           ],
803           'sources!': [
804             'base/dragdrop/drag_drop_types.h',
805             'base/dragdrop/os_exchange_data.cc',
806           ],
807           'sources/': [
808             ['exclude', '^base/win/'],
809           ],
810         }],
811         ['OS=="mac"', {
812           'sources!': [
813             'base/dragdrop/drag_utils.cc',
814             'base/dragdrop/drag_utils.h',
815           ],
816           'link_settings': {
817             'libraries': [
818               '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
819               '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
820               '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
821             ],
822           },
823         }],
824         ['use_x11==1', {
825           'all_dependent_settings': {
826             'ldflags': [
827               '-L<(PRODUCT_DIR)',
828             ],
829             'link_settings': {
830               'libraries': [
831                 '-lX11',
832                 '-lXcursor',
833                 '-lXrender',  # For XRender* function calls in x11_util.cc.
834               ],
835             },
836           },
837           'link_settings': {
838             'libraries': [
839               '-lX11',
840               '-lXcursor',
841               '-lXrender',  # For XRender* function calls in x11_util.cc.
842             ],
843           },
844           'dependencies': [
845             '../build/linux/system.gyp:x11',
846             '../build/linux/system.gyp:xext',
847             '../build/linux/system.gyp:xfixes',
848           ],
849         }, {  # use_x11==0
850           'sources/': [
851             ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
852             ['exclude', 'base/x/*'],
853           ],
854         }],
855         ['use_ozone==0', {
856           'sources!': [
857             'base/cursor/cursor_null.cc',
858             'base/cursor/cursor_loader_null.cc',
859             'base/cursor/cursor_loader_null.h',
860           ],
861         }],
862         ['toolkit_views==0', {
863           'sources!': [
864             'base/events/event.cc',
865             'base/events/event.h',
866             'base/events/event_dispatcher.cc',
867             'base/events/event_dispatcher.h',
868             'base/events/event_handler.cc',
869             'base/events/event_handler.h',
870             'base/events/event_target.cc',
871             'base/events/event_target.h',
872             'base/events/key_identifier_conversion.cc',
873             'base/events/key_identifier_conversion.h',
874             'base/x/events_x.cc',
875           ],
876         }],
877         ['OS=="android"', {
878           'sources!': [
879             'base/dragdrop/drag_utils.cc',
880             'base/dragdrop/drag_utils.h',
881             'base/touch/touch_device.cc',
882           ],
883           'dependencies': [
884             'ui_jni_headers',
885           ],
886           'include_dirs': [
887             '<(SHARED_INTERMEDIATE_DIR)/ui',
888           ],
889           'link_settings': {
890             'libraries': [
891               '-ljnigraphics',
892             ],
893           },
894         }],
895         ['OS=="android" and android_webview_build==0', {
896           'dependencies': [
897             'ui_java',
898           ],
899         }],
900         ['OS=="android" or OS=="ios"', {
901           'sources!': [
902             'gfx/render_text.cc',
903             'gfx/render_text.h',
904           ],
905         }],
906         ['OS=="linux"', {
907           'libraries': [
908             '-ldl',
909           ],
910         }],
911         ['use_system_icu==1', {
912           # When using the system icu, the icu targets generate shim headers
913           # which are included by public headers in the ui target, so we need
914           # ui to be a hard dependency for all its users.
915           'hard_dependency': 1,
916         }],
917       ],
918     },
919     {
920       'target_name': 'webui_test_support',
921       'type': 'none',
922       'direct_dependent_settings': {
923         'include_dirs': [
924           '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
925         ]
926       }
927     }
928   ],
929   'conditions': [
930     ['OS=="android"' , {
931        'targets': [
932          {
933            'target_name': 'ui_jni_headers',
934            'type': 'none',
935            'direct_dependent_settings': {
936              'include_dirs': [
937                '<(SHARED_INTERMEDIATE_DIR)/ui',
938              ],
939            },
940            'sources': [
941              'android/java/src/org/chromium/ui/Clipboard.java',
942              'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
943              'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
944              'android/java/src/org/chromium/ui/LocalizationUtils.java',
945              'android/java/src/org/chromium/ui/SelectFileDialog.java',
946              'android/java/src/org/chromium/ui/ViewAndroid.java',
947              'android/java/src/org/chromium/ui/WindowAndroid.java',
948            ],
949            'variables': {
950              'jni_gen_package': 'ui',
951            },
952            'includes': [ '../build/jni_generator.gypi' ],
953          },
954          {
955            'target_name': 'ui_java',
956            'type': 'none',
957            'variables': {
958              'java_in_dir': '../ui/android/java',
959              'has_java_resources': 1,
960              'R_package': 'org.chromium.ui',
961              'R_package_relpath': 'org/chromium/ui',
962              'java_strings_grd': 'android_ui_strings.grd',
963            },
964            'dependencies': [
965              '../base/base.gyp:base_java',
966            ],
967            'includes': [ '../build/java.gypi' ],
968          },
969        ],
970     }],
971     ['OS=="mac"', {
972       'targets': [
973         {
974           'target_name': 'ui_cocoa_third_party_toolkits',
975           'type': '<(component)',
976           'sources': [
977             # Build Apple sample code
978             '../third_party/apple_sample_code/ImageAndTextCell.h',
979             '../third_party/apple_sample_code/ImageAndTextCell.m',
980             # Build the necessary GTM sources
981             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
982             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
983             '../third_party/GTM/AppKit/GTMIBArray.h',
984             '../third_party/GTM/AppKit/GTMIBArray.m',
985             '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
986             '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
987             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
988             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
989             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
990             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
991             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
992             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
993             '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
994             '../third_party/GTM/AppKit/GTMUILocalizer.h',
995             '../third_party/GTM/AppKit/GTMUILocalizer.m',
996             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
997             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
998             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
999             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
1000             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
1001             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
1002             # MolokoCacao additions
1003             '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
1004             '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
1005             # Build necessary Mozilla sources
1006             '../third_party/mozilla/NSScreen+Utils.h',
1007             '../third_party/mozilla/NSScreen+Utils.m',
1008             '../third_party/mozilla/NSWorkspace+Utils.h',
1009             '../third_party/mozilla/NSWorkspace+Utils.m',
1010           ],
1011           'include_dirs': [
1012             '..',
1013             '../third_party/apple',
1014             '../third_party/GTM',
1015             '../third_party/GTM/AppKit',
1016             '../third_party/GTM/DebugUtils',
1017             '../third_party/GTM/Foundation',
1018           ],
1019           'link_settings': {
1020             'libraries': [
1021               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1022               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1023             ],
1024           },
1025           'conditions': [
1026             ['component=="shared_library"', {
1027               # GTM is third-party code, so we don't want to add _EXPORT
1028               # annotations to it, so build it without -fvisibility=hidden
1029               # (else the interface class symbols will be hidden in a 64bit
1030               # build). Only do this in a component build, so that the shipping
1031               # chrome binary doesn't end up with unnecessarily exported
1032               # symbols.
1033               'xcode_settings': {
1034                 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
1035               },
1036             }],
1037           ],
1038         },
1039       ],
1040     }],
1041   ],