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