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.
11 # GN version: //ui/base
12 'target_name': 'ui_base',
13 'type': '<(component)',
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',
28 '../gfx/gfx.gyp:gfx_geometry',
29 '../resources/ui_resources.gyp:ui_resources',
30 '../strings/ui_strings.gyp:ui_strings',
33 'UI_BASE_IMPLEMENTATION',
35 'export_dependent_settings': [
36 '../../net/net.gyp:net',
37 '../../skia/skia.gyp:skia',
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',
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',
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',
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',
195 'idle/idle_chromeos.cc',
196 'idle/idle_linux.cc',
198 'idle/idle_query_x11.cc',
199 'idle/idle_query_x11.h',
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',
209 'l10n/l10n_font_util.cc',
210 'l10n/l10n_font_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',
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',
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',
287 'ui_base_exports.cc',
290 'ui_base_switches.cc',
291 'ui_base_switches.h',
292 'ui_base_switches_util.cc',
293 'ui_base_switches_util.h',
296 'user_activity/user_activity_detector.cc',
297 'user_activity/user_activity_detector.h',
298 'user_activity/user_activity_observer.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',
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',
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',
329 'win/touch_input.cc',
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',
348 'x/x11_util_internal.h',
350 'target_conditions': [
353 ['include', '^l10n/l10n_util_mac\\.mm$'],
359 # iOS only uses a subset of UI.
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'],
374 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
380 ['exclude', 'clipboard/clipboard_mac.mm'],
381 ['exclude', 'layout_mac.mm'],
382 ['exclude', 'work_area_watcher_observer.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',
400 ['use_aura==0 or OS!="linux"', {
402 'resource/resource_bundle_auralinux.cc',
407 '../events/devices/events_devices.gyp:events_devices',
408 '../events/ozone/events_ozone.gyp:events_ozone_layout',
409 '../ozone/ozone.gyp:ozone_base',
412 ['use_aura==1 and OS=="win"', {
414 ['exclude', 'dragdrop/drag_utils_aura.cc'],
419 '../../build/linux/system.gyp:fontconfig',
420 '../../build/linux/system.gyp:glib',
423 ['desktop_linux == 1 or chromeos == 1', {
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!'.
429 ['exclude', '^dragdrop/drag_utils.cc'],
430 ['exclude', '^dragdrop/drag_utils.h'],
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'],
444 '../../build/linux/system.gyp:pangocairo',
447 ['OS=="win" or use_clipboard_aurax11==1', {
449 'clipboard/clipboard_aura.cc',
453 'clipboard/clipboard_aurax11.cc',
456 ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
458 'dragdrop/os_exchange_data_provider_aurax11.cc',
462 'dragdrop/os_exchange_data_provider_aura.cc',
463 'dragdrop/os_exchange_data_provider_aura.h',
468 'touch/touch_device.cc',
472 'touch/touch_device_linux.cc',
477 'touch/touch_device.cc',
481 '../../third_party/wtl/include',
483 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
484 # C4324 is structure was padded due to __declspec(align()), which is
486 'msvs_disabled_warnings': [ 4267, 4324 ],
494 'AdditionalDependencies': [
520 '../../third_party/mozilla/mozilla.gyp:mozilla',
523 'cursor/image_cursors.cc',
524 'cursor/image_cursors.h',
525 'dragdrop/drag_utils.cc',
526 'dragdrop/drag_utils.h',
530 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
531 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
532 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
537 'all_dependent_settings': {
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',
553 ['use_x11==1 and chromeos==0', {
555 '../../build/linux/system.gyp:xscrnsaver',
558 ['toolkit_views==0', {
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',
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',
578 'l10n/l10n_font_util.cc',
579 'models/button_menu_item_model.cc',
580 'models/dialog_model.cc',
582 'touch/touch_device.cc',
583 'touch/touch_editing_controller.cc',
587 '../android/ui_android.gyp:ui_java',
588 'ui_base_jni_headers',
596 ['OS=="android" and use_aura==0', {
598 'cursor/cursor_android.cc'
601 ['OS=="android" and use_aura==1', {
603 'clipboard/clipboard_aura.cc'
606 ['OS=="android" or OS=="ios"', {
608 'device_form_factor_desktop.cc'
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,
624 '../../chromeos/chromeos.gyp:chromeos',
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',
637 # GN version: //ui/base:test_support
638 'target_name': 'ui_base_test_support',
639 'type': 'static_library',
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',
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',
668 'ime/ui_base_ime.gyp:ui_base_ime',
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',
683 'test/ui_controls_mac.mm',
684 'test/ui_controls_win.cc',
694 # GN version: //ui/base:ui_base_jni_headers
695 'target_name': 'ui_base_jni_headers',
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',
707 'jni_gen_package': 'ui',
709 'includes': [ '../../build/jni_generator.gypi' ],