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