1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
12 'type': '<(component)',
14 '../base/base.gyp:base',
15 '../base/base.gyp:base_i18n',
16 '../base/base.gyp:base_static',
17 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
19 '../skia/skia.gyp:skia',
20 '../third_party/icu/icu.gyp:icui18n',
21 '../third_party/icu/icu.gyp:icuuc',
22 '../third_party/libpng/libpng.gyp:libpng',
23 '../third_party/zlib/zlib.gyp:zlib',
24 '../url/url.gyp:url_lib',
25 'base/strings/ui_strings.gyp:ui_strings',
26 'events/events.gyp:events_base',
28 'gfx/gfx.gyp:gfx_geometry',
29 'resources/ui_resources.gyp:ui_resources',
32 'UI_BASE_IMPLEMENTATION',
34 'export_dependent_settings': [
39 'base/accelerators/accelerator.cc',
40 'base/accelerators/accelerator.h',
41 'base/accelerators/accelerator_manager.cc',
42 'base/accelerators/accelerator_manager.h',
43 'base/accelerators/menu_label_accelerator_util_linux.cc',
44 'base/accelerators/menu_label_accelerator_util_linux.h',
45 'base/accelerators/platform_accelerator.h',
46 'base/accelerators/platform_accelerator_cocoa.h',
47 'base/accelerators/platform_accelerator_cocoa.mm',
48 'base/accelerators/platform_accelerator_gtk.cc',
49 'base/accelerators/platform_accelerator_gtk.h',
50 'base/accessibility/accessibility_types.h',
51 'base/accessibility/accessible_text_utils.cc',
52 'base/accessibility/accessible_text_utils.h',
53 'base/accessibility/accessible_view_state.cc',
54 'base/accessibility/accessible_view_state.h',
55 'base/android/ui_base_jni_registrar.cc',
56 'base/android/ui_base_jni_registrar.h',
57 'base/android/view_android.cc',
58 'base/android/view_android.h',
59 'base/android/window_android.cc',
60 'base/android/window_android.h',
61 'base/android/window_android_observer.h',
62 'base/base_window.cc',
64 'base/clipboard/clipboard.cc',
65 'base/clipboard/clipboard.h',
66 'base/clipboard/clipboard_android.cc',
67 'base/clipboard/clipboard_android_initialization.h',
68 'base/clipboard/clipboard_aura.cc',
69 'base/clipboard/clipboard_aurax11.cc',
70 'base/clipboard/clipboard_constants.cc',
71 'base/clipboard/clipboard_gtk.cc',
72 'base/clipboard/clipboard_mac.mm',
73 'base/clipboard/clipboard_types.h',
74 'base/clipboard/clipboard_util_win.cc',
75 'base/clipboard/clipboard_util_win.h',
76 'base/clipboard/clipboard_win.cc',
77 'base/clipboard/custom_data_helper.cc',
78 'base/clipboard/custom_data_helper.h',
79 'base/clipboard/custom_data_helper_linux.cc',
80 'base/clipboard/custom_data_helper_mac.mm',
81 'base/clipboard/scoped_clipboard_writer.cc',
82 'base/clipboard/scoped_clipboard_writer.h',
83 'base/cocoa/animation_utils.h',
84 'base/cocoa/appkit_utils.h',
85 'base/cocoa/appkit_utils.mm',
86 'base/cocoa/base_view.h',
87 'base/cocoa/base_view.mm',
88 'base/cocoa/cocoa_event_utils.h',
89 'base/cocoa/cocoa_event_utils.mm',
90 'base/cocoa/controls/blue_label_button.h',
91 'base/cocoa/controls/blue_label_button.mm',
92 'base/cocoa/controls/hover_image_menu_button.h',
93 'base/cocoa/controls/hover_image_menu_button.mm',
94 'base/cocoa/controls/hover_image_menu_button_cell.h',
95 'base/cocoa/controls/hover_image_menu_button_cell.mm',
96 'base/cocoa/controls/hyperlink_button_cell.h',
97 'base/cocoa/controls/hyperlink_button_cell.mm',
98 'base/cocoa/find_pasteboard.h',
99 'base/cocoa/find_pasteboard.mm',
100 'base/cocoa/flipped_view.h',
101 'base/cocoa/flipped_view.mm',
102 'base/cocoa/focus_tracker.h',
103 'base/cocoa/focus_tracker.mm',
104 'base/cocoa/focus_window_set.h',
105 'base/cocoa/focus_window_set.mm',
106 'base/cocoa/fullscreen_window_manager.h',
107 'base/cocoa/fullscreen_window_manager.mm',
108 'base/cocoa/hover_button.h',
109 'base/cocoa/hover_button.mm',
110 'base/cocoa/hover_image_button.h',
111 'base/cocoa/hover_image_button.mm',
112 'base/cocoa/menu_controller.h',
113 'base/cocoa/menu_controller.mm',
114 'base/cocoa/nib_loading.h',
115 'base/cocoa/nib_loading.mm',
116 'base/cocoa/nsgraphics_context_additions.h',
117 'base/cocoa/nsgraphics_context_additions.mm',
118 'base/cocoa/tracking_area.h',
119 'base/cocoa/tracking_area.mm',
120 'base/cocoa/underlay_opengl_hosting_window.h',
121 'base/cocoa/underlay_opengl_hosting_window.mm',
122 'base/cocoa/view_description.h',
123 'base/cocoa/view_description.mm',
124 'base/cocoa/window_size_constants.h',
125 'base/cocoa/window_size_constants.mm',
126 'base/cursor/cursor.cc',
127 'base/cursor/cursor.h',
128 'base/cursor/cursor_android.cc',
129 'base/cursor/cursor_loader.h',
130 'base/cursor/cursor_loader_null.cc',
131 'base/cursor/cursor_loader_null.h',
132 'base/cursor/cursor_loader_win.cc',
133 'base/cursor/cursor_loader_win.h',
134 'base/cursor/cursor_loader_x11.cc',
135 'base/cursor/cursor_loader_x11.h',
136 'base/cursor/cursor_null.cc',
137 'base/cursor/cursor_mac.mm',
138 'base/cursor/cursor_win.cc',
139 'base/cursor/cursor_x11.cc',
140 'base/cursor/cursors_aura.cc',
141 'base/cursor/cursors_aura.h',
142 'base/default_theme_provider.cc',
143 'base/default_theme_provider.h',
144 'base/default_theme_provider_mac.mm',
145 'base/device_form_factor_android.cc',
146 'base/device_form_factor_desktop.cc',
147 'base/device_form_factor_ios.mm',
148 'base/device_form_factor.h',
149 'base/dragdrop/cocoa_dnd_util.h',
150 'base/dragdrop/cocoa_dnd_util.mm',
151 'base/dragdrop/drag_drop_types.h',
152 'base/dragdrop/drag_drop_types_win.cc',
153 'base/dragdrop/drag_source_win.cc',
154 'base/dragdrop/drag_source_win.h',
155 'base/dragdrop/drag_utils.cc',
156 'base/dragdrop/drag_utils.h',
157 'base/dragdrop/drag_utils_aura.cc',
158 'base/dragdrop/drag_utils_win.cc',
159 'base/dragdrop/drop_target_event.cc',
160 'base/dragdrop/drop_target_event.h',
161 'base/dragdrop/drop_target_win.cc',
162 'base/dragdrop/drop_target_win.h',
163 'base/dragdrop/gtk_dnd_util.cc',
164 'base/dragdrop/gtk_dnd_util.h',
165 'base/dragdrop/os_exchange_data.cc',
166 'base/dragdrop/os_exchange_data.h',
167 'base/dragdrop/os_exchange_data_provider_aura.cc',
168 'base/dragdrop/os_exchange_data_provider_aura.h',
169 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
170 'base/dragdrop/os_exchange_data_provider_aurax11.h',
171 'base/dragdrop/os_exchange_data_provider_win.cc',
172 'base/dragdrop/os_exchange_data_provider_win.h',
173 'base/gtk/event_synthesis_gtk.cc',
174 'base/gtk/event_synthesis_gtk.h',
175 'base/gtk/focus_store_gtk.cc',
176 'base/gtk/focus_store_gtk.h',
177 'base/gtk/g_object_destructor_filo.cc',
178 'base/gtk/g_object_destructor_filo.h',
179 'base/gtk/gtk_expanded_container.cc',
180 'base/gtk/gtk_expanded_container.h',
181 'base/gtk/gtk_floating_container.cc',
182 'base/gtk/gtk_floating_container.h',
183 'base/gtk/gtk_hig_constants.h',
184 'base/gtk/gtk_screen_util.cc',
185 'base/gtk/gtk_screen_util.h',
186 'base/gtk/gtk_signal.h',
187 'base/gtk/gtk_signal_registrar.cc',
188 'base/gtk/gtk_signal_registrar.h',
189 'base/gtk/gtk_windowing.cc',
190 'base/gtk/gtk_windowing.h',
191 'base/gtk/owned_widget_gtk.cc',
192 'base/gtk/owned_widget_gtk.h',
193 'base/gtk/scoped_region.cc',
194 'base/gtk/scoped_region.h',
196 'base/l10n/l10n_font_util.cc',
197 'base/l10n/l10n_font_util.h',
198 'base/l10n/l10n_util.cc',
199 'base/l10n/l10n_util.h',
200 'base/l10n/l10n_util_android.cc',
201 'base/l10n/l10n_util_android.h',
202 'base/l10n/l10n_util_collator.h',
203 'base/l10n/l10n_util_mac.h',
204 'base/l10n/l10n_util_mac.mm',
205 'base/l10n/l10n_util_plurals.cc',
206 'base/l10n/l10n_util_plurals.h',
207 'base/l10n/l10n_util_posix.cc',
208 'base/l10n/l10n_util_win.cc',
209 'base/l10n/l10n_util_win.h',
210 'base/l10n/time_format.cc',
211 'base/l10n/time_format.h',
214 'base/layout_mac.mm',
215 'base/models/button_menu_item_model.cc',
216 'base/models/button_menu_item_model.h',
217 'base/models/combobox_model.cc',
218 'base/models/combobox_model.h',
219 'base/models/combobox_model_observer.h',
220 'base/models/dialog_model.cc',
221 'base/models/dialog_model.h',
222 'base/models/list_model.h',
223 'base/models/list_model_observer.h',
224 'base/models/list_selection_model.cc',
225 'base/models/list_selection_model.h',
226 'base/models/menu_model.cc',
227 'base/models/menu_model.h',
228 'base/models/menu_model_delegate.h',
229 'base/models/menu_separator_types.h',
230 'base/models/simple_menu_model.cc',
231 'base/models/simple_menu_model.h',
232 'base/models/table_model.cc',
233 'base/models/table_model.h',
234 'base/models/table_model_observer.h',
235 'base/models/tree_model.cc',
236 'base/models/tree_model.h',
237 'base/models/tree_node_iterator.h',
238 'base/models/tree_node_model.h',
239 'base/nine_image_painter_factory.cc',
240 'base/nine_image_painter_factory.h',
241 'base/resource/data_pack.cc',
242 'base/resource/data_pack.h',
243 'base/resource/resource_bundle.cc',
244 'base/resource/resource_bundle.h',
245 'base/resource/resource_bundle_android.cc',
246 'base/resource/resource_bundle_auralinux.cc',
247 'base/resource/resource_bundle_gtk.cc',
248 'base/resource/resource_bundle_ios.mm',
249 'base/resource/resource_bundle_mac.mm',
250 'base/resource/resource_bundle_win.cc',
251 'base/resource/resource_bundle_win.h',
252 'base/resource/resource_data_dll_win.cc',
253 'base/resource/resource_data_dll_win.h',
254 'base/resource/resource_handle.h',
255 'base/text/bytes_formatting.cc',
256 'base/text/bytes_formatting.h',
257 'base/theme_provider.cc',
258 'base/theme_provider.h',
259 'base/touch/touch_device.cc',
260 'base/touch/touch_device.h',
261 'base/touch/touch_device_android.cc',
262 'base/touch/touch_device_aurax11.cc',
263 'base/touch/touch_device_ozone.cc',
264 'base/touch/touch_device_win.cc',
265 'base/touch/touch_editing_controller.cc',
266 'base/touch/touch_editing_controller.h',
267 'base/touch/touch_enabled.cc',
268 'base/touch/touch_enabled.h',
269 'base/ui_base_exports.cc',
270 'base/ui_base_paths.cc',
271 'base/ui_base_paths.h',
272 'base/ui_base_switches.cc',
273 'base/ui_base_switches.h',
274 'base/ui_base_switches_util.cc',
275 'base/ui_base_switches_util.h',
276 'base/ui_base_types.cc',
277 'base/ui_base_types.h',
278 'base/ui_base_export.h',
281 'base/webui/jstemplate_builder.cc',
282 'base/webui/jstemplate_builder.h',
283 'base/webui/web_ui_util.cc',
284 'base/webui/web_ui_util.h',
285 'base/win/accessibility_ids_win.h',
286 'base/win/accessibility_misc_utils.cc',
287 'base/win/accessibility_misc_utils.h',
288 'base/win/atl_module.h',
289 'base/win/dpi_setup.cc',
290 'base/win/dpi_setup.h',
291 'base/win/foreground_helper.cc',
292 'base/win/foreground_helper.h',
293 'base/win/hidden_window.cc',
294 'base/win/hidden_window.h',
295 'base/win/hwnd_subclass.cc',
296 'base/win/hwnd_subclass.h',
297 'base/win/message_box_win.cc',
298 'base/win/message_box_win.h',
299 'base/win/mouse_wheel_util.cc',
300 'base/win/mouse_wheel_util.h',
301 'base/win/scoped_ole_initializer.cc',
302 'base/win/scoped_ole_initializer.h',
305 'base/win/touch_input.cc',
306 'base/win/touch_input.h',
307 'base/window_open_disposition.cc',
308 'base/window_open_disposition.h',
309 'base/work_area_watcher_observer.h',
310 'base/x/active_window_watcher_x.cc',
311 'base/x/active_window_watcher_x.h',
312 'base/x/active_window_watcher_x_observer.h',
313 'base/x/root_window_property_watcher_x.cc',
314 'base/x/root_window_property_watcher_x.h',
315 'base/x/selection_owner.cc',
316 'base/x/selection_owner.h',
317 'base/x/selection_requestor.cc',
318 'base/x/selection_requestor.h',
319 'base/x/selection_utils.cc',
320 'base/x/selection_utils.h',
321 'base/x/work_area_watcher_x.cc',
322 'base/x/work_area_watcher_x.h',
323 'base/x/x11_util.cc',
325 'base/x/x11_util_internal.h',
327 'target_conditions': [
330 ['include', '^base/l10n/l10n_util_mac\\.mm$'],
340 # iOS only uses a subset of UI.
342 ['exclude', '\\.(cc|mm)$'],
343 ['include', '_ios\\.(cc|mm)$'],
344 ['include', '(^|/)ios/'],
345 ['include', '^base/l10n/'],
346 ['include', '^base/layout'],
347 ['include', '^base/resource/'],
348 ['include', '^base/ui_base_'],
352 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
356 ['toolkit_views==1', {
358 'events/events.gyp:events',
363 ['exclude', 'base/clipboard/clipboard_mac.mm'],
364 ['exclude', 'base/layout_mac.mm'],
365 ['exclude', 'base/work_area_watcher_observer.h'],
366 ['exclude', 'base/x/active_window_watcher_x.cc'],
367 ['exclude', 'base/x/active_window_watcher_x.h'],
368 ['exclude', 'base/x/active_window_watcher_x_observer.h'],
369 ['exclude', 'base/x/root_window_property_watcher_x.cc'],
370 ['exclude', 'base/x/root_window_property_watcher_x.h'],
371 ['exclude', 'base/x/work_area_watcher_x.cc'],
372 ['exclude', 'base/x/work_area_watcher_x.h'],
375 'events/events.gyp:events',
379 'base/cursor/cursor.cc',
380 'base/cursor/cursor.h',
381 'base/cursor/cursor_loader_x11.cc',
382 'base/cursor/cursor_loader_x11.h',
383 'base/cursor/cursor_mac.mm',
384 'base/cursor/cursor_win.cc',
385 'base/cursor/cursor_x11.cc',
386 'base/nine_image_painter_factory.cc',
387 'base/nine_image_painter_factory.h',
388 'base/x/selection_owner.cc',
389 'base/x/selection_owner.h',
390 'base/x/selection_requestor.cc',
391 'base/x/selection_requestor.h',
392 'base/x/selection_utils.cc',
393 'base/x/selection_utils.h',
396 ['use_aura==0 or OS!="linux"', {
398 'base/resource/resource_bundle_auralinux.cc',
401 ['use_aura==1 and OS=="win"', {
403 ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
408 # font_gtk.cc uses fontconfig.
409 '../build/linux/system.gyp:fontconfig',
410 '../build/linux/system.gyp:glib',
413 ['desktop_linux == 1 or chromeos == 1', {
415 ['toolkit_views==0 and use_aura==0', {
416 # Note: because of gyp predence rules this has to be defined as
417 # 'sources/' rather than 'sources!'.
419 ['exclude', '^base/dragdrop/drag_utils.cc'],
420 ['exclude', '^base/dragdrop/drag_utils.h'],
421 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
422 ['exclude', '^base/dragdrop/os_exchange_data.h'],
425 # Note: because of gyp predence rules this has to be defined as
426 # 'sources/' rather than 'sources!'.
428 ['include', '^base/dragdrop/os_exchange_data.cc'],
435 '../build/linux/system.gyp:pangocairo',
438 ['OS=="win" or use_clipboard_aurax11==1', {
440 'base/clipboard/clipboard_aura.cc',
444 'base/clipboard/clipboard_aurax11.cc',
447 ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
449 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
450 'base/touch/touch_device.cc',
454 'base/dragdrop/os_exchange_data_provider_aura.cc',
455 'base/dragdrop/os_exchange_data_provider_aura.h',
456 'base/touch/touch_device_aurax11.cc',
461 'base/touch/touch_device.cc',
465 '../third_party/wtl/include',
467 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
468 # C4324 is structure was padded due to __declspec(align()), which is
470 'msvs_disabled_warnings': [ 4267, 4324 ],
478 'AdditionalDependencies': [
503 'base/dragdrop/drag_drop_types.h',
504 'base/dragdrop/os_exchange_data.cc',
509 '../third_party/mozilla/mozilla.gyp:mozilla',
512 'base/dragdrop/drag_utils.cc',
513 'base/dragdrop/drag_utils.h',
517 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
518 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
519 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
524 'all_dependent_settings': {
532 '-lXrender', # For XRender* function calls in x11_util.cc.
540 '-lXrender', # For XRender* function calls in x11_util.cc.
544 '../build/linux/system.gyp:x11',
545 '../build/linux/system.gyp:xext',
546 '../build/linux/system.gyp:xfixes',
551 'base/cursor/cursor_null.cc',
552 'base/cursor/cursor_loader_null.cc',
553 'base/cursor/cursor_loader_null.h',
556 ['toolkit_views==0', {
558 'base/dragdrop/drop_target_event.cc',
559 'base/dragdrop/drop_target_event.h',
564 'base/accessibility/accessible_text_utils.cc',
565 'base/accessibility/accessible_view_state.cc',
566 'base/default_theme_provider.cc',
567 'base/dragdrop/drag_utils.cc',
568 'base/dragdrop/drag_utils.h',
569 'base/l10n/l10n_font_util.cc',
570 'base/models/button_menu_item_model.cc',
571 'base/models/dialog_model.cc',
572 'base/theme_provider.cc',
573 'base/touch/touch_device.cc',
574 'base/touch/touch_editing_controller.cc',
575 'base/ui_base_types.cc',
578 'ui_base_jni_headers',
586 ['OS=="android" and android_webview_build==0', {
588 'android/ui_android.gyp:ui_java',
591 ['OS=="android" and use_aura==0', {
593 'base/cursor/cursor_android.cc'
596 ['OS=="android" and use_aura==1', {
598 'base/clipboard/clipboard_aura.cc'
601 ['OS=="android" or OS=="ios"', {
603 'base/device_form_factor_desktop.cc'
611 ['use_system_icu==1', {
612 # When using the system icu, the icu targets generate shim headers
613 # which are included by public headers in the ui target, so we need
614 # ui to be a hard dependency for all its users.
615 'hard_dependency': 1,
620 'target_name': 'webui_test_support',
622 'direct_dependent_settings': {
624 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
633 'target_name': 'ui_base_jni_headers',
636 'android/java/src/org/chromium/ui/base/Clipboard.java',
637 'android/java/src/org/chromium/ui/base/LocalizationUtils.java',
638 'android/java/src/org/chromium/ui/base/SelectFileDialog.java',
639 'android/java/src/org/chromium/ui/base/ViewAndroid.java',
640 'android/java/src/org/chromium/ui/base/WindowAndroid.java',
643 'jni_gen_package': 'ui',
644 'jni_generator_ptr_type': 'long',
646 'includes': [ '../build/jni_generator.gypi' ],