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