Extension syncing: Introduce a NeedsSync pref
[chromium-blink-merge.git] / ui / base / ui_base.gyp
blob9787853156e80e4072805c14bfae4396a7cc5f3f
1 # Copyright 2014 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   'targets': [
10     {
11       # GN version: //ui/base
12       'target_name': 'ui_base',
13       'type': '<(component)',
14       'dependencies': [
15         '../../base/base.gyp:base',
16         '../../base/base.gyp:base_i18n',
17         '../../base/base.gyp:base_static',
18         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
19         '../../net/net.gyp:net',
20         '../../skia/skia.gyp:skia',
21         '../../third_party/icu/icu.gyp:icui18n',
22         '../../third_party/icu/icu.gyp:icuuc',
23         '../../url/url.gyp:url_lib',
24         '../events/events.gyp:events',
25         '../events/events.gyp:events_base',
26         '../events/platform/events_platform.gyp:events_platform',
27         '../gfx/gfx.gyp:gfx',
28         '../gfx/gfx.gyp:gfx_geometry',
29         '../resources/ui_resources.gyp:ui_resources',
30         '../strings/ui_strings.gyp:ui_strings',
31       ],
32       'defines': [
33         'UI_BASE_IMPLEMENTATION',
34       ],
35       'export_dependent_settings': [
36         '../../net/net.gyp:net',
37         '../../skia/skia.gyp:skia',
38         '../gfx/gfx.gyp:gfx',
39       ],
40       'sources' : [
41         # Note: file list duplicated in GN build.
42         'accelerators/accelerator.cc',
43         'accelerators/accelerator.h',
44         'accelerators/accelerator_history.cc',
45         'accelerators/accelerator_history.h',
46         'accelerators/accelerator_manager.cc',
47         'accelerators/accelerator_manager.h',
48         'accelerators/menu_label_accelerator_util_linux.cc',
49         'accelerators/menu_label_accelerator_util_linux.h',
50         'accelerators/platform_accelerator.h',
51         'accelerators/platform_accelerator_cocoa.h',
52         'accelerators/platform_accelerator_cocoa.mm',
53         'android/ui_base_jni_registrar.cc',
54         'android/ui_base_jni_registrar.h',
55         'base_window.cc',
56         'base_window.h',
57         'clipboard/clipboard.cc',
58         'clipboard/clipboard.h',
59         'clipboard/clipboard_android.cc',
60         'clipboard/clipboard_android.h',
61         'clipboard/clipboard_aura.cc',
62         'clipboard/clipboard_aura.h',
63         'clipboard/clipboard_aurax11.cc',
64         'clipboard/clipboard_aurax11.h',
65         'clipboard/clipboard_constants.cc',
66         'clipboard/clipboard_mac.h',
67         'clipboard/clipboard_mac.mm',
68         'clipboard/clipboard_types.h',
69         'clipboard/clipboard_util_win.cc',
70         'clipboard/clipboard_util_win.h',
71         'clipboard/clipboard_win.cc',
72         'clipboard/clipboard_win.h',
73         'clipboard/custom_data_helper.cc',
74         'clipboard/custom_data_helper.h',
75         'clipboard/custom_data_helper_linux.cc',
76         'clipboard/custom_data_helper_mac.mm',
77         'clipboard/scoped_clipboard_writer.cc',
78         'clipboard/scoped_clipboard_writer.h',
79         'cocoa/animation_utils.h',
80         'cocoa/appkit_utils.h',
81         'cocoa/appkit_utils.mm',
82         'cocoa/base_view.h',
83         'cocoa/base_view.mm',
84         'cocoa/cocoa_base_utils.h',
85         'cocoa/cocoa_base_utils.mm',
86         'cocoa/constrained_window/constrained_window_animation.h',
87         'cocoa/constrained_window/constrained_window_animation.mm',
88         'cocoa/controls/blue_label_button.h',
89         'cocoa/controls/blue_label_button.mm',
90         'cocoa/controls/hover_image_menu_button.h',
91         'cocoa/controls/hover_image_menu_button.mm',
92         'cocoa/controls/hover_image_menu_button_cell.h',
93         'cocoa/controls/hover_image_menu_button_cell.mm',
94         'cocoa/controls/hyperlink_button_cell.h',
95         'cocoa/controls/hyperlink_button_cell.mm',
96         'cocoa/controls/hyperlink_text_view.h',
97         'cocoa/controls/hyperlink_text_view.mm',
98         'cocoa/find_pasteboard.h',
99         'cocoa/find_pasteboard.mm',
100         'cocoa/flipped_view.h',
101         'cocoa/flipped_view.mm',
102         'cocoa/focus_tracker.h',
103         'cocoa/focus_tracker.mm',
104         'cocoa/focus_window_set.h',
105         'cocoa/focus_window_set.mm',
106         'cocoa/fullscreen_window_manager.h',
107         'cocoa/fullscreen_window_manager.mm',
108         'cocoa/hover_button.h',
109         'cocoa/hover_button.mm',
110         'cocoa/hover_image_button.h',
111         'cocoa/hover_image_button.mm',
112         'cocoa/menu_controller.h',
113         'cocoa/menu_controller.mm',
114         'cocoa/nib_loading.h',
115         'cocoa/nib_loading.mm',
116         'cocoa/nscolor_additions.h',
117         'cocoa/nscolor_additions.mm',
118         'cocoa/nsgraphics_context_additions.h',
119         'cocoa/nsgraphics_context_additions.mm',
120         'cocoa/nsview_additions.h',
121         'cocoa/nsview_additions.mm',
122         'cocoa/remote_layer_api.h',
123         'cocoa/remote_layer_api.mm',
124         'cocoa/three_part_image.h',
125         'cocoa/three_part_image.mm',
126         'cocoa/tool_tip_base_view.h',
127         'cocoa/tool_tip_base_view.mm',
128         'cocoa/tracking_area.h',
129         'cocoa/tracking_area.mm',
130         'cocoa/underlay_opengl_hosting_window.h',
131         'cocoa/underlay_opengl_hosting_window.mm',
132         'cocoa/view_description.h',
133         'cocoa/view_description.mm',
134         'cocoa/window_size_constants.h',
135         'cocoa/window_size_constants.mm',
136         'cursor/cursor.cc',
137         'cursor/cursor.h',
138         'cursor/cursor_android.cc',
139         'cursor/cursor_loader.h',
140         'cursor/cursor_loader_android.cc',
141         'cursor/cursor_loader_ozone.cc',
142         'cursor/cursor_loader_ozone.h',
143         'cursor/cursor_loader_win.cc',
144         'cursor/cursor_loader_win.h',
145         'cursor/cursor_loader_x11.cc',
146         'cursor/cursor_loader_x11.h',
147         'cursor/cursor_ozone.cc',
148         'cursor/cursor_util.cc',
149         'cursor/cursor_util.h',
150         'cursor/cursor_win.cc',
151         'cursor/cursor_x11.cc',
152         'cursor/cursors_aura.cc',
153         'cursor/cursors_aura.h',
154         'cursor/image_cursors.cc',
155         'cursor/image_cursors.h',
156         'cursor/ozone/bitmap_cursor_factory_ozone.cc',
157         'cursor/ozone/bitmap_cursor_factory_ozone.h',
158         'default_theme_provider.cc',
159         'default_theme_provider.h',
160         'default_theme_provider_mac.mm',
161         'device_form_factor.h',
162         'device_form_factor_android.cc',
163         'device_form_factor_android.h',
164         'device_form_factor_desktop.cc',
165         'device_form_factor_ios.mm',
166         'dragdrop/cocoa_dnd_util.h',
167         'dragdrop/cocoa_dnd_util.mm',
168         'dragdrop/drag_drop_types.h',
169         'dragdrop/drag_drop_types_win.cc',
170         'dragdrop/drag_source_win.cc',
171         'dragdrop/drag_source_win.h',
172         'dragdrop/drag_utils.cc',
173         'dragdrop/drag_utils.h',
174         'dragdrop/drag_utils_aura.cc',
175         'dragdrop/drag_utils_mac.mm',
176         'dragdrop/drag_utils_win.cc',
177         'dragdrop/drop_target_event.cc',
178         'dragdrop/drop_target_event.h',
179         'dragdrop/drop_target_win.cc',
180         'dragdrop/drop_target_win.h',
181         'dragdrop/file_info.cc',
182         'dragdrop/file_info.h',
183         'dragdrop/os_exchange_data.cc',
184         'dragdrop/os_exchange_data.h',
185         'dragdrop/os_exchange_data_provider_aura.cc',
186         'dragdrop/os_exchange_data_provider_aura.h',
187         'dragdrop/os_exchange_data_provider_aurax11.cc',
188         'dragdrop/os_exchange_data_provider_aurax11.h',
189         'dragdrop/os_exchange_data_provider_mac.h',
190         'dragdrop/os_exchange_data_provider_mac.mm',
191         'dragdrop/os_exchange_data_provider_win.cc',
192         'dragdrop/os_exchange_data_provider_win.h',
193         'hit_test.h',
194         'idle/idle.cc',
195         'idle/idle.h',
196         'idle/idle_chromeos.cc',
197         'idle/idle_linux.cc',
198         'idle/idle_mac.mm',
199         'idle/idle_query_x11.cc',
200         'idle/idle_query_x11.h',
201         'idle/idle_win.cc',
202         'idle/screensaver_window_finder_x11.cc',
203         'idle/screensaver_window_finder_x11.h',
204         'ios/cru_context_menu_controller.h',
205         'ios/cru_context_menu_controller.mm',
206         'ios/cru_context_menu_holder.h',
207         'ios/cru_context_menu_holder.mm',
208         'l10n/formatter.cc',
209         'l10n/formatter.h',
210         'l10n/l10n_font_util.cc',
211         'l10n/l10n_font_util.h',
212         'l10n/l10n_util.cc',
213         'l10n/l10n_util.h',
214         'l10n/l10n_util_android.cc',
215         'l10n/l10n_util_android.h',
216         'l10n/l10n_util_collator.h',
217         'l10n/l10n_util_mac.h',
218         'l10n/l10n_util_mac.mm',
219         'l10n/l10n_util_plurals.cc',
220         'l10n/l10n_util_plurals.h',
221         'l10n/l10n_util_posix.cc',
222         'l10n/l10n_util_win.cc',
223         'l10n/l10n_util_win.h',
224         'l10n/time_format.cc',
225         'l10n/time_format.h',
226         'layout.cc',
227         'layout.h',
228         'layout_mac.mm',
229         'models/button_menu_item_model.cc',
230         'models/button_menu_item_model.h',
231         'models/combobox_model.cc',
232         'models/combobox_model.h',
233         'models/combobox_model_observer.h',
234         'models/dialog_model.cc',
235         'models/dialog_model.h',
236         'models/list_model.h',
237         'models/list_model_observer.h',
238         'models/list_selection_model.cc',
239         'models/list_selection_model.h',
240         'models/menu_model.cc',
241         'models/menu_model.h',
242         'models/menu_model_delegate.h',
243         'models/menu_separator_types.h',
244         'models/simple_combobox_model.cc',
245         'models/simple_combobox_model.h',
246         'models/simple_menu_model.cc',
247         'models/simple_menu_model.h',
248         'models/table_model.cc',
249         'models/table_model.h',
250         'models/table_model_observer.h',
251         'models/tree_model.cc',
252         'models/tree_model.h',
253         'models/tree_node_iterator.h',
254         'models/tree_node_model.h',
255         'nine_image_painter_factory.cc',
256         'nine_image_painter_factory.h',
257         'page_transition_types.cc',
258         'page_transition_types.h',
259         'resource/data_pack.cc',
260         'resource/data_pack.h',
261         'resource/material_design/material_design_controller.cc',
262         'resource/material_design/material_design_controller.h',
263         'resource/resource_bundle.cc',
264         'resource/resource_bundle.h',
265         'resource/resource_bundle_android.cc',
266         'resource/resource_bundle_auralinux.cc',
267         'resource/resource_bundle_ios.mm',
268         'resource/resource_bundle_mac.mm',
269         'resource/resource_bundle_win.cc',
270         'resource/resource_bundle_win.h',
271         'resource/resource_data_dll_win.cc',
272         'resource/resource_data_dll_win.h',
273         'resource/resource_handle.h',
274         'template_expressions.cc',
275         'template_expressions.h',
276         'text/bytes_formatting.cc',
277         'text/bytes_formatting.h',
278         'theme_provider.cc',
279         'theme_provider.h',
280         'touch/selection_bound.cc',
281         'touch/selection_bound.h',
282         'touch/touch_device.cc',
283         'touch/touch_device.h',
284         'touch/touch_device_android.cc',
285         'touch/touch_device_linux.cc',
286         'touch/touch_device_win.cc',
287         'touch/touch_editing_controller.cc',
288         'touch/touch_editing_controller.h',
289         'touch/touch_enabled.cc',
290         'touch/touch_enabled.h',
291         'ui_base_export.h',
292         'ui_base_exports.cc',
293         'ui_base_paths.cc',
294         'ui_base_paths.h',
295         'ui_base_switches.cc',
296         'ui_base_switches.h',
297         'ui_base_switches_util.cc',
298         'ui_base_switches_util.h',
299         'ui_base_types.cc',
300         'ui_base_types.h',
301         'user_activity/user_activity_detector.cc',
302         'user_activity/user_activity_detector.h',
303         'user_activity/user_activity_observer.h',
304         'view_prop.cc',
305         'view_prop.h',
306         'webui/jstemplate_builder.cc',
307         'webui/jstemplate_builder.h',
308         'webui/web_ui_util.cc',
309         'webui/web_ui_util.h',
310         'win/accessibility_ids_win.h',
311         'win/accessibility_misc_utils.cc',
312         'win/accessibility_misc_utils.h',
313         'win/atl_module.h',
314         'win/foreground_helper.cc',
315         'win/foreground_helper.h',
316         'win/hidden_window.cc',
317         'win/hidden_window.h',
318         'win/hwnd_subclass.cc',
319         'win/hwnd_subclass.h',
320         'win/internal_constants.cc',
321         'win/internal_constants.h',
322         'win/lock_state.cc',
323         'win/lock_state.h',
324         'win/message_box_win.cc',
325         'win/message_box_win.h',
326         'win/mouse_wheel_util.cc',
327         'win/mouse_wheel_util.h',
328         'win/open_file_name_win.cc',
329         'win/open_file_name_win.h',
330         'win/scoped_ole_initializer.cc',
331         'win/scoped_ole_initializer.h',
332         'win/shell.cc',
333         'win/shell.h',
334         'win/touch_input.cc',
335         'win/touch_input.h',
336         'win/window_event_target.cc',
337         'win/window_event_target.h',
338         'window_open_disposition.cc',
339         'window_open_disposition.h',
340         'work_area_watcher_observer.h',
341         'x/selection_owner.cc',
342         'x/selection_owner.h',
343         'x/selection_requestor.cc',
344         'x/selection_requestor.h',
345         'x/selection_utils.cc',
346         'x/selection_utils.h',
347         'x/x11_foreign_window_manager.cc',
348         'x/x11_foreign_window_manager.h',
349         'x/x11_menu_list.cc',
350         'x/x11_menu_list.h',
351         'x/x11_util.cc',
352         'x/x11_util.h',
353         'x/x11_util_internal.h',
354       ],
355       'target_conditions': [
356         ['OS == "ios"', {
357           'sources/': [
358             ['include', '^l10n/l10n_util_mac\\.mm$'],
359           ],
360         }],
361       ],
362       'conditions': [
363         ['OS=="ios"', {
364           # iOS only uses a subset of UI.
365           'sources/': [
366             ['exclude', '\\.(cc|mm)$'],
367             ['include', '_ios\\.(cc|mm)$'],
368             ['include', '(^|/)ios/'],
369             ['include', '^l10n/'],
370             ['include', '^layout'],
371             ['include', '^page_transition_type'],
372             ['include', '^resource/'],
373             ['include', 'template_expressions.cc'],
374             ['include', '^ui_base_'],
375             ['include', '^webui/'],
376             ['include', '^window_open_disposition\\.cc'],
377           ],
378           'link_settings': {
379             'libraries': [
380               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
381             ],
382           },
383         }],
384         ['use_aura==1', {
385           'sources/': [
386             ['exclude', 'clipboard/clipboard_mac.mm'],
387             ['exclude', 'layout_mac.mm'],
388             ['exclude', 'work_area_watcher_observer.h'],
389           ],
390         }, {  # use_aura!=1
391           'sources!': [
392             'cursor/cursor.cc',
393             'cursor/cursor.h',
394             'cursor/cursor_loader_android.cc',
395             'cursor/cursor_loader_x11.cc',
396             'cursor/cursor_loader_x11.h',
397             'cursor/cursor_win.cc',
398             'cursor/cursor_x11.cc',
399             'x/selection_owner.cc',
400             'x/selection_owner.h',
401             'x/selection_requestor.cc',
402             'x/selection_requestor.h',
403             'x/selection_utils.cc',
404             'x/selection_utils.h',
405           ]
406         }],
407         ['use_aura==0 or OS!="linux"', {
408           'sources!': [
409             'resource/resource_bundle_auralinux.cc',
410           ],
411         }],
412         ['use_ozone==1', {
413           'dependencies': [
414             '../events/devices/events_devices.gyp:events_devices',
415             '../events/ozone/events_ozone.gyp:events_ozone_layout',
416             '../ozone/ozone.gyp:ozone_base',
417           ],
418         }],
419         ['use_aura==1 and OS=="win"', {
420           'sources/': [
421             ['exclude', 'dragdrop/drag_utils_aura.cc'],
422           ],
423         }],
424         ['use_glib == 1', {
425           'dependencies': [
426             '../../build/linux/system.gyp:fontconfig',
427             '../../build/linux/system.gyp:glib',
428           ],
429         }],
430         ['desktop_linux == 1 or chromeos == 1', {
431           'conditions': [
432             ['toolkit_views==0 and use_aura==0', {
433               # Note: because of gyp predence rules this has to be defined as
434               # 'sources/' rather than 'sources!'.
435               'sources/': [
436                 ['exclude', '^dragdrop/drag_utils.cc'],
437                 ['exclude', '^dragdrop/drag_utils.h'],
438               ],
439             }, {
440               'sources/': [
441                 ['include', '^dragdrop/os_exchange_data.cc'],
442                 ['include', '^dragdrop/os_exchange_data.h'],
443                 ['include', '^nine_image_painter_factory.cc'],
444                 ['include', '^nine_image_painter_factory.h'],
445               ],
446             }],
447           ],
448         }],
449         ['use_pango==1', {
450           'dependencies': [
451             '../../build/linux/system.gyp:pangocairo',
452           ],
453         }],
454         ['OS=="win" or use_clipboard_aurax11==1', {
455           'sources!': [
456             'clipboard/clipboard_aura.cc',
457           ],
458         }, {
459           'sources!': [
460             'clipboard/clipboard_aurax11.cc',
461           ],
462         }],
463         ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
464           'sources!': [
465             'dragdrop/os_exchange_data_provider_aurax11.cc',
466           ],
467         }, {
468           'sources!': [
469             'dragdrop/os_exchange_data_provider_aura.cc',
470             'dragdrop/os_exchange_data_provider_aura.h',
471           ],
472         }],
473         ['OS=="linux"', {
474           'sources!': [
475             'touch/touch_device.cc',
476           ],
477         }, {
478           'sources!': [
479             'touch/touch_device_linux.cc',
480           ],
481         }],
482         ['OS=="win"', {
483           'sources!': [
484             'touch/touch_device.cc',
485           ],
486           'include_dirs': [
487             '../..',
488             '../../third_party/wtl/include',
489           ],
490           # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
491           # C4324 is structure was padded due to __declspec(align()), which is
492           # uninteresting.
493           'msvs_disabled_warnings': [ 4267, 4324 ],
494           'msvs_settings': {
495             'VCLinkerTool': {
496               'DelayLoadDLLs': [
497                 'd2d1.dll',
498                 'd3d10_1.dll',
499                 'dwmapi.dll',
500               ],
501               'AdditionalDependencies': [
502                 'd2d1.lib',
503                 'd3d10_1.lib',
504                 'dwmapi.lib',
505               ],
506             },
507           },
508           'link_settings': {
509             'libraries': [
510               '-ld2d1.lib',
511               '-ldwmapi.lib',
512               '-loleacc.lib',
513             ],
514           },
515         }, {  # OS!="win"
516           'conditions': [
517             ['use_aura==0', {
518               'sources!': [
519                 'view_prop.cc',
520                 'view_prop.h',
521               ],
522             }],
523           ],
524         }],
525         ['OS=="mac"', {
526           'dependencies': [
527             '../../third_party/mozilla/mozilla.gyp:mozilla',
528           ],
529           'sources!': [
530             'cursor/image_cursors.cc',
531             'cursor/image_cursors.h',
532             'dragdrop/drag_utils.cc',
533             'dragdrop/drag_utils.h',
534           ],
535           'link_settings': {
536             'libraries': [
537               '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
538               '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
539               '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
540             ],
541           },
542         }],
543         ['use_x11==1', {
544           'all_dependent_settings': {
545             'ldflags': [
546               '-L<(PRODUCT_DIR)',
547             ],
548           },
549           'dependencies': [
550             '../../build/linux/system.gyp:x11',
551             '../../build/linux/system.gyp:xcursor',
552             '../../build/linux/system.gyp:xext',
553             '../../build/linux/system.gyp:xfixes',
554             '../../build/linux/system.gyp:xrender',  # For XRender* function calls in x11_util.cc.
555             '../events/devices/events_devices.gyp:events_devices',
556             '../events/platform/x11/x11_events_platform.gyp:x11_events_platform',
557             '../gfx/x/gfx_x11.gyp:gfx_x11',
558           ],
559         }],
560         ['use_x11==1 and chromeos==0', {
561           'dependencies': [
562             '../../build/linux/system.gyp:xscrnsaver',
563           ],
564         }],
565         ['toolkit_views==0', {
566           'sources!': [
567             'dragdrop/drag_drop_types.h',
568             'dragdrop/drop_target_event.cc',
569             'dragdrop/drop_target_event.h',
570             'dragdrop/os_exchange_data.cc',
571             'dragdrop/os_exchange_data.h',
572             'nine_image_painter_factory.cc',
573             'nine_image_painter_factory.h',
574           ],
575         }],
576         ['OS=="android"', {
577           'sources!': [
578             'cursor/image_cursors.cc',
579             'cursor/image_cursors.h',
580             'default_theme_provider.cc',
581             'dragdrop/drag_utils.cc',
582             'dragdrop/drag_utils.h',
583             'idle/idle.cc',
584             'idle/idle.h',
585             'l10n/l10n_font_util.cc',
586             'models/button_menu_item_model.cc',
587             'models/dialog_model.cc',
588             'theme_provider.cc',
589             'touch/touch_device.cc',
590             'touch/touch_editing_controller.cc',
591             'ui_base_types.cc',
592           ],
593           'dependencies': [
594             '../android/ui_android.gyp:ui_java',
595             'ui_base_jni_headers',
596           ],
597           'link_settings': {
598             'libraries': [
599               '-ljnigraphics',
600             ],
601           },
602         }],
603         ['OS=="android" and use_aura==0', {
604           'sources!': [
605             'cursor/cursor_android.cc'
606           ],
607         }],
608         ['OS=="android" and use_aura==1', {
609           'sources!': [
610             'clipboard/clipboard_aura.cc'
611           ],
612         }],
613         ['OS=="android" or OS=="ios"', {
614           'sources!': [
615             'device_form_factor_desktop.cc'
616           ],
617         }],
618         ['OS=="linux"', {
619           'libraries': [
620             '-ldl',
621           ],
622         }],
623         ['use_system_icu==1', {
624           # When using the system icu, the icu targets generate shim headers
625           # which are included by public headers in the ui target, so we need
626           # ui to be a hard dependency for all its users.
627           'hard_dependency': 1,
628         }],
629         ['chromeos==1', {
630           'dependencies': [
631             '../../chromeos/chromeos.gyp:chromeos',
632           ],
633           'sources!': [
634             'idle/idle_linux.cc',
635             'idle/idle_query_x11.cc',
636             'idle/idle_query_x11.h',
637             'idle/screensaver_window_finder_x11.cc',
638             'idle/screensaver_window_finder_x11.h',
639           ],
640         }],
641       ],
642     },
643     {
644       # GN version: //ui/base:test_support
645       'target_name': 'ui_base_test_support',
646       'type': 'static_library',
647       'dependencies': [
648         '../../base/base.gyp:base',
649         '../../skia/skia.gyp:skia',
650         '../../testing/gtest.gyp:gtest',
651         '../gfx/gfx.gyp:gfx',
652         '../gfx/gfx.gyp:gfx_geometry',
653       ],
654       'sources': [
655         # Note: file list duplicated in GN build.
656         'test/ios/keyboard_appearance_listener.h',
657         'test/ios/keyboard_appearance_listener.mm',
658         'test/ios/ui_view_test_utils.h',
659         'test/ios/ui_view_test_utils.mm',
660         'test/material_design_controller_test_api.cc',
661         'test/material_design_controller_test_api.h',
662         'test/test_clipboard.cc',
663         'test/test_clipboard.h',
664         'test/ui_controls.h',
665         'test/ui_controls_aura.cc',
666         'test/ui_controls_internal_win.cc',
667         'test/ui_controls_internal_win.h',
668         'test/ui_controls_mac.mm',
669         'test/ui_controls_win.cc',
670       ],
671       'include_dirs': [
672         '../..',
673       ],
674       'conditions': [
675         ['OS!="ios"', {
676           'dependecies': [
677             'ime/ui_base_ime.gyp:ui_base_ime',
678           ],
679           'sources': [
680             'ime/dummy_input_method.cc',
681             'ime/dummy_input_method.h',
682             'ime/dummy_text_input_client.cc',
683             'ime/dummy_text_input_client.h',
684             'test/nswindow_fullscreen_notification_waiter.h',
685             'test/nswindow_fullscreen_notification_waiter.mm',
686             'test/scoped_fake_nswindow_fullscreen.h',
687             'test/scoped_fake_nswindow_fullscreen.mm',
688             'test/windowed_nsnotification_observer.h',
689             'test/windowed_nsnotification_observer.mm',
690           ],
691         }],
692         ['use_aura==1', {
693           'sources!': [
694             'test/ui_controls_mac.mm',
695             'test/ui_controls_win.cc',
696           ],
697         }],
698       ],
699     },
700   ],
701   'conditions': [
702     ['OS=="android"' , {
703        'targets': [
704          {
705            # GN version: //ui/base:ui_base_jni_headers
706            'target_name': 'ui_base_jni_headers',
707            'type': 'none',
708            'sources': [
709              # Note: file list duplicated in GN build.
710              '../android/java/src/org/chromium/ui/base/Clipboard.java',
711              '../android/java/src/org/chromium/ui/base/DeviceFormFactor.java',
712              '../android/java/src/org/chromium/ui/base/LocalizationUtils.java',
713              '../android/java/src/org/chromium/ui/base/ResourceBundle.java',
714              '../android/java/src/org/chromium/ui/base/SelectFileDialog.java',
715              '../android/java/src/org/chromium/ui/base/TouchDevice.java',
716            ],
717            'variables': {
718              'jni_gen_package': 'ui',
719            },
720            'includes': [ '../../build/jni_generator.gypi' ],
721          },
722        ],
723     }],
724   ],