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