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