Don't consider a Bluetooth adapter present until it has an address.
[chromium-blink-merge.git] / ui / ui.gyp
blob167657c27bbbc2efbb1fe1c2cfad00b1ae1ea49a
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'includes': [
10     'ui_resources.gypi',
11   ],
12   'targets': [
13     {
14       'target_name': 'ui',
15       'type': '<(component)',
16       'variables': { 'enable_wexit_time_destructors': 1, },
17       'dependencies': [
18         '../base/base.gyp:base',
19         '../base/base.gyp:base_i18n',
20         '../base/base.gyp:base_static',
21         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
22         '../build/temp_gyp/googleurl.gyp:googleurl',
23         '../net/net.gyp:net',
24         '../skia/skia.gyp:skia',
25         '../third_party/icu/icu.gyp:icui18n',
26         '../third_party/icu/icu.gyp:icuuc',
27         '../third_party/libpng/libpng.gyp:libpng',
28         '../third_party/zlib/zlib.gyp:zlib',
29         'base/strings/ui_strings.gyp:ui_strings',
30         'ui_resources',
31       ],
32       'defines': [
33         'UI_IMPLEMENTATION',
34       ],
35       # Export these dependencies since text_elider.h includes ICU headers.
36       'export_dependent_settings': [
37         '../net/net.gyp:net',
38         '../third_party/icu/icu.gyp:icui18n',
39         '../third_party/icu/icu.gyp:icuuc',
40       ],
41       # iOS uses a small subset of ui. common_sources are the only files that
42       # are built on iOS.
43       'common_sources' : [
44         'base/models/tree_node_iterator.h',
45         'base/models/tree_node_model.h',
46         'base/ui_base_paths.cc',
47         'base/ui_base_paths.h',
48         'base/ui_base_switches.cc',
49         'base/ui_base_switches.h',
50         'base/ui_export.h',
51         'gfx/insets.cc',
52         'gfx/insets.h',
53         'gfx/point.cc',
54         'gfx/point.h',
55         'gfx/point_base.h',
56         'gfx/point3.h',
57         'gfx/rect.cc',
58         'gfx/rect.h',
59         'gfx/rect_base.h',
60         'gfx/rect_base_impl.h',
61         'gfx/scoped_ui_graphics_push_context_ios.h',
62         'gfx/scoped_ui_graphics_push_context_ios.mm',
63         'gfx/screen.h',
64         'gfx/screen_android.cc',
65         'gfx/screen_aura.cc',
66         'gfx/screen_gtk.cc',
67         'gfx/screen_impl.h',
68         'gfx/screen_ios.mm',
69         'gfx/screen_mac.mm',
70         'gfx/screen_win.cc',
71         'gfx/size.cc',
72         'gfx/size.h',
73         'gfx/size_base.h',
74         'gfx/size_base_impl.h',
75       ],
76       'all_sources': [
77         '<@(_common_sources)',
78         'base/accelerators/accelerator.cc',
79         'base/accelerators/accelerator.h',
80         'base/accelerators/accelerator_cocoa.h',
81         'base/accelerators/accelerator_cocoa.mm',
82         'base/accelerators/accelerator_gtk.cc',
83         'base/accelerators/accelerator_gtk.h',
84         'base/accelerators/accelerator_manager.cc',
85         'base/accelerators/accelerator_manager.h',
86         'base/accessibility/accessibility_types.h',
87         'base/accessibility/accessible_text_utils.cc',
88         'base/accessibility/accessible_text_utils.h',
89         'base/accessibility/accessible_view_state.cc',
90         'base/accessibility/accessible_view_state.h',
91         'base/animation/animation.cc',
92         'base/animation/animation.h',
93         'base/animation/animation_container.cc',
94         'base/animation/animation_container.h',
95         'base/animation/animation_container_element.h',
96         'base/animation/animation_container_observer.h',
97         'base/animation/animation_delegate.h',
98         'base/animation/linear_animation.cc',
99         'base/animation/linear_animation.h',
100         'base/animation/multi_animation.cc',
101         'base/animation/multi_animation.h',
102         'base/animation/slide_animation.cc',
103         'base/animation/slide_animation.h',
104         'base/animation/throb_animation.cc',
105         'base/animation/throb_animation.h',
106         'base/animation/tween.cc',
107         'base/animation/tween.h',
108         'base/clipboard/clipboard.cc',
109         'base/clipboard/clipboard.h',
110         'base/clipboard/clipboard_android.cc',
111         'base/clipboard/clipboard_aurax11.cc',
112         'base/clipboard/clipboard_gtk.cc',
113         'base/clipboard/clipboard_mac.mm',
114         'base/clipboard/clipboard_util_win.cc',
115         'base/clipboard/clipboard_util_win.h',
116         'base/clipboard/clipboard_win.cc',
117         'base/clipboard/custom_data_helper.cc',
118         'base/clipboard/custom_data_helper.h',
119         'base/clipboard/custom_data_helper_mac.mm',
120         'base/clipboard/custom_data_helper_x.cc',
121         'base/clipboard/scoped_clipboard_writer.cc',
122         'base/clipboard/scoped_clipboard_writer.h',
123         'base/cocoa/base_view.h',
124         'base/cocoa/base_view.mm',
125         'base/cocoa/events_mac.mm',
126         'base/cocoa/find_pasteboard.h',
127         'base/cocoa/find_pasteboard.mm',
128         'base/cocoa/focus_tracker.h',
129         'base/cocoa/focus_tracker.mm',
130         'base/cocoa/fullscreen_window_manager.h',
131         'base/cocoa/fullscreen_window_manager.mm',
132         'base/cocoa/nib_loading.h',
133         'base/cocoa/nib_loading.mm',
134         'base/cocoa/underlay_opengl_hosting_window.h',
135         'base/cocoa/underlay_opengl_hosting_window.mm',
136         'base/cocoa/window_size_constants.h',
137         'base/cocoa/window_size_constants.mm',
138         'base/cursor/cursor.cc',
139         'base/cursor/cursor.h',
140         'base/cursor/cursor_win.cc',
141         'base/cursor/cursor_x11.cc',
142         'base/dialogs/base_shell_dialog.cc',
143         'base/dialogs/base_shell_dialog.h',
144         'base/dialogs/base_shell_dialog_win.cc',
145         'base/dialogs/base_shell_dialog_win.h',
146         'base/dialogs/gtk/select_file_dialog_impl.cc',
147         'base/dialogs/gtk/select_file_dialog_impl.h',
148         'base/dialogs/gtk/select_file_dialog_impl_gtk.cc',
149         'base/dialogs/gtk/select_file_dialog_impl_kde.cc',
150         'base/dialogs/select_file_dialog.cc',
151         'base/dialogs/select_file_dialog.h',
152         'base/dialogs/select_file_dialog_factory.cc',
153         'base/dialogs/select_file_dialog_factory.h',
154         'base/dialogs/select_file_dialog_mac.h',
155         'base/dialogs/select_file_dialog_mac.mm',
156         'base/dialogs/select_file_dialog_win.cc',
157         'base/dialogs/select_file_dialog_win.h',
158         'base/dialogs/select_file_policy.cc',
159         'base/dialogs/select_file_policy.h',
160         'base/dialogs/selected_file_info.cc',
161         'base/dialogs/selected_file_info.h',
162         'base/dragdrop/cocoa_dnd_util.h',
163         'base/dragdrop/cocoa_dnd_util.mm',
164         'base/dragdrop/drag_drop_types_gtk.cc',
165         'base/dragdrop/drag_drop_types.h',
166         'base/dragdrop/drag_drop_types_win.cc',
167         'base/dragdrop/drag_source.cc',
168         'base/dragdrop/drag_source.h',
169         'base/dragdrop/drop_target.cc',
170         'base/dragdrop/drop_target.h',
171         'base/dragdrop/drag_utils.cc',
172         'base/dragdrop/drag_utils.h',
173         'base/dragdrop/drag_utils_aura.cc',
174         'base/dragdrop/drag_utils_gtk.cc',
175         'base/dragdrop/drag_utils_win.cc',
176         'base/dragdrop/gtk_dnd_util.cc',
177         'base/dragdrop/gtk_dnd_util.h',
178         'base/dragdrop/os_exchange_data.cc',
179         'base/dragdrop/os_exchange_data.h',
180         'base/dragdrop/os_exchange_data_provider_aura.cc',
181         'base/dragdrop/os_exchange_data_provider_aura.h',
182         'base/dragdrop/os_exchange_data_provider_gtk.cc',
183         'base/dragdrop/os_exchange_data_provider_gtk.h',
184         'base/dragdrop/os_exchange_data_provider_win.cc',
185         'base/dragdrop/os_exchange_data_provider_win.h',
186         'base/events/event.cc',
187         'base/events/event.h',
188         'base/events/event_constants.h',
189         'base/events/event_dispatcher.cc',
190         'base/events/event_dispatcher.h',
191         'base/events/event_handler.h',
192         'base/events/event_target.cc',
193         'base/events/event_target.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_im_context_util.cc',
220         'base/gtk/gtk_im_context_util.h',
221         'base/gtk/gtk_hig_constants.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/menu_label_accelerator_util.cc',
230         'base/gtk/menu_label_accelerator_util.h',
231         'base/gtk/owned_widget_gtk.cc',
232         'base/gtk/owned_widget_gtk.h',
233         'base/gtk/scoped_gobject.h',
234         'base/gtk/scoped_region.cc',
235         'base/gtk/scoped_region.h',
236         'base/hit_test.h',
237         'base/keycodes/keyboard_code_conversion.cc',
238         'base/keycodes/keyboard_code_conversion.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/l10n/l10n_font_util.cc',
250         'base/l10n/l10n_font_util.h',
251         'base/l10n/l10n_util.cc',
252         'base/l10n/l10n_util.h',
253         'base/l10n/l10n_util_collator.h',
254         'base/l10n/l10n_util_mac.h',
255         'base/l10n/l10n_util_mac.mm',
256         'base/l10n/l10n_util_posix.cc',
257         'base/l10n/l10n_util_win.cc',
258         'base/l10n/l10n_util_win.h',
259         'base/layout.cc',
260         'base/layout.h',
261         'base/layout_mac.mm',
262         'base/models/button_menu_item_model.cc',
263         'base/models/button_menu_item_model.h',
264         'base/models/combobox_model.h',
265         'base/models/list_model.h',
266         'base/models/list_model_observer.h',
267         'base/models/menu_model.cc',
268         'base/models/menu_model.h',
269         'base/models/menu_model_delegate.h',
270         'base/models/menu_separator_types.h',
271         'base/models/simple_menu_model.cc',
272         'base/models/simple_menu_model.h',
273         'base/models/table_model.cc',
274         'base/models/table_model.h',
275         'base/models/table_model_observer.h',
276         'base/models/tree_model.cc',
277         'base/models/tree_model.h',
278         'base/native_theme/native_theme.cc',
279         'base/native_theme/native_theme.h',
280         'base/native_theme/native_theme_android.cc',
281         'base/native_theme/native_theme_android.h',
282         'base/native_theme/native_theme_aura.cc',
283         'base/native_theme/native_theme_aura.h',
284         'base/native_theme/native_theme_base.cc',
285         'base/native_theme/native_theme_base.h',
286         'base/native_theme/native_theme_gtk.cc',
287         'base/native_theme/native_theme_gtk.h',
288         'base/native_theme/native_theme_win.cc',
289         'base/native_theme/native_theme_win.h',
290         'base/range/range.cc',
291         'base/range/range.h',
292         'base/range/range_mac.mm',
293         'base/range/range_win.cc',
294         'base/resource/data_pack.cc',
295         'base/resource/data_pack.h',
296         'base/resource/resource_bundle.cc',
297         'base/resource/resource_bundle.h',
298         'base/resource/resource_bundle_android.cc',
299         'base/resource/resource_bundle_aurax11.cc',
300         'base/resource/resource_bundle_gtk.cc',
301         'base/resource/resource_bundle_mac.mm',
302         'base/resource/resource_bundle_win.cc',
303         'base/resource/resource_bundle_win.h',
304         'base/resource/resource_data_dll_win.cc',
305         'base/resource/resource_data_dll_win.h',
306         'base/resource/resource_handle.h',
307         'base/text/bytes_formatting.cc',
308         'base/text/bytes_formatting.h',
309         'base/text/text_elider.cc',
310         'base/text/text_elider.h',
311         'base/text/utf16_indexing.cc',
312         'base/text/utf16_indexing.h',
313         'base/theme_provider.cc',
314         'base/theme_provider.h',
315         'base/touch/touch_factory.cc',
316         'base/touch/touch_factory.h',
317         'base/ui_base_exports.cc',
318         'base/ui_base_types.h',
319         'base/view_prop.cc',
320         'base/view_prop.h',
321         'base/win/accessibility_misc_utils.h',
322         'base/win/accessibility_misc_utils.cc',
323         'base/win/atl_module.h',
324         'base/win/dpi.cc',
325         'base/win/dpi.h',
326         'base/win/events_win.cc',
327         'base/win/extra_sdk_defines.h',
328         'base/win/foreground_helper.cc',
329         'base/win/foreground_helper.h',
330         'base/win/hidden_window.cc',
331         'base/win/hidden_window.h',
332         'base/win/hwnd_util.cc',
333         'base/win/hwnd_util.h',
334         'base/win/hwnd_subclass.cc',
335         'base/win/hwnd_subclass.h',
336         'base/win/ime_input.cc',
337         'base/win/ime_input.h',
338         'base/win/message_box_win.cc',
339         'base/win/message_box_win.h',
340         'base/win/mouse_wheel_util.cc',
341         'base/win/mouse_wheel_util.h',
342         'base/win/scoped_ole_initializer.cc',
343         'base/win/scoped_ole_initializer.h',
344         'base/win/scoped_set_map_mode.h',
345         'base/win/shell.cc',
346         'base/win/shell.h',
347         'base/win/singleton_hwnd.cc',
348         'base/win/singleton_hwnd.h',
349         'base/win/tsf_bridge.cc',
350         'base/win/tsf_bridge.h',
351         'base/win/tsf_text_store.cc',
352         'base/win/tsf_text_store.h',
353         'base/win/window_impl.cc',
354         'base/win/window_impl.h',
355         'base/work_area_watcher_observer.h',
356         'base/x/active_window_watcher_x.cc',
357         'base/x/active_window_watcher_x.h',
358         'base/x/active_window_watcher_x_observer.h',
359         'base/x/events_x.cc',
360         'base/x/root_window_property_watcher_x.cc',
361         'base/x/root_window_property_watcher_x.h',
362         'base/x/valuators.cc',
363         'base/x/valuators.h',
364         'base/x/work_area_watcher_x.cc',
365         'base/x/work_area_watcher_x.h',
366         'base/x/x11_util.cc',
367         'base/x/x11_util.h',
368         'base/x/x11_util_internal.h',
369         'gfx/android/gfx_jni_registrar.cc',
370         'gfx/android/gfx_jni_registrar.h',
371         'gfx/android/java_bitmap.cc',
372         'gfx/android/java_bitmap.h',
373         'gfx/blit.cc',
374         'gfx/blit.h',
375         'gfx/canvas.cc',
376         'gfx/canvas.h',
377         'gfx/canvas_android.cc',
378         'gfx/canvas_mac.mm',
379         'gfx/canvas_paint.h',
380         'gfx/canvas_paint_win.cc',
381         'gfx/canvas_skia.cc',
382         'gfx/canvas_skia_paint.h',
383         'gfx/codec/jpeg_codec.cc',
384         'gfx/codec/jpeg_codec.h',
385         'gfx/codec/png_codec.cc',
386         'gfx/codec/png_codec.h',
387         'gfx/color_analysis.cc',
388         'gfx/color_analysis.h',
389         'gfx/color_profile.cc',
390         'gfx/color_profile.h',
391         'gfx/color_profile_mac.cc',
392         'gfx/color_profile_win.cc',
393         'gfx/color_utils.cc',
394         'gfx/color_utils.h',
395         'gfx/display.cc',
396         'gfx/display.h',
397         'gfx/favicon_size.cc',
398         'gfx/favicon_size.h',
399         'gfx/font.h',
400         'gfx/font.cc',
401         'gfx/font_fallback_win.cc',
402         'gfx/font_fallback_win.h',
403         'gfx/font_list.h',
404         'gfx/font_list.cc',
405         'gfx/font_render_params_android.cc',
406         'gfx/font_render_params_linux.cc',
407         'gfx/font_render_params_linux.h',
408         'gfx/font_smoothing_win.cc',
409         'gfx/font_smoothing_win.h',
410         'gfx/gfx_paths.cc',
411         'gfx/gfx_paths.h',
412         'gfx/image/canvas_image_source.cc',
413         'gfx/image/canvas_image_source.h',
414         'gfx/image/image.cc',
415         'gfx/image/image.h',
416         'gfx/image/image_mac.mm',
417         'gfx/image/image_skia.cc',
418         'gfx/image/image_skia.h',
419         'gfx/image/image_skia_operations.cc',
420         'gfx/image/image_skia_operations.h',
421         'gfx/image/image_skia_rep.cc',
422         'gfx/image/image_skia_rep.h',
423         'gfx/image/image_skia_source.h',
424         'gfx/image/image_skia_util_mac.h',
425         'gfx/image/image_skia_util_mac.mm',
426         'gfx/image/image_util.cc',
427         'gfx/image/image_util.h',
428         'gfx/interpolated_transform.h',
429         'gfx/interpolated_transform.cc',
430         'gfx/mac/nsimage_cache.h',
431         'gfx/mac/nsimage_cache.mm',
432         'gfx/mac/scoped_ns_disable_screen_updates.h',
433         'gfx/native_widget_types.h',
434         'gfx/pango_util.h',
435         'gfx/pango_util.cc',
436         'gfx/path.cc',
437         'gfx/path.h',
438         'gfx/path_aura.cc',
439         'gfx/path_gtk.cc',
440         'gfx/path_win.cc',
441         'gfx/platform_font.h',
442         'gfx/platform_font_android.cc',
443         'gfx/platform_font_ios.h',
444         'gfx/platform_font_ios.mm',
445         'gfx/platform_font_mac.h',
446         'gfx/platform_font_mac.mm',
447         'gfx/platform_font_pango.h',
448         'gfx/platform_font_pango.cc',
449         'gfx/platform_font_win.h',
450         'gfx/platform_font_win.cc',
451         'gfx/point_f.cc',
452         'gfx/point_f.h',
453         'gfx/rect_f.cc',
454         'gfx/rect_f.h',
455         'gfx/render_text.cc',
456         'gfx/render_text.h',
457         'gfx/render_text_mac.cc',
458         'gfx/render_text_mac.h',
459         'gfx/render_text_linux.cc',
460         'gfx/render_text_linux.h',
461         'gfx/render_text_win.cc',
462         'gfx/render_text_win.h',
463         'gfx/scoped_cg_context_save_gstate_mac.h',
464         'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
465         'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
466         'gfx/scrollbar_size.cc',
467         'gfx/scrollbar_size.h',
468         'gfx/selection_model.cc',
469         'gfx/selection_model.h',
470         'gfx/shadow_value.cc',
471         'gfx/shadow_value.h',
472         'gfx/size_f.cc',
473         'gfx/size_f.h',
474         'gfx/skbitmap_operations.cc',
475         'gfx/skbitmap_operations.h',
476         'gfx/skia_util.cc',
477         'gfx/skia_util.h',
478         'gfx/skia_utils_gtk.cc',
479         'gfx/skia_utils_gtk.h',
480         'gfx/sys_color_change_listener.cc',
481         'gfx/sys_color_change_listener.h',
482         'gfx/text_constants.h',
483         'gfx/transform.cc',
484         'gfx/transform.h',
485         'gfx/transform_util.cc',
486         'gfx/transform_util.h',
487         'gfx/video_decode_acceleration_support_mac.h',
488         'gfx/video_decode_acceleration_support_mac.mm',
489         'ui_controls/ui_controls.h',
490         'ui_controls/ui_controls_aura.cc',
491         'ui_controls/ui_controls_internal_win.h',
492         'ui_controls/ui_controls_internal_win.cc',
493         'ui_controls/ui_controls_gtk.cc',
494         'ui_controls/ui_controls_mac.mm',
495         'ui_controls/ui_controls_win.cc',
496       ],
497       'conditions': [
498         ['OS!="ios"', {
499           'sources' : ['<@(_all_sources)'],
500           'includes': [
501             'base/ime/ime.gypi',
502           ],
503           'dependencies': [
504             '<(libjpeg_gyp_path):libjpeg',
505           ],
506         }, {  # OS=="ios"
507           'sources' : ['<@(_common_sources)'],
508         }],
509         # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
510         #                  http://crbug.com/105550
511         ['use_canvas_skia==1', {
512           'sources!': [
513             'gfx/canvas_android.cc',
514             'gfx/canvas_mac.mm',
515           ],
516         }, {  # use_canvas_skia!=1
517           'sources!': [
518             'gfx/canvas_skia.cc',
519           ],
520         }],
521         ['use_aura==1', {
522           'sources/': [
523             ['exclude', 'gfx/gtk_'],
524             ['exclude', 'gfx/gtk_util.cc'],
525             ['exclude', 'gfx/gtk_util.h'],
526             ['exclude', 'gfx/screen_gtk.cc'],
527             ['exclude', 'gfx/screen_win.cc'],
528             ['exclude', 'base/dialogs/select_file_dialog_mac.mm'],
529             ['exclude', 'base/dialogs/select_file_dialog_win.cc'],
530             ['exclude', 'base/dragdrop/drag_utils_win.cc'],
531             ['exclude', 'base/work_area_watcher_observer.h'],
532             ['exclude', 'base/x/active_window_watcher_x.cc'],
533             ['exclude', 'base/x/active_window_watcher_x.h'],
534             ['exclude', 'base/x/active_window_watcher_x_observer.h'],
535             ['exclude', 'base/x/root_window_property_watcher_x.cc'],
536             ['exclude', 'base/x/root_window_property_watcher_x.h'],
537             ['exclude', 'base/x/work_area_watcher_x.cc'],
538             ['exclude', 'base/x/work_area_watcher_x.h'],
539             ['exclude', 'ui_controls_win.cc'],
540            ],
541         }, {  # use_aura!=1
542           'sources!': [
543             'base/cursor/cursor.cc',
544             'base/cursor/cursor.h',
545             'base/cursor/cursor_win.cc',
546             'base/cursor/cursor_x11.cc',
547             'base/native_theme/native_theme_aura.cc',
548             'base/native_theme/native_theme_aura.h',
549           ]
550         }],
551         ['use_aura==1 and OS=="win"', {
552           'sources/': [
553             ['exclude', 'base/dragdrop/os_exchange_data_provider_win.cc'],
554             ['exclude', 'base/dragdrop/os_exchange_data_provider_win.h'],
555             ['exclude', 'base/native_theme/native_theme_win.cc'],
556             ['exclude', 'base/native_theme/native_theme_win.h'],
557             ['exclude', 'gfx/path_win.cc'],
558           ],
559         }],
560         ['use_aura==0 and toolkit_views==0', {
561           'sources/': [
562             ['exclude', '^base/gestures/*'],
563           ]
564         }],
565         ['use_aura==1 and use_ash==0 and OS=="linux"', {
566           'sources': [
567             'base/linux_ui.cc',
568             'base/linux_ui.h',
569           ]
570         }],
571         ['use_ibus==1', {
572           'dependencies': [
573             '../build/linux/system.gyp:ibus',
574           ],
575         }],
576         ['use_glib == 1', {
577           'dependencies': [
578             # font_gtk.cc uses fontconfig.
579             '../build/linux/system.gyp:fontconfig',
580             '../build/linux/system.gyp:glib',
581             '../build/linux/system.gyp:pangocairo',
582             '../build/linux/system.gyp:x11',
583             '../build/linux/system.gyp:xext',
584             '../build/linux/system.gyp:xfixes',
585           ],
586           'link_settings': {
587             'libraries': [
588               '-lXcursor',  # For XCursor* function calls in x11_util.cc.
589               '-lXrender',  # For XRender* function calls in x11_util.cc.
590               '-lXrandr',   # For XRR* function calls in x11_util.cc.
591             ],
592           },
593           'conditions': [
594             ['toolkit_views==0', {
595               # Note: because of gyp predence rules this has to be defined as
596               # 'sources/' rather than 'sources!'.
597               'sources/': [
598                 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'],
599                 ['exclude', '^base/dragdrop/drag_utils_gtk.cc'],
600                 ['exclude', '^base/dragdrop/drag_utils.cc'],
601                 ['exclude', '^base/dragdrop/drag_utils.h'],
602                 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
603                 ['exclude', '^base/dragdrop/os_exchange_data.h'],
604                 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.cc'],
605                 ['exclude', '^base/dragdrop/os_exchange_data_provider_gtk.h'],
606               ],
607             }, {
608               # Note: because of gyp predence rules this has to be defined as
609               # 'sources/' rather than 'sources!'.
610               'sources/': [
611                 ['include', '^base/dragdrop/os_exchange_data.cc'],
612               ],
613             }],
614           ],
615         }],
616         ['toolkit_uses_gtk == 1', {
617           'dependencies': [
618             '../build/linux/system.gyp:gtk',
619           ],
620           'sources': [
621             'gfx/gtk_native_view_id_manager.cc',
622             'gfx/gtk_native_view_id_manager.h',
623             'gfx/gtk_preserve_window.cc',
624             'gfx/gtk_preserve_window.h',
625             'gfx/gtk_util.cc',
626             'gfx/gtk_util.h',
627             'gfx/image/cairo_cached_surface.cc',
628             'gfx/image/cairo_cached_surface.h',
629           ],
630         }, {  # toolkit_uses_gtk != 1
631           'sources!': [
632             'base/native_theme/native_theme_gtk.cc',
633             'base/native_theme/native_theme_gtk.h',
634           ]
635         }],
636         ['OS=="win"', {
637           'sources': [
638             'gfx/gdi_util.cc',
639             'gfx/gdi_util.h',
640             'gfx/icon_util.cc',
641             'gfx/icon_util.h',
642             'base/native_theme/native_theme_win.cc',
643             'base/native_theme/native_theme_win.h',
644           ],
645           'sources!': [
646             'base/touch/touch_factory.cc',
647             'base/touch/touch_factory.h',
648             'gfx/pango_util.h',
649             'gfx/pango_util.cc',
650             'gfx/platform_font_pango.cc',
651             'gfx/platform_font_pango.h',
652           ],
653           'include_dirs': [
654             '../',
655             '../third_party/wtl/include',
656           ],
657           'msvs_settings': {
658             'VCLinkerTool': {
659               'DelayLoadDLLs': [
660                 'd2d1.dll',
661                 'd3d10_1.dll',
662                 'dwmapi.dll',
663               ],
664               'AdditionalDependencies': [
665                 'd2d1.lib',
666                 'd3d10_1.lib',
667                 'dwmapi.lib',
668               ],
669             },
670           },
671           'link_settings': {
672             'libraries': [
673               '-limm32.lib',
674               '-ld2d1.lib',
675               '-ldwmapi.lib',
676               '-loleacc.lib',
677             ],
678           },
679         },{  # OS!="win"
680           'conditions': [
681             ['use_aura==0', {
682               'sources!': [
683                 'base/view_prop.cc',
684                 'base/view_prop.h',
685               ],
686             }],
687           ],
688           'sources!': [
689             'base/dragdrop/drag_source.cc',
690             'base/dragdrop/drag_source.h',
691             'base/dragdrop/drag_drop_types.h',
692             'base/dragdrop/drop_target.cc',
693             'base/dragdrop/drop_target.h',
694             'base/dragdrop/os_exchange_data.cc',
695             'base/native_theme/native_theme_win.cc',
696             'base/native_theme/native_theme_win.h',
697           ],
698           'sources/': [
699             ['exclude', '^base/win/*'],
700           ],
701         }],
702         ['OS=="mac"', {
703           'sources!': [
704             'base/dragdrop/drag_utils.cc',
705             'base/dragdrop/drag_utils.h',
706             'base/touch/touch_factory.cc',
707             'base/touch/touch_factory.h',
708             'gfx/pango_util.h',
709             'gfx/pango_util.cc',
710             'gfx/platform_font_pango.h',
711             'gfx/platform_font_pango.cc',
712           ],
713           'link_settings': {
714             'libraries': [
715               '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
716               '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
717               '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
718             ],
719           },
720         }],
721         ['OS=="ios"', {
722           'link_settings': {
723             'libraries': [
724               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
725             ],
726           },
727         }],
728         ['use_x11==1', {
729           'all_dependent_settings': {
730             'ldflags': [
731               '-L<(PRODUCT_DIR)',
732             ],
733             'link_settings': {
734               'libraries': [
735                 '-lX11',
736                 '-lXcursor',
737                 '-lXrandr',  # For XRR* function calls in x11_util.cc.
738               ],
739             },
740           },
741         }, {  # use_x11==0
742           'sources/': [
743             ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
744             ['exclude', 'base/x/*'],
745           ],
746         }],
747         ['toolkit_views==0', {
748           'sources!': [
749             'base/events/event.cc',
750             'base/events/event.h',
751             'base/x/events_x.cc',
752           ],
753         }],
754         ['OS=="android"', {
755           'sources!': [
756             'base/dragdrop/drag_utils.cc',
757             'base/dragdrop/drag_utils.h',
758             'base/touch/touch_factory.cc',
759             'base/touch/touch_factory.h',
760             'gfx/pango_util.cc',
761             'gfx/pango_util.h',
762             'gfx/platform_font_pango.cc',
763             'gfx/platform_font_pango.h',
764           ],
765         }],
766         ['OS=="android" or OS=="ios"', {
767           'sources!': [
768             'gfx/render_text.cc',
769             'gfx/render_text.h',
770           ],
771         }],
772         ['OS=="linux"', {
773           'libraries': [
774             '-ldl',
775           ],
776         }],
777         ['inside_chromium_build==0', {
778           'dependencies': [
779             '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers',
780           ],
781         }],
782       ],
783     },
784   ],
785   'conditions': [
786     ['inside_chromium_build == 1', {
787       'includes': [
788         'ui_unittests.gypi',
789       ]},
790     ],
791   ],