gpu: Tweak Android WebGL test expectations
[chromium-blink-merge.git] / ui / ui.gyp
blob2aa50d4d259fb6e69234600b1420bda47af1efef
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/menu_label_accelerator_util_linux.cc',
52         'base/accelerators/menu_label_accelerator_util_linux.h',
53         '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',
58         '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',
82         'base/base_window.h',
83         'base/clipboard/clipboard.cc',
84         'base/clipboard/clipboard.h',
85         'base/clipboard/clipboard_android.cc',
86         'base/clipboard/clipboard_android_initialization.h',
87         'base/clipboard/clipboard_aura.cc',
88         'base/clipboard/clipboard_aurax11.cc',
89         'base/clipboard/clipboard_constants.cc',
90         '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',
97         'base/clipboard/custom_data_helper_linux.cc',
98         'base/clipboard/custom_data_helper_mac.mm',
99         'base/clipboard/scoped_clipboard_writer.cc',
100         'base/clipboard/scoped_clipboard_writer.h',
101         'base/cocoa/animation_utils.h',
102         'base/cocoa/base_view.h',
103         'base/cocoa/base_view.mm',
104         'base/cocoa/cocoa_event_utils.h',
105         'base/cocoa/cocoa_event_utils.mm',
106         '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',
110         'base/cocoa/controls/hyperlink_button_cell.h',
111         'base/cocoa/controls/hyperlink_button_cell.mm',
112         'base/cocoa/events_mac.mm',
113         'base/cocoa/find_pasteboard.h',
114         'base/cocoa/find_pasteboard.mm',
115         'base/cocoa/flipped_view.h',
116         'base/cocoa/flipped_view.mm',
117         'base/cocoa/focus_tracker.h',
118         'base/cocoa/focus_tracker.mm',
119         'base/cocoa/focus_window_set.h',
120         'base/cocoa/focus_window_set.mm',
121         'base/cocoa/fullscreen_window_manager.h',
122         'base/cocoa/fullscreen_window_manager.mm',
123         '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',
127         'base/cocoa/menu_controller.h',
128         'base/cocoa/menu_controller.mm',
129         'base/cocoa/nib_loading.h',
130         'base/cocoa/nib_loading.mm',
131         'base/cocoa/nsgraphics_context_additions.h',
132         'base/cocoa/nsgraphics_context_additions.mm',
133         'base/cocoa/tracking_area.h',
134         'base/cocoa/tracking_area.mm',
135         'base/cocoa/underlay_opengl_hosting_window.h',
136         'base/cocoa/underlay_opengl_hosting_window.mm',
137         'base/cocoa/view_description.h',
138         'base/cocoa/view_description.mm',
139         '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',
144         'base/cursor/cursor_loader_null.cc',
145         'base/cursor/cursor_loader_null.h',
146         'base/cursor/cursor_loader_win.cc',
147         'base/cursor/cursor_null.cc',
148         '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',
153         'base/cursor/cursors_aura.cc',
154         'base/cursor/cursors_aura.h',
155         'base/default_theme_provider.cc',
156         'base/default_theme_provider.h',
157         'base/default_theme_provider_mac.mm',
158         'base/dragdrop/cocoa_dnd_util.h',
159         'base/dragdrop/cocoa_dnd_util.mm',
160         'base/dragdrop/drag_drop_types.h',
161         'base/dragdrop/drag_drop_types_win.cc',
162         'base/dragdrop/drag_source_win.cc',
163         'base/dragdrop/drag_source_win.h',
164         'base/dragdrop/drag_utils.cc',
165         'base/dragdrop/drag_utils.h',
166         'base/dragdrop/drag_utils_aura.cc',
167         'base/dragdrop/drag_utils_win.cc',
168         'base/dragdrop/drop_target_win.cc',
169         'base/dragdrop/drop_target_win.h',
170         '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',
174         'base/dragdrop/os_exchange_data_provider_aurax11.cc',
175         'base/dragdrop/os_exchange_data_provider_aurax11.h',
176         'base/dragdrop/os_exchange_data_provider_aura.cc',
177         'base/dragdrop/os_exchange_data_provider_aura.h',
178         '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',
183         'base/events/event_conversion_gtk.cc',
184         'base/events/event_conversion_gtk.h',
185         'base/events/event_dispatcher.cc',
186         'base/events/event_dispatcher.h',
187         'base/events/event_handler.cc',
188         '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',
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_android.cc',
237         'base/keycodes/keyboard_code_conversion_android.h',
238         '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',
248         'base/latency_info.cc',
249         'base/latency_info.h',
250         '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',
254         'base/l10n/l10n_util_android.h',
255         'base/l10n/l10n_util_android.cc',
256         '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',
262         'base/l10n/time_format.cc',
263         'base/l10n/time_format.h',
264         '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',
269         'base/models/combobox_model.cc',
270         'base/models/combobox_model.h',
271         'base/models/dialog_model.cc',
272         'base/models/dialog_model.h',
273         'base/models/list_model.h',
274         'base/models/list_model_observer.h',
275         'base/models/list_selection_model.cc',
276         'base/models/list_selection_model.h',
277         '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',
290         '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',
294         'base/ozone/event_converter_ozone.cc',
295         'base/ozone/event_converter_ozone.h',
296         'base/ozone/event_factory_delegate_ozone.h',
297         'base/ozone/event_factory_ozone.cc',
298         'base/ozone/event_factory_ozone.h',
299         'base/ozone/events_ozone.cc',
300         'base/ozone/surface_factory_ozone.cc',
301         'base/ozone/surface_factory_ozone.h',
302         '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',
311         'base/resource/resource_bundle_auralinux.cc',
312         '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',
328         'base/touch/touch_device.cc',
329         'base/touch/touch_device.h',
330         'base/touch/touch_device_android.cc',
331         'base/touch/touch_device_aurax11.cc',
332         'base/touch/touch_device_ozone.cc',
333         'base/touch/touch_device_win.cc',
334         'base/touch/touch_editing_controller.cc',
335         'base/touch/touch_editing_controller.h',
336         'base/touch/touch_enabled.cc',
337         'base/touch/touch_enabled.h',
338         'base/touch/touch_factory_x11.cc',
339         'base/touch/touch_factory_x11.h',
340         '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',
345         'base/ui_base_switches_util.cc',
346         'base/ui_base_switches_util.h',
347         'base/ui_base_types.cc',
348         'base/ui_base_types.h',
349         'base/ui_export.h',
350         'base/view_prop.cc',
351         'base/view_prop.h',
352         'base/win/accessibility_ids_win.h',
353         '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',
368         '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',
379         'base/win/touch_input.cc',
380         'base/win/touch_input.h',
381         'base/win/window_impl.cc',
382         'base/win/window_impl.h',
383         'base/window_open_disposition.cc',
384         'base/window_open_disposition.h',
385         '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',
389         'base/x/device_data_manager.cc',
390         'base/x/device_data_manager.h',
391         'base/x/device_list_cache_x.cc',
392         'base/x/device_list_cache_x.h',
393         'base/x/events_x.cc',
394         'base/x/root_window_property_watcher_x.cc',
395         'base/x/root_window_property_watcher_x.h',
396         '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',
402         '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',
409         'gfx/android/device_display_info.cc',
410         'gfx/android/device_display_info.h',
411         'gfx/android/java_bitmap.cc',
412         'gfx/android/java_bitmap.h',
413         'gfx/blit.cc',
414         'gfx/blit.h',
415         'gfx/box_f.cc',
416         'gfx/box_f.h',
417         'gfx/break_list.h',
418         'gfx/canvas.cc',
419         'gfx/canvas.h',
420         'gfx/canvas_android.cc',
421         'gfx/canvas_mac.mm',
422         'gfx/canvas_paint_gtk.h',
423         'gfx/canvas_paint_mac.h',
424         'gfx/canvas_paint_win.h',
425         'gfx/canvas_paint_gtk.cc',
426         'gfx/canvas_paint_mac.mm',
427         'gfx/canvas_paint_win.cc',
428         'gfx/canvas_skia.cc',
429         'gfx/canvas_skia_paint.h',
430         'gfx/codec/jpeg_codec.cc',
431         'gfx/codec/jpeg_codec.h',
432         'gfx/codec/png_codec.cc',
433         'gfx/codec/png_codec.h',
434         'gfx/color_analysis.cc',
435         'gfx/color_analysis.h',
436         'gfx/color_profile.cc',
437         'gfx/color_profile.h',
438         'gfx/color_profile_mac.cc',
439         'gfx/color_profile_win.cc',
440         'gfx/color_utils.cc',
441         'gfx/color_utils.h',
442         'gfx/display.cc',
443         'gfx/display.h',
444         'gfx/display_observer.cc',
445         'gfx/display_observer.h',
446         'gfx/favicon_size.cc',
447         'gfx/favicon_size.h',
448         'gfx/font.cc',
449         'gfx/font.h',
450         'gfx/font_fallback_win.cc',
451         'gfx/font_fallback_win.h',
452         'gfx/font_list.cc',
453         'gfx/font_list.h',
454         'gfx/font_render_params_android.cc',
455         'gfx/font_render_params_linux.cc',
456         'gfx/font_render_params_linux.h',
457         'gfx/font_smoothing_win.cc',
458         'gfx/font_smoothing_win.h',
459         'gfx/gfx_paths.cc',
460         'gfx/gfx_paths.h',
461         'gfx/gpu_memory_buffer.cc',
462         'gfx/gpu_memory_buffer.h',
463         'gfx/image/canvas_image_source.cc',
464         'gfx/image/canvas_image_source.h',
465         'gfx/image/image.cc',
466         'gfx/image/image.h',
467         'gfx/image/image_family.cc',
468         'gfx/image/image_family.h',
469         'gfx/image/image_ios.mm',
470         'gfx/image/image_mac.mm',
471         'gfx/image/image_png_rep.cc',
472         'gfx/image/image_png_rep.h',
473         'gfx/image/image_skia.cc',
474         'gfx/image/image_skia.h',
475         'gfx/image/image_skia_operations.cc',
476         'gfx/image/image_skia_operations.h',
477         'gfx/image/image_skia_rep.cc',
478         'gfx/image/image_skia_rep.h',
479         'gfx/image/image_skia_source.h',
480         'gfx/image/image_skia_util_ios.h',
481         'gfx/image/image_skia_util_ios.mm',
482         'gfx/image/image_skia_util_mac.h',
483         'gfx/image/image_skia_util_mac.mm',
484         'gfx/image/image_util.cc',
485         'gfx/image/image_util.h',
486         'gfx/image/image_util_ios.mm',
487         'gfx/insets.cc',
488         'gfx/insets.h',
489         'gfx/insets_base.h',
490         'gfx/insets_f.cc',
491         'gfx/insets_f.h',
492         'gfx/interpolated_transform.cc',
493         'gfx/interpolated_transform.h',
494         'gfx/mac/scoped_ns_disable_screen_updates.h',
495         'gfx/matrix3_f.cc',
496         'gfx/matrix3_f.h',
497         'gfx/native_widget_types.h',
498         'gfx/pango_util.cc',
499         'gfx/pango_util.h',
500         'gfx/path.cc',
501         'gfx/path.h',
502         'gfx/path_aura.cc',
503         'gfx/path_gtk.cc',
504         'gfx/path_win.cc',
505         'gfx/path_win.h',
506         'gfx/path_x11.cc',
507         'gfx/path_x11.h',
508         'gfx/platform_font.h',
509         'gfx/platform_font_android.cc',
510         'gfx/platform_font_ios.h',
511         'gfx/platform_font_ios.mm',
512         'gfx/platform_font_mac.h',
513         'gfx/platform_font_mac.mm',
514         'gfx/platform_font_pango.cc',
515         'gfx/platform_font_pango.h',
516         'gfx/platform_font_win.cc',
517         'gfx/platform_font_win.h',
518         'gfx/point.cc',
519         'gfx/point.h',
520         'gfx/point3_f.cc',
521         'gfx/point3_f.h',
522         'gfx/point_base.h',
523         'gfx/point_conversions.cc',
524         'gfx/point_conversions.h',
525         'gfx/point_f.cc',
526         'gfx/point_f.h',
527         'gfx/quad_f.cc',
528         'gfx/quad_f.h',
529         'gfx/rect.cc',
530         'gfx/rect.h',
531         'gfx/rect_base.h',
532         'gfx/rect_base_impl.h',
533         'gfx/rect_conversions.cc',
534         'gfx/rect_conversions.h',
535         'gfx/rect_f.cc',
536         'gfx/rect_f.h',
537         'gfx/render_text.cc',
538         'gfx/render_text.h',
539         'gfx/render_text_linux.cc',
540         'gfx/render_text_linux.h',
541         'gfx/render_text_mac.cc',
542         'gfx/render_text_mac.h',
543         'gfx/render_text_win.cc',
544         'gfx/render_text_win.h',
545         'gfx/safe_integer_conversions.h',
546         'gfx/scoped_cg_context_save_gstate_mac.h',
547         'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
548         'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
549         'gfx/scoped_ui_graphics_push_context_ios.h',
550         'gfx/scoped_ui_graphics_push_context_ios.mm',
551         'gfx/screen.cc',
552         'gfx/screen.h',
553         'gfx/screen_android.cc',
554         'gfx/screen_aura.cc',
555         'gfx/screen_gtk.cc',
556         'gfx/screen_ios.mm',
557         'gfx/screen_mac.mm',
558         'gfx/screen_win.cc',
559         'gfx/screen_win.h',
560         'gfx/scrollbar_size.cc',
561         'gfx/scrollbar_size.h',
562         'gfx/selection_model.cc',
563         'gfx/selection_model.h',
564         'gfx/shadow_value.cc',
565         'gfx/shadow_value.h',
566         'gfx/size.cc',
567         'gfx/size.h',
568         'gfx/size_base.h',
569         'gfx/size_conversions.cc',
570         'gfx/size_conversions.h',
571         'gfx/size_f.cc',
572         'gfx/size_f.h',
573         'gfx/skbitmap_operations.cc',
574         'gfx/skbitmap_operations.h',
575         'gfx/skia_util.cc',
576         'gfx/skia_util.h',
577         'gfx/skia_utils_gtk.cc',
578         'gfx/skia_utils_gtk.h',
579         'gfx/switches.cc',
580         'gfx/switches.h',
581         'gfx/sys_color_change_listener.cc',
582         'gfx/sys_color_change_listener.h',
583         'gfx/text_constants.h',
584         'gfx/text_utils.cc',
585         'gfx/text_utils.h',
586         'gfx/transform.cc',
587         'gfx/transform.h',
588         'gfx/transform_util.cc',
589         'gfx/transform_util.h',
590         'gfx/vector2d.cc',
591         'gfx/vector2d.h',
592         'gfx/vector2d_conversions.cc',
593         'gfx/vector2d_conversions.h',
594         'gfx/vector2d_f.cc',
595         'gfx/vector2d_f.h',
596         'gfx/vector3d_f.cc',
597         'gfx/vector3d_f.h',
598         'webui/jstemplate_builder.cc',
599         'webui/jstemplate_builder.h',
600         'webui/web_ui_util.cc',
601         'webui/web_ui_util.h',
602       ],
603       'target_conditions': [
604         ['OS == "ios"', {
605           'sources/': [
606             ['include', '^base/l10n/l10n_util_mac\\.mm$'],
607           ],
608         }],
609       ],
610       'conditions': [
611         ['OS!="ios"', {
612           'includes': [
613             'base/ime/ime.gypi',
614           ],
615           'dependencies': [
616             '<(libjpeg_gyp_path):libjpeg',
617           ],
618         }, {  # OS=="ios"
619           # iOS only uses a subset of UI.
620           'sources/': [
621             ['exclude', '\\.(cc|mm)$'],
622             ['include', '_ios\\.(cc|mm)$'],
623             ['include', '(^|/)ios/'],
624             ['include', '^gfx/'],
625             ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
626             ['include', '^base/animation/'],
627             ['include', '^base/l10n/'],
628             ['include', '^base/layout'],
629             ['include', '^base/range/'],
630             ['include', '^base/resource/'],
631             ['include', '^base/text/text_elider\\.'],
632             ['include', '^base/ui_base_'],
633           ],
634           'link_settings': {
635             'libraries': [
636               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
637             ],
638           },
639         }],
640         # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
641         #                  http://crbug.com/105550
642         ['use_canvas_skia==1', {
643           'sources!': [
644             'gfx/canvas_android.cc',
645             'gfx/canvas_mac.mm',
646           ],
647         }, {  # use_canvas_skia!=1
648           'sources!': [
649             'gfx/canvas_skia.cc',
650           ],
651         }],
652         ['use_aura==1', {
653           'sources/': [
654             ['exclude', 'gfx/gtk_'],
655             ['exclude', 'gfx/gtk_util.cc'],
656             ['exclude', 'gfx/gtk_util.h'],
657             ['exclude', 'gfx/screen_gtk.cc'],
658             ['exclude', 'base/work_area_watcher_observer.h'],
659             ['exclude', 'base/x/active_window_watcher_x.cc'],
660             ['exclude', 'base/x/active_window_watcher_x.h'],
661             ['exclude', 'base/x/active_window_watcher_x_observer.h'],
662             ['exclude', 'base/x/root_window_property_watcher_x.cc'],
663             ['exclude', 'base/x/root_window_property_watcher_x.h'],
664             ['exclude', 'base/x/work_area_watcher_x.cc'],
665             ['exclude', 'base/x/work_area_watcher_x.h'],
666            ],
667         }, {  # use_aura!=1
668           'sources!': [
669             'base/cursor/cursor.cc',
670             'base/cursor/cursor.h',
671             'base/cursor/cursor_loader_x11.cc',
672             'base/cursor/cursor_loader_x11.h',
673             'base/cursor/cursor_win.cc',
674             'base/cursor/cursor_x11.cc',
675             'base/x/selection_owner.cc',
676             'base/x/selection_owner.h',
677             'base/x/selection_requestor.cc',
678             'base/x/selection_requestor.h',
679             'base/x/selection_utils.cc',
680             'base/x/selection_utils.h',
681           ]
682         }],
683         ['use_pango==0', {
684           'sources/': [
685             ['exclude', '^gfx/pango_util\\.'],
686             ['exclude', '^gfx/platform_font_pango\\.'],
687           ],
688         }],
689         ['use_aura==0 or OS!="linux"', {
690           'sources!': [
691             'base/resource/resource_bundle_auralinux.cc',
692           ],
693         }],
694         ['use_aura==1 and OS=="win"', {
695           'sources/': [
696             ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
697           ],
698         }],
699         ['use_aura==0 and toolkit_views==0', {
700           'sources/': [
701             ['exclude', '^base/gestures/*'],
702           ]
703         }],
704         ['use_glib == 1', {
705           'dependencies': [
706             # font_gtk.cc uses fontconfig.
707             '../build/linux/system.gyp:fontconfig',
708             '../build/linux/system.gyp:glib',
709           ],
710           'conditions': [
711             ['toolkit_views==0', {
712               # Note: because of gyp predence rules this has to be defined as
713               # 'sources/' rather than 'sources!'.
714               'sources/': [
715                 ['exclude', '^base/dragdrop/drag_utils.cc'],
716                 ['exclude', '^base/dragdrop/drag_utils.h'],
717                 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
718                 ['exclude', '^base/dragdrop/os_exchange_data.h'],
719               ],
720             }, {
721               # Note: because of gyp predence rules this has to be defined as
722               # 'sources/' rather than 'sources!'.
723               'sources/': [
724                 ['include', '^base/dragdrop/os_exchange_data.cc'],
725               ],
726             }],
727             ['use_pango==1', {
728               'dependencies': [
729                 '../build/linux/system.gyp:pangocairo',
730               ],
731             }],
732           ],
733         }],
734         ['toolkit_uses_gtk == 1', {
735           'dependencies': [
736             '../build/linux/system.gyp:gtk',
737           ],
738           'sources': [
739             'gfx/gtk_native_view_id_manager.cc',
740             'gfx/gtk_native_view_id_manager.h',
741             'gfx/gtk_preserve_window.cc',
742             'gfx/gtk_preserve_window.h',
743             'gfx/gtk_util.cc',
744             'gfx/gtk_util.h',
745             'gfx/image/cairo_cached_surface.cc',
746             'gfx/image/cairo_cached_surface.h',
747           ],
748         }],
749         ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
750           'sources!': [
751             'base/clipboard/clipboard_aurax11.cc',
752             'base/dragdrop/os_exchange_data_provider_aurax11.cc',
753             'base/touch/touch_device.cc',
754           ],
755         }, {
756           'sources!': [
757             'base/clipboard/clipboard_aura.cc',
758             'base/dragdrop/os_exchange_data_provider_aura.cc',
759             'base/dragdrop/os_exchange_data_provider_aura.h',
760             'base/touch/touch_device_aurax11.cc',
761           ],
762         }],
763         ['OS=="win"', {
764           'sources': [
765             'gfx/gdi_util.cc',
766             'gfx/gdi_util.h',
767             'gfx/icon_util.cc',
768             'gfx/icon_util.h',
769           ],
770           'sources!': [
771             'base/touch/touch_device.cc',
772           ],
773           'include_dirs': [
774             '../',
775             '../third_party/wtl/include',
776           ],
777           # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
778           # C4324 is structure was padded due to __declspec(align()), which is
779           # uninteresting.
780           'msvs_disabled_warnings': [ 4267, 4324 ],
781           'msvs_settings': {
782             'VCLinkerTool': {
783               'DelayLoadDLLs': [
784                 'd2d1.dll',
785                 'd3d10_1.dll',
786                 'dwmapi.dll',
787               ],
788               'AdditionalDependencies': [
789                 'd2d1.lib',
790                 'd3d10_1.lib',
791                 'dwmapi.lib',
792               ],
793             },
794           },
795           'link_settings': {
796             'libraries': [
797               '-limm32.lib',
798               '-ld2d1.lib',
799               '-ldwmapi.lib',
800               '-loleacc.lib',
801             ],
802           },
803         },{  # OS!="win"
804           'conditions': [
805             ['use_aura==0', {
806               'sources!': [
807                 'base/view_prop.cc',
808                 'base/view_prop.h',
809               ],
810             }],
811           ],
812           'sources!': [
813             'base/dragdrop/drag_drop_types.h',
814             'base/dragdrop/os_exchange_data.cc',
815           ],
816           'sources/': [
817             ['exclude', '^base/win/'],
818           ],
819         }],
820         ['OS=="mac"', {
821           'sources!': [
822             'base/dragdrop/drag_utils.cc',
823             'base/dragdrop/drag_utils.h',
824           ],
825           'link_settings': {
826             'libraries': [
827               '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
828               '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
829               '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
830             ],
831           },
832         }],
833         ['use_x11==1', {
834           'all_dependent_settings': {
835             'ldflags': [
836               '-L<(PRODUCT_DIR)',
837             ],
838             'link_settings': {
839               'libraries': [
840                 '-lX11',
841                 '-lXcursor',
842                 '-lXrender',  # For XRender* function calls in x11_util.cc.
843               ],
844             },
845           },
846           'link_settings': {
847             'libraries': [
848               '-lX11',
849               '-lXcursor',
850               '-lXrender',  # For XRender* function calls in x11_util.cc.
851             ],
852           },
853           'dependencies': [
854             '../build/linux/system.gyp:x11',
855             '../build/linux/system.gyp:xext',
856             '../build/linux/system.gyp:xfixes',
857           ],
858         }, {  # use_x11==0
859           'sources/': [
860             ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
861             ['exclude', 'base/x/*'],
862           ],
863         }],
864         ['use_ozone==0', {
865           'sources!': [
866             'base/cursor/cursor_null.cc',
867             'base/cursor/cursor_loader_null.cc',
868             'base/cursor/cursor_loader_null.h',
869           ],
870         }],
871         ['toolkit_views==0', {
872           'sources!': [
873             'base/events/event.cc',
874             'base/events/event.h',
875             'base/events/event_dispatcher.cc',
876             'base/events/event_dispatcher.h',
877             'base/events/event_handler.cc',
878             'base/events/event_handler.h',
879             'base/events/event_target.cc',
880             'base/events/event_target.h',
881             'base/x/events_x.cc',
882           ],
883         }],
884         ['OS=="android"', {
885           'sources!': [
886             'base/dragdrop/drag_utils.cc',
887             'base/dragdrop/drag_utils.h',
888             'base/touch/touch_device.cc',
889           ],
890           'dependencies': [
891             'ui_jni_headers',
892           ],
893           'include_dirs': [
894             '<(SHARED_INTERMEDIATE_DIR)/ui',
895           ],
896           'link_settings': {
897             'libraries': [
898               '-ljnigraphics',
899             ],
900           },
901         }],
902         ['OS=="android" and android_webview_build==0', {
903           'dependencies': [
904             'ui_java',
905           ],
906         }],
907         ['OS=="android" or OS=="ios"', {
908           'sources!': [
909             'gfx/render_text.cc',
910             'gfx/render_text.h',
911           ],
912         }],
913         ['OS=="linux"', {
914           'libraries': [
915             '-ldl',
916           ],
917         }],
918         ['use_system_icu==1', {
919           # When using the system icu, the icu targets generate shim headers
920           # which are included by public headers in the ui target, so we need
921           # ui to be a hard dependency for all its users.
922           'hard_dependency': 1,
923         }],
924       ],
925     },
926     {
927       'target_name': 'webui_test_support',
928       'type': 'none',
929       'direct_dependent_settings': {
930         'include_dirs': [
931           '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
932         ]
933       }
934     }
935   ],
936   'conditions': [
937     ['OS=="android"' , {
938        'targets': [
939          {
940            'target_name': 'ui_jni_headers',
941            'type': 'none',
942            'direct_dependent_settings': {
943              'include_dirs': [
944                '<(SHARED_INTERMEDIATE_DIR)/ui',
945              ],
946            },
947            'sources': [
948              'android/java/src/org/chromium/ui/Clipboard.java',
949              'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
950              'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
951              'android/java/src/org/chromium/ui/LocalizationUtils.java',
952              'android/java/src/org/chromium/ui/SelectFileDialog.java',
953              'android/java/src/org/chromium/ui/ViewAndroid.java',
954              'android/java/src/org/chromium/ui/WindowAndroid.java',
955            ],
956            'variables': {
957              'jni_gen_package': 'ui',
958            },
959            'includes': [ '../build/jni_generator.gypi' ],
960          },
961          {
962            'target_name': 'ui_java',
963            'type': 'none',
964            'variables': {
965              'java_in_dir': '../ui/android/java',
966              'has_java_resources': 1,
967              'R_package': 'org.chromium.ui',
968              'R_package_relpath': 'org/chromium/ui',
969              'java_strings_grd': 'android_ui_strings.grd',
970            },
971            'dependencies': [
972              '../base/base.gyp:base_java',
973              'window_open_disposition_java',
974            ],
975            'includes': [ '../build/java.gypi' ],
976          },
977          {
978            'target_name': 'window_open_disposition_java',
979            'type': 'none',
980            'sources': [
981              'android/java/WindowOpenDisposition.template',
982            ],
983            'variables': {
984              'package_name': 'org/chromium/ui',
985              'template_deps': ['base/window_open_disposition_list.h'],
986            },
987            'includes': [ '../build/android/java_cpp_template.gypi' ],
988          },
989        ],
990     }],
991     ['OS=="mac"', {
992       'targets': [
993         {
994           'target_name': 'ui_cocoa_third_party_toolkits',
995           'type': '<(component)',
996           'sources': [
997             # Build Apple sample code
998             '../third_party/apple_sample_code/ImageAndTextCell.h',
999             '../third_party/apple_sample_code/ImageAndTextCell.m',
1000             # Build the necessary GTM sources
1001             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
1002             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
1003             '../third_party/GTM/AppKit/GTMIBArray.h',
1004             '../third_party/GTM/AppKit/GTMIBArray.m',
1005             '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
1006             '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
1007             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
1008             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
1009             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
1010             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
1011             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
1012             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
1013             '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
1014             '../third_party/GTM/AppKit/GTMUILocalizer.h',
1015             '../third_party/GTM/AppKit/GTMUILocalizer.m',
1016             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
1017             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
1018             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
1019             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
1020             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
1021             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
1022             # MolokoCacao additions
1023             '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
1024             '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
1025             # Build necessary Mozilla sources
1026             '../third_party/mozilla/NSScreen+Utils.h',
1027             '../third_party/mozilla/NSScreen+Utils.m',
1028             '../third_party/mozilla/NSWorkspace+Utils.h',
1029             '../third_party/mozilla/NSWorkspace+Utils.m',
1030           ],
1031           'include_dirs': [
1032             '..',
1033             '../third_party/apple',
1034             '../third_party/GTM',
1035             '../third_party/GTM/AppKit',
1036             '../third_party/GTM/DebugUtils',
1037             '../third_party/GTM/Foundation',
1038           ],
1039           'link_settings': {
1040             'libraries': [
1041               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1042               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1043             ],
1044           },
1045           'conditions': [
1046             ['component=="shared_library"', {
1047               # GTM is third-party code, so we don't want to add _EXPORT
1048               # annotations to it, so build it without -fvisibility=hidden
1049               # (else the interface class symbols will be hidden in a 64bit
1050               # build). Only do this in a component build, so that the shipping
1051               # chrome binary doesn't end up with unnecessarily exported
1052               # symbols.
1053               'xcode_settings': {
1054                 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
1055               },
1056             }],
1057           ],
1058         },
1059       ],
1060     }],
1061   ],