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