[content shell] implement testRunner.overridePreference
[chromium-blink-merge.git] / ui / ui.gyp
blobd173184e172ffc26c55531ba33d89975d4be9ab3
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     'ui_resources.gypi',
11   ],
12   'targets': [
13     {
14       'target_name': 'ui',
15       'type': '<(component)',
16       'variables': { 'enable_wexit_time_destructors': 1, },
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/underlay_opengl_hosting_window.h',
103         'base/cocoa/underlay_opengl_hosting_window.mm',
104         'base/cocoa/window_size_constants.h',
105         'base/cocoa/window_size_constants.mm',
106         'base/cursor/cursor.cc',
107         'base/cursor/cursor.h',
108         'base/cursor/cursor_loader.h',
109         'base/cursor/cursor_loader_win.cc',
110         'base/cursor/cursor_loader_win.h',
111         'base/cursor/cursor_loader_x11.cc',
112         'base/cursor/cursor_loader_x11.h',
113         'base/cursor/cursor_win.cc',
114         'base/cursor/cursor_x11.cc',
115         'base/dialogs/base_shell_dialog.cc',
116         'base/dialogs/base_shell_dialog.h',
117         'base/dialogs/base_shell_dialog_win.cc',
118         'base/dialogs/base_shell_dialog_win.h',
119         'base/dialogs/gtk/select_file_dialog_impl.cc',
120         'base/dialogs/gtk/select_file_dialog_impl.h',
121         'base/dialogs/gtk/select_file_dialog_impl_gtk.cc',
122         'base/dialogs/gtk/select_file_dialog_impl_kde.cc',
123         'base/dialogs/select_file_dialog.cc',
124         'base/dialogs/select_file_dialog.h',
125         'base/dialogs/select_file_dialog_android.cc',
126         'base/dialogs/select_file_dialog_android.h',
127         'base/dialogs/select_file_dialog_factory.cc',
128         'base/dialogs/select_file_dialog_factory.h',
129         'base/dialogs/select_file_dialog_mac.h',
130         'base/dialogs/select_file_dialog_mac.mm',
131         'base/dialogs/select_file_dialog_win.cc',
132         'base/dialogs/select_file_dialog_win.h',
133         'base/dialogs/select_file_policy.cc',
134         'base/dialogs/select_file_policy.h',
135         'base/dialogs/selected_file_info.cc',
136         'base/dialogs/selected_file_info.h',
137         'base/dragdrop/cocoa_dnd_util.h',
138         'base/dragdrop/cocoa_dnd_util.mm',
139         'base/dragdrop/drag_drop_types.h',
140         'base/dragdrop/drag_drop_types_gtk.cc',
141         'base/dragdrop/drag_drop_types_win.cc',
142         'base/dragdrop/drag_source.cc',
143         'base/dragdrop/drag_source.h',
144         'base/dragdrop/drag_utils.cc',
145         'base/dragdrop/drag_utils.h',
146         'base/dragdrop/drag_utils_aura.cc',
147         'base/dragdrop/drag_utils_gtk.cc',
148         'base/dragdrop/drag_utils_win.cc',
149         'base/dragdrop/drop_target.cc',
150         'base/dragdrop/drop_target.h',
151         'base/dragdrop/gtk_dnd_util.cc',
152         'base/dragdrop/gtk_dnd_util.h',
153         'base/dragdrop/os_exchange_data.cc',
154         'base/dragdrop/os_exchange_data.h',
155         'base/dragdrop/os_exchange_data_provider_aura.cc',
156         'base/dragdrop/os_exchange_data_provider_aura.h',
157         'base/dragdrop/os_exchange_data_provider_gtk.cc',
158         'base/dragdrop/os_exchange_data_provider_gtk.h',
159         'base/dragdrop/os_exchange_data_provider_win.cc',
160         'base/dragdrop/os_exchange_data_provider_win.h',
161         'base/events/event.cc',
162         'base/events/event.h',
163         'base/events/event_constants.h',
164         'base/events/event_conversion_gtk.cc',
165         'base/events/event_conversion_gtk.h',
166         'base/events/event_dispatcher.cc',
167         'base/events/event_dispatcher.h',
168         'base/events/event_handler.cc',
169         'base/events/event_handler.h',
170         'base/events/event_target.cc',
171         'base/events/event_target.h',
172         'base/events/event_utils.cc',
173         'base/events/event_utils.h',
174         'base/gestures/gesture_configuration.cc',
175         'base/gestures/gesture_configuration.h',
176         'base/gestures/gesture_point.cc',
177         'base/gestures/gesture_point.h',
178         'base/gestures/gesture_recognizer.h',
179         'base/gestures/gesture_recognizer_impl.cc',
180         'base/gestures/gesture_recognizer_impl.h',
181         'base/gestures/gesture_sequence.cc',
182         'base/gestures/gesture_sequence.h',
183         'base/gestures/gesture_types.cc',
184         'base/gestures/gesture_types.h',
185         'base/gestures/gesture_util.cc',
186         'base/gestures/gesture_util.h',
187         'base/gestures/velocity_calculator.cc',
188         'base/gestures/velocity_calculator.h',
189         'base/gtk/event_synthesis_gtk.cc',
190         'base/gtk/event_synthesis_gtk.h',
191         'base/gtk/focus_store_gtk.cc',
192         'base/gtk/focus_store_gtk.h',
193         'base/gtk/g_object_destructor_filo.cc',
194         'base/gtk/g_object_destructor_filo.h',
195         'base/gtk/gtk_expanded_container.cc',
196         'base/gtk/gtk_expanded_container.h',
197         'base/gtk/gtk_floating_container.cc',
198         'base/gtk/gtk_floating_container.h',
199         'base/gtk/gtk_hig_constants.h',
200         'base/gtk/gtk_im_context_util.cc',
201         'base/gtk/gtk_im_context_util.h',
202         'base/gtk/gtk_screen_util.cc',
203         'base/gtk/gtk_screen_util.h',
204         'base/gtk/gtk_signal.h',
205         'base/gtk/gtk_signal_registrar.cc',
206         'base/gtk/gtk_signal_registrar.h',
207         'base/gtk/gtk_windowing.cc',
208         'base/gtk/gtk_windowing.h',
209         'base/gtk/menu_label_accelerator_util.cc',
210         'base/gtk/menu_label_accelerator_util.h',
211         'base/gtk/owned_widget_gtk.cc',
212         'base/gtk/owned_widget_gtk.h',
213         'base/gtk/scoped_gobject.h',
214         'base/gtk/scoped_region.cc',
215         'base/gtk/scoped_region.h',
216         'base/hit_test.h',
217         'base/keycodes/keyboard_code_conversion.cc',
218         'base/keycodes/keyboard_code_conversion.h',
219         'base/keycodes/keyboard_code_conversion_gtk.cc',
220         'base/keycodes/keyboard_code_conversion_gtk.h',
221         'base/keycodes/keyboard_code_conversion_mac.h',
222         'base/keycodes/keyboard_code_conversion_mac.mm',
223         'base/keycodes/keyboard_code_conversion_win.cc',
224         'base/keycodes/keyboard_code_conversion_win.h',
225         'base/keycodes/keyboard_code_conversion_x.cc',
226         'base/keycodes/keyboard_code_conversion_x.h',
227         'base/keycodes/keyboard_codes.h',
228         'base/keycodes/usb_keycode_map.h',
229         'base/l10n/l10n_font_util.cc',
230         'base/l10n/l10n_font_util.h',
231         'base/l10n/l10n_util.cc',
232         'base/l10n/l10n_util.h',
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.h',
245         'base/models/list_model.h',
246         'base/models/list_model_observer.h',
247         'base/models/menu_model.cc',
248         'base/models/menu_model.h',
249         'base/models/menu_model_delegate.h',
250         'base/models/menu_separator_types.h',
251         'base/models/simple_menu_model.cc',
252         'base/models/simple_menu_model.h',
253         'base/models/table_model.cc',
254         'base/models/table_model.h',
255         'base/models/table_model_observer.h',
256         'base/models/tree_model.cc',
257         'base/models/tree_model.h',
258         'base/models/tree_node_iterator.h',
259         'base/models/tree_node_model.h',
260         'base/range/range.cc',
261         'base/range/range.h',
262         'base/range/range_mac.mm',
263         'base/range/range_win.cc',
264         'base/resource/data_pack.cc',
265         'base/resource/data_pack.h',
266         'base/resource/resource_bundle.cc',
267         'base/resource/resource_bundle.h',
268         'base/resource/resource_bundle_android.cc',
269         'base/resource/resource_bundle_aurax11.cc',
270         'base/resource/resource_bundle_gtk.cc',
271         'base/resource/resource_bundle_ios.mm',
272         'base/resource/resource_bundle_mac.mm',
273         'base/resource/resource_bundle_win.cc',
274         'base/resource/resource_bundle_win.h',
275         'base/resource/resource_data_dll_win.cc',
276         'base/resource/resource_data_dll_win.h',
277         'base/resource/resource_handle.h',
278         'base/text/bytes_formatting.cc',
279         'base/text/bytes_formatting.h',
280         'base/text/text_elider.cc',
281         'base/text/text_elider.h',
282         'base/text/utf16_indexing.cc',
283         'base/text/utf16_indexing.h',
284         'base/theme_provider.cc',
285         'base/theme_provider.h',
286         'base/touch/touch_factory.cc',
287         'base/touch/touch_factory.h',
288         'base/ui_base_exports.cc',
289         'base/ui_base_paths.cc',
290         'base/ui_base_paths.h',
291         'base/ui_base_switches.cc',
292         'base/ui_base_switches.h',
293         'base/ui_base_types.h',
294         'base/ui_export.h',
295         'base/view_prop.cc',
296         'base/view_prop.h',
297         'base/win/accessibility_misc_utils.cc',
298         'base/win/accessibility_misc_utils.h',
299         'base/win/atl_module.h',
300         'base/win/dpi.cc',
301         'base/win/dpi.h',
302         'base/win/events_win.cc',
303         'base/win/extra_sdk_defines.h',
304         'base/win/foreground_helper.cc',
305         'base/win/foreground_helper.h',
306         'base/win/hidden_window.cc',
307         'base/win/hidden_window.h',
308         'base/win/hwnd_subclass.cc',
309         'base/win/hwnd_subclass.h',
310         'base/win/hwnd_util.cc',
311         'base/win/hwnd_util.h',
312         'base/win/ime_input.cc',
313         'base/win/ime_input.h',
314         'base/win/message_box_win.cc',
315         'base/win/message_box_win.h',
316         'base/win/mouse_wheel_util.cc',
317         'base/win/mouse_wheel_util.h',
318         'base/win/scoped_ole_initializer.cc',
319         'base/win/scoped_ole_initializer.h',
320         'base/win/scoped_set_map_mode.h',
321         'base/win/shell.cc',
322         'base/win/shell.h',
323         'base/win/singleton_hwnd.cc',
324         'base/win/singleton_hwnd.h',
325         'base/win/window_impl.cc',
326         'base/win/window_impl.h',
327         'base/work_area_watcher_observer.h',
328         'base/x/active_window_watcher_x.cc',
329         'base/x/active_window_watcher_x.h',
330         'base/x/active_window_watcher_x_observer.h',
331         'base/x/device_list_cache_x.cc',
332         'base/x/device_list_cache_x.h',
333         'base/x/events_x.cc',
334         'base/x/root_window_property_watcher_x.cc',
335         'base/x/root_window_property_watcher_x.h',
336         'base/x/valuators.cc',
337         'base/x/valuators.h',
338         'base/x/work_area_watcher_x.cc',
339         'base/x/work_area_watcher_x.h',
340         'base/x/x11_atom_cache.cc',
341         'base/x/x11_atom_cache.h',
342         'base/x/x11_util.cc',
343         'base/x/x11_util.h',
344         'base/x/x11_util_internal.h',
345         'gfx/android/gfx_jni_registrar.cc',
346         'gfx/android/gfx_jni_registrar.h',
347         'gfx/android/java_bitmap.cc',
348         'gfx/android/java_bitmap.h',
349         'gfx/android/window_android.cc',
350         'gfx/android/window_android.h',
351         'gfx/blit.cc',
352         'gfx/blit.h',
353         'gfx/canvas.cc',
354         'gfx/canvas.h',
355         'gfx/canvas_android.cc',
356         'gfx/canvas_mac.mm',
357         'gfx/canvas_paint.h',
358         'gfx/canvas_paint_gtk.h',
359         'gfx/canvas_paint_mac.h',
360         'gfx/canvas_paint_win.h',
361         'gfx/canvas_paint_gtk.cc',
362         'gfx/canvas_paint_mac.mm',
363         'gfx/canvas_paint_win.cc',
364         'gfx/canvas_skia.cc',
365         'gfx/canvas_skia_paint.h',
366         'gfx/codec/jpeg_codec.cc',
367         'gfx/codec/jpeg_codec.h',
368         'gfx/codec/png_codec.cc',
369         'gfx/codec/png_codec.h',
370         'gfx/color_analysis.cc',
371         'gfx/color_analysis.h',
372         'gfx/color_profile.cc',
373         'gfx/color_profile.h',
374         'gfx/color_profile_mac.cc',
375         'gfx/color_profile_win.cc',
376         'gfx/color_utils.cc',
377         'gfx/color_utils.h',
378         'gfx/display.cc',
379         'gfx/display.h',
380         'gfx/display_observer.cc',
381         'gfx/display_observer.h',
382         'gfx/favicon_size.cc',
383         'gfx/favicon_size.h',
384         'gfx/font.cc',
385         'gfx/font.h',
386         'gfx/font_fallback_win.cc',
387         'gfx/font_fallback_win.h',
388         'gfx/font_list.cc',
389         'gfx/font_list.h',
390         'gfx/font_render_params_android.cc',
391         'gfx/font_render_params_linux.cc',
392         'gfx/font_render_params_linux.h',
393         'gfx/font_smoothing_win.cc',
394         'gfx/font_smoothing_win.h',
395         'gfx/gfx_paths.cc',
396         'gfx/gfx_paths.h',
397         'gfx/image/canvas_image_source.cc',
398         'gfx/image/canvas_image_source.h',
399         'gfx/image/image.cc',
400         'gfx/image/image.h',
401         'gfx/image/image_ios.mm',
402         'gfx/image/image_mac.mm',
403         'gfx/image/image_png_rep.cc',
404         'gfx/image/image_png_rep.h',
405         'gfx/image/image_skia.cc',
406         'gfx/image/image_skia.h',
407         'gfx/image/image_skia_operations.cc',
408         'gfx/image/image_skia_operations.h',
409         'gfx/image/image_skia_rep.cc',
410         'gfx/image/image_skia_rep.h',
411         'gfx/image/image_skia_source.h',
412         'gfx/image/image_skia_util_ios.h',
413         'gfx/image/image_skia_util_ios.mm',
414         'gfx/image/image_skia_util_mac.h',
415         'gfx/image/image_skia_util_mac.mm',
416         'gfx/image/image_util.cc',
417         'gfx/image/image_util.h',
418         'gfx/image/image_util_ios.mm',
419         'gfx/insets.cc',
420         'gfx/insets.h',
421         'gfx/insets_base.h',
422         'gfx/insets_f.cc',
423         'gfx/insets_f.h',
424         'gfx/interpolated_transform.cc',
425         'gfx/interpolated_transform.h',
426         'gfx/mac/nsimage_cache.h',
427         'gfx/mac/nsimage_cache.mm',
428         'gfx/mac/scoped_ns_disable_screen_updates.h',
429         'gfx/native_widget_types.h',
430         'gfx/pango_util.cc',
431         'gfx/pango_util.h',
432         'gfx/path.cc',
433         'gfx/path.h',
434         'gfx/path_aura.cc',
435         'gfx/path_gtk.cc',
436         'gfx/path_win.cc',
437         'gfx/path_win.h',
438         'gfx/platform_font.h',
439         'gfx/platform_font_android.cc',
440         'gfx/platform_font_ios.h',
441         'gfx/platform_font_ios.mm',
442         'gfx/platform_font_mac.h',
443         'gfx/platform_font_mac.mm',
444         'gfx/platform_font_pango.cc',
445         'gfx/platform_font_pango.h',
446         'gfx/platform_font_win.cc',
447         'gfx/platform_font_win.h',
448         'gfx/point.cc',
449         'gfx/point.h',
450         'gfx/point3_f.cc',
451         'gfx/point3_f.h',
452         'gfx/point_base.h',
453         'gfx/point_conversions.cc',
454         'gfx/point_conversions.h',
455         'gfx/point_f.cc',
456         'gfx/point_f.h',
457         'gfx/quad_f.cc',
458         'gfx/quad_f.h',
459         'gfx/rect.cc',
460         'gfx/rect.h',
461         'gfx/rect_base.h',
462         'gfx/rect_base_impl.h',
463         'gfx/rect_conversions.cc',
464         'gfx/rect_conversions.h',
465         'gfx/rect_f.cc',
466         'gfx/rect_f.h',
467         'gfx/render_text.cc',
468         'gfx/render_text.h',
469         'gfx/render_text_linux.cc',
470         'gfx/render_text_linux.h',
471         'gfx/render_text_mac.cc',
472         'gfx/render_text_mac.h',
473         'gfx/render_text_win.cc',
474         'gfx/render_text_win.h',
475         'gfx/safe_integer_conversions.h',
476         'gfx/scoped_cg_context_save_gstate_mac.h',
477         'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
478         'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
479         'gfx/scoped_ui_graphics_push_context_ios.h',
480         'gfx/scoped_ui_graphics_push_context_ios.mm',
481         'gfx/screen.cc',
482         'gfx/screen.h',
483         'gfx/screen_android.cc',
484         'gfx/screen_aura.cc',
485         'gfx/screen_gtk.cc',
486         'gfx/screen_ios.mm',
487         'gfx/screen_mac.mm',
488         'gfx/screen_win.cc',
489         'gfx/screen_win.h',
490         'gfx/scrollbar_size.cc',
491         'gfx/scrollbar_size.h',
492         'gfx/selection_model.cc',
493         'gfx/selection_model.h',
494         'gfx/shadow_value.cc',
495         'gfx/shadow_value.h',
496         'gfx/size.cc',
497         'gfx/size.h',
498         'gfx/size_base.h',
499         'gfx/size_conversions.cc',
500         'gfx/size_conversions.h',
501         'gfx/size_f.cc',
502         'gfx/size_f.h',
503         'gfx/skbitmap_operations.cc',
504         'gfx/skbitmap_operations.h',
505         'gfx/skia_util.cc',
506         'gfx/skia_util.h',
507         'gfx/skia_utils_gtk.cc',
508         'gfx/skia_utils_gtk.h',
509         'gfx/switches.cc',
510         'gfx/switches.h',
511         'gfx/sys_color_change_listener.cc',
512         'gfx/sys_color_change_listener.h',
513         'gfx/text_constants.h',
514         'gfx/text_utils.cc',
515         'gfx/text_utils.h',
516         'gfx/transform.cc',
517         'gfx/transform.h',
518         'gfx/transform_util.cc',
519         'gfx/transform_util.h',
520         'gfx/vector2d.cc',
521         'gfx/vector2d.h',
522         'gfx/vector2d_conversions.cc',
523         'gfx/vector2d_conversions.h',
524         'gfx/vector2d_f.cc',
525         'gfx/vector2d_f.h',
526         'gfx/vector3d_f.cc',
527         'gfx/vector3d_f.h',
528         'gfx/video_decode_acceleration_support_mac.h',
529         'gfx/video_decode_acceleration_support_mac.mm',
530         'notifications/notification_types.h',
531         'notifications/notification_types.cc',
532         'ui_controls/ui_controls.h',
533         'ui_controls/ui_controls_aura.cc',
534         'ui_controls/ui_controls_gtk.cc',
535         'ui_controls/ui_controls_internal_win.cc',
536         'ui_controls/ui_controls_internal_win.h',
537         'ui_controls/ui_controls_mac.mm',
538         'ui_controls/ui_controls_win.cc',
539       ],
540       'target_conditions': [
541         ['OS == "ios"', {
542           'sources/': [
543             ['include', '^base/l10n/l10n_util_mac\\.mm$'],
544           ],
545         }],
546       ],
547       'conditions': [
548         ['OS!="ios"', {
549           'includes': [
550             'base/ime/ime.gypi',
551           ],
552           'dependencies': [
553             '<(libjpeg_gyp_path):libjpeg',
554           ],
555         }, {  # OS=="ios"
556           # iOS only uses a subset of UI.
557           'sources/': [
558             ['exclude', '\\.(cc|mm)$'],
559             ['include', '_ios\\.(cc|mm)$'],
560             ['include', '(^|/)ios/'],
561             ['include', '^gfx/'],
562             ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
563             ['exclude', '^gfx/pango_util\\.'],
564             ['exclude', '^gfx/platform_font_pango\\.'],
565             ['include', '^base/animation/'],
566             ['include', '^base/l10n/'],
567             ['include', '^base/layout'],
568             ['include', '^base/range/'],
569             ['include', '^base/resource/'],
570             ['include', '^base/text/text_elider\\.'],
571             ['include', '^base/ui_base_'],
572           ],
573           'link_settings': {
574             'libraries': [
575               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
576             ],
577           },
578         }],
579         # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
580         #                  http://crbug.com/105550
581         ['use_canvas_skia==1', {
582           'sources!': [
583             'gfx/canvas_android.cc',
584             'gfx/canvas_mac.mm',
585           ],
586         }, {  # use_canvas_skia!=1
587           'sources!': [
588             'gfx/canvas_skia.cc',
589           ],
590         }],
591         ['use_aura==1', {
592           'sources/': [
593             ['exclude', 'gfx/gtk_'],
594             ['exclude', 'gfx/gtk_util.cc'],
595             ['exclude', 'gfx/gtk_util.h'],
596             ['exclude', 'gfx/screen_gtk.cc'],
597             ['exclude', 'base/dialogs/select_file_dialog_mac.mm'],
598             ['exclude', 'base/dialogs/select_file_dialog_win.cc'],
599             ['exclude', 'base/work_area_watcher_observer.h'],
600             ['exclude', 'base/x/active_window_watcher_x.cc'],
601             ['exclude', 'base/x/active_window_watcher_x.h'],
602             ['exclude', 'base/x/active_window_watcher_x_observer.h'],
603             ['exclude', 'base/x/root_window_property_watcher_x.cc'],
604             ['exclude', 'base/x/root_window_property_watcher_x.h'],
605             ['exclude', 'base/x/work_area_watcher_x.cc'],
606             ['exclude', 'base/x/work_area_watcher_x.h'],
607             ['exclude', 'ui_controls_win.cc'],
608            ],
609         }, {  # use_aura!=1
610           'sources!': [
611             'base/cursor/cursor.cc',
612             'base/cursor/cursor.h',
613             'base/cursor/cursor_loader_x11.cc',
614             'base/cursor/cursor_loader_x11.h',
615             'base/cursor/cursor_win.cc',
616             'base/cursor/cursor_x11.cc',
617           ]
618         }],
619         ['use_aura==1 and OS=="win"', {
620           'sources/': [
621             ['exclude', 'base/dragdrop/os_exchange_data_provider_aura.cc'],
622             ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
623           ],
624         }],
625         ['use_aura==0 and toolkit_views==0', {
626           'sources/': [
627             ['exclude', '^base/gestures/*'],
628           ]
629         }],
630         ['use_aura==1 and use_ash==0 and OS=="linux"', {
631           'sources': [
632             'base/linux_ui.cc',
633             'base/linux_ui.h',
634           ]
635         }],
636         ['use_ibus==1', {
637           'dependencies': [
638             '../build/linux/system.gyp:ibus',
639           ],
640         }],
641         ['use_glib == 1', {
642           'dependencies': [
643             # font_gtk.cc uses fontconfig.
644             '../build/linux/system.gyp:fontconfig',
645             '../build/linux/system.gyp:glib',
646             '../build/linux/system.gyp:pangocairo',
647             '../build/linux/system.gyp:x11',
648             '../build/linux/system.gyp:xext',
649             '../build/linux/system.gyp:xfixes',
650           ],
651           'link_settings': {
652             'libraries': [
653               '-lXcursor',  # For XCursor* function calls in x11_util.cc.
654               '-lXrender',  # For XRender* function calls in x11_util.cc.
655               '-lXrandr',   # For XRR* function calls in x11_util.cc.
656             ],
657           },
658           'conditions': [
659             ['toolkit_views==0', {
660               # Note: because of gyp predence rules this has to be defined as
661               # 'sources/' rather than 'sources!'.
662               'sources/': [
663                 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'],
664                 ['exclude', '^base/dragdrop/drag_utils_gtk.cc'],
665                 ['exclude', '^base/dragdrop/drag_utils.cc'],
666                 ['exclude', '^base/dragdrop/drag_utils.h'],
667                 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
668                 ['exclude', '^base/dragdrop/os_exchange_data.h'],
669                 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.cc'],
670                 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.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', {
697           'sources!': [
698             'base/clipboard/clipboard_aurax11.cc',
699           ],
700         }],
701         ['OS=="win"', {
702           'sources': [
703             'gfx/gdi_util.cc',
704             'gfx/gdi_util.h',
705             'gfx/icon_util.cc',
706             'gfx/icon_util.h',
707             'base/touch/touch_device_win.cc',
708             'base/touch/touch_device_win.h',
709           ],
710           'sources!': [
711             'base/touch/touch_factory.cc',
712             'base/touch/touch_factory.h',
713             'gfx/pango_util.h',
714             'gfx/pango_util.cc',
715             'gfx/platform_font_pango.cc',
716             'gfx/platform_font_pango.h',
717           ],
718           'include_dirs': [
719             '../',
720             '../third_party/wtl/include',
721           ],
722           'msvs_settings': {
723             'VCLinkerTool': {
724               'DelayLoadDLLs': [
725                 'd2d1.dll',
726                 'd3d10_1.dll',
727                 'dwmapi.dll',
728               ],
729               'AdditionalDependencies': [
730                 'd2d1.lib',
731                 'd3d10_1.lib',
732                 'dwmapi.lib',
733               ],
734             },
735           },
736           'link_settings': {
737             'libraries': [
738               '-limm32.lib',
739               '-ld2d1.lib',
740               '-ldwmapi.lib',
741               '-loleacc.lib',
742             ],
743           },
744         },{  # OS!="win"
745           'conditions': [
746             ['use_aura==0', {
747               'sources!': [
748                 'base/view_prop.cc',
749                 'base/view_prop.h',
750               ],
751             }],
752           ],
753           'sources!': [
754             'base/dragdrop/drag_source.cc',
755             'base/dragdrop/drag_source.h',
756             'base/dragdrop/drag_drop_types.h',
757             'base/dragdrop/drop_target.cc',
758             'base/dragdrop/drop_target.h',
759             'base/dragdrop/os_exchange_data.cc',
760           ],
761           'sources/': [
762             ['exclude', '^base/win/*'],
763           ],
764         }],
765         ['OS=="mac"', {
766           'sources!': [
767             'base/dragdrop/drag_utils.cc',
768             'base/dragdrop/drag_utils.h',
769             'base/touch/touch_factory.cc',
770             'base/touch/touch_factory.h',
771             'gfx/pango_util.h',
772             'gfx/pango_util.cc',
773             'gfx/platform_font_pango.h',
774             'gfx/platform_font_pango.cc',
775           ],
776           'link_settings': {
777             'libraries': [
778               '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
779               '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
780               '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
781             ],
782           },
783         }],
784         ['use_x11==1', {
785           'all_dependent_settings': {
786             'ldflags': [
787               '-L<(PRODUCT_DIR)',
788             ],
789             'link_settings': {
790               'libraries': [
791                 '-lX11',
792                 '-lXcursor',
793                 '-lXrandr',  # For XRR* function calls in x11_util.cc.
794               ],
795             },
796           },
797         }, {  # use_x11==0
798           'sources/': [
799             ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
800             ['exclude', 'base/x/*'],
801           ],
802         }],
803         ['toolkit_views==0', {
804           'sources!': [
805             'base/events/event.cc',
806             'base/events/event.h',
807             'base/events/event_dispatcher.cc',
808             'base/events/event_dispatcher.h',
809             'base/events/event_handler.cc',
810             'base/events/event_handler.h',
811             'base/events/event_target.cc',
812             'base/events/event_target.h',
813             'base/x/events_x.cc',
814           ],
815         }],
816         ['OS=="android"', {
817           'sources!': [
818             'base/dragdrop/drag_utils.cc',
819             'base/dragdrop/drag_utils.h',
820             'base/touch/touch_factory.cc',
821             'base/touch/touch_factory.h',
822             'gfx/pango_util.cc',
823             'gfx/pango_util.h',
824             'gfx/platform_font_pango.cc',
825             'gfx/platform_font_pango.h',
826           ],
827           'dependencies': [
828             'ui_jni_headers',
829           ],
830           'include_dirs': [
831             '<(SHARED_INTERMEDIATE_DIR)/ui',
832           ],
833           'link_settings': {
834             'libraries': [
835               '-ljnigraphics',
836             ],
837           },
838         }],
839         ['OS=="android" and android_build_type==0', {
840           'dependencies': [
841             'ui_java',
842           ],
843         }],
844         ['OS=="android" or OS=="ios"', {
845           'sources!': [
846             'gfx/render_text.cc',
847             'gfx/render_text.h',
848           ],
849         }],
850         ['OS=="linux"', {
851           'libraries': [
852             '-ldl',
853           ],
854         }],
855         ['inside_chromium_build==0', {
856           'dependencies': [
857             '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers',
858           ],
859         }],
860       ],
861     },
862   ],
863   'conditions': [
864     ['inside_chromium_build == 1', {
865       'includes': [
866         'ui_unittests.gypi',
867       ]},
868     ],
869     ['OS=="android"' , {
870        'targets': [
871          {
872            'target_name': 'ui_jni_headers',
873            'type': 'none',
874            'sources': [
875              'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
876              'android/java/src/org/chromium/ui/gfx/NativeWindow.java',
877              'android/java/src/org/chromium/ui/SelectFileDialog.java',
878            ],
879            'variables': {
880              'jni_gen_dir': 'ui',
881            },
882            'includes': [ '../build/jni_generator.gypi' ],
883          },
884          {
885            'target_name': 'ui_java',
886            'type': 'none',
887            'variables': {
888              'package_name': 'ui',
889              'java_in_dir': '../ui/android/java',
890              'has_java_resources': 1,
891              'R_package': 'org.chromium.ui',
892              'R_package_relpath': 'org/chromium/ui',
893            },
894            'dependencies': [
895              '../base/base.gyp:base_java',
896            ],
897            'includes': [ '../build/java.gypi' ],
898          },
899        ],
900     }],
901   ],