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