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.
17 'type': '<(component)',
19 '../base/base.gyp:base',
20 '../base/base.gyp:base_i18n',
21 '../base/base.gyp:base_static',
22 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
24 '../skia/skia.gyp:skia',
25 '../third_party/icu/icu.gyp:icui18n',
26 '../third_party/icu/icu.gyp:icuuc',
27 '../third_party/libpng/libpng.gyp:libpng',
28 '../third_party/zlib/zlib.gyp:zlib',
29 '../url/url.gyp:url_lib',
30 'base/strings/ui_strings.gyp:ui_strings',
36 # Export these dependencies since text_elider.h includes ICU headers.
37 'export_dependent_settings': [
39 '../third_party/icu/icu.gyp:icui18n',
40 '../third_party/icu/icu.gyp:icuuc',
43 'android/ui_jni_registrar.cc',
44 'android/ui_jni_registrar.h',
45 'android/view_android.cc',
46 'android/view_android.h',
47 'android/window_android.cc',
48 'android/window_android.h',
49 'base/accelerators/accelerator.cc',
50 'base/accelerators/accelerator.h',
51 'base/accelerators/menu_label_accelerator_util_linux.cc',
52 'base/accelerators/menu_label_accelerator_util_linux.h',
53 'base/accelerators/platform_accelerator.h',
54 'base/accelerators/platform_accelerator_cocoa.h',
55 'base/accelerators/platform_accelerator_cocoa.mm',
56 'base/accelerators/platform_accelerator_gtk.cc',
57 'base/accelerators/platform_accelerator_gtk.h',
58 'base/accelerators/accelerator_manager.cc',
59 'base/accelerators/accelerator_manager.h',
60 'base/accessibility/accessibility_types.h',
61 'base/accessibility/accessible_text_utils.cc',
62 'base/accessibility/accessible_text_utils.h',
63 'base/accessibility/accessible_view_state.cc',
64 'base/accessibility/accessible_view_state.h',
65 'base/animation/animation.cc',
66 'base/animation/animation.h',
67 'base/animation/animation_container.cc',
68 'base/animation/animation_container.h',
69 'base/animation/animation_container_element.h',
70 'base/animation/animation_container_observer.h',
71 'base/animation/animation_delegate.h',
72 'base/animation/linear_animation.cc',
73 'base/animation/linear_animation.h',
74 'base/animation/multi_animation.cc',
75 'base/animation/multi_animation.h',
76 'base/animation/slide_animation.cc',
77 'base/animation/slide_animation.h',
78 'base/animation/throb_animation.cc',
79 'base/animation/throb_animation.h',
80 'base/animation/tween.cc',
81 'base/animation/tween.h',
83 'base/clipboard/clipboard.cc',
84 'base/clipboard/clipboard.h',
85 'base/clipboard/clipboard_android.cc',
86 'base/clipboard/clipboard_android_initialization.h',
87 'base/clipboard/clipboard_aura.cc',
88 'base/clipboard/clipboard_aurax11.cc',
89 'base/clipboard/clipboard_constants.cc',
90 'base/clipboard/clipboard_gtk.cc',
91 'base/clipboard/clipboard_mac.mm',
92 'base/clipboard/clipboard_util_win.cc',
93 'base/clipboard/clipboard_util_win.h',
94 'base/clipboard/clipboard_win.cc',
95 'base/clipboard/custom_data_helper.cc',
96 'base/clipboard/custom_data_helper.h',
97 'base/clipboard/custom_data_helper_linux.cc',
98 'base/clipboard/custom_data_helper_mac.mm',
99 'base/clipboard/scoped_clipboard_writer.cc',
100 'base/clipboard/scoped_clipboard_writer.h',
101 'base/cocoa/animation_utils.h',
102 'base/cocoa/base_view.h',
103 'base/cocoa/base_view.mm',
104 'base/cocoa/cocoa_event_utils.h',
105 'base/cocoa/cocoa_event_utils.mm',
106 'base/cocoa/controls/hover_image_menu_button.h',
107 'base/cocoa/controls/hover_image_menu_button.mm',
108 'base/cocoa/controls/hover_image_menu_button_cell.h',
109 'base/cocoa/controls/hover_image_menu_button_cell.mm',
110 'base/cocoa/controls/hyperlink_button_cell.h',
111 'base/cocoa/controls/hyperlink_button_cell.mm',
112 'base/cocoa/events_mac.mm',
113 'base/cocoa/find_pasteboard.h',
114 'base/cocoa/find_pasteboard.mm',
115 'base/cocoa/flipped_view.h',
116 'base/cocoa/flipped_view.mm',
117 'base/cocoa/focus_tracker.h',
118 'base/cocoa/focus_tracker.mm',
119 'base/cocoa/focus_window_set.h',
120 'base/cocoa/focus_window_set.mm',
121 'base/cocoa/fullscreen_window_manager.h',
122 'base/cocoa/fullscreen_window_manager.mm',
123 'base/cocoa/hover_button.h',
124 'base/cocoa/hover_button.mm',
125 'base/cocoa/hover_image_button.h',
126 'base/cocoa/hover_image_button.mm',
127 'base/cocoa/menu_controller.h',
128 'base/cocoa/menu_controller.mm',
129 'base/cocoa/nib_loading.h',
130 'base/cocoa/nib_loading.mm',
131 'base/cocoa/nsgraphics_context_additions.h',
132 'base/cocoa/nsgraphics_context_additions.mm',
133 'base/cocoa/tracking_area.h',
134 'base/cocoa/tracking_area.mm',
135 'base/cocoa/underlay_opengl_hosting_window.h',
136 'base/cocoa/underlay_opengl_hosting_window.mm',
137 'base/cocoa/view_description.h',
138 'base/cocoa/view_description.mm',
139 'base/cocoa/window_size_constants.h',
140 'base/cocoa/window_size_constants.mm',
141 'base/cursor/cursor.cc',
142 'base/cursor/cursor.h',
143 'base/cursor/cursor_loader.h',
144 'base/cursor/cursor_loader_null.cc',
145 'base/cursor/cursor_loader_null.h',
146 'base/cursor/cursor_loader_win.cc',
147 'base/cursor/cursor_null.cc',
148 'base/cursor/cursor_loader_win.h',
149 'base/cursor/cursor_loader_x11.cc',
150 'base/cursor/cursor_loader_x11.h',
151 'base/cursor/cursor_win.cc',
152 'base/cursor/cursor_x11.cc',
153 'base/cursor/cursors_aura.cc',
154 'base/cursor/cursors_aura.h',
155 'base/default_theme_provider.cc',
156 'base/default_theme_provider.h',
157 'base/default_theme_provider_mac.mm',
158 'base/dragdrop/cocoa_dnd_util.h',
159 'base/dragdrop/cocoa_dnd_util.mm',
160 'base/dragdrop/drag_drop_types.h',
161 'base/dragdrop/drag_drop_types_win.cc',
162 'base/dragdrop/drag_source_win.cc',
163 'base/dragdrop/drag_source_win.h',
164 'base/dragdrop/drag_utils.cc',
165 'base/dragdrop/drag_utils.h',
166 'base/dragdrop/drag_utils_aura.cc',
167 'base/dragdrop/drag_utils_win.cc',
168 'base/dragdrop/drop_target_win.cc',
169 'base/dragdrop/drop_target_win.h',
170 'base/dragdrop/gtk_dnd_util.cc',
171 'base/dragdrop/gtk_dnd_util.h',
172 'base/dragdrop/os_exchange_data.cc',
173 'base/dragdrop/os_exchange_data.h',
174 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
175 'base/dragdrop/os_exchange_data_provider_aurax11.h',
176 'base/dragdrop/os_exchange_data_provider_aura.cc',
177 'base/dragdrop/os_exchange_data_provider_aura.h',
178 'base/dragdrop/os_exchange_data_provider_win.cc',
179 'base/dragdrop/os_exchange_data_provider_win.h',
180 'base/events/event.cc',
181 'base/events/event.h',
182 'base/events/event_constants.h',
183 'base/events/event_conversion_gtk.cc',
184 'base/events/event_conversion_gtk.h',
185 'base/events/event_dispatcher.cc',
186 'base/events/event_dispatcher.h',
187 'base/events/event_handler.cc',
188 'base/events/event_handler.h',
189 'base/events/event_target.cc',
190 'base/events/event_target.h',
191 'base/events/event_utils.cc',
192 'base/events/event_utils.h',
193 'base/gestures/gesture_configuration.cc',
194 'base/gestures/gesture_configuration.h',
195 'base/gestures/gesture_point.cc',
196 'base/gestures/gesture_point.h',
197 'base/gestures/gesture_recognizer.h',
198 'base/gestures/gesture_recognizer_impl.cc',
199 'base/gestures/gesture_recognizer_impl.h',
200 'base/gestures/gesture_sequence.cc',
201 'base/gestures/gesture_sequence.h',
202 'base/gestures/gesture_types.cc',
203 'base/gestures/gesture_types.h',
204 'base/gestures/gesture_util.cc',
205 'base/gestures/gesture_util.h',
206 'base/gestures/velocity_calculator.cc',
207 'base/gestures/velocity_calculator.h',
208 'base/gtk/event_synthesis_gtk.cc',
209 'base/gtk/event_synthesis_gtk.h',
210 'base/gtk/focus_store_gtk.cc',
211 'base/gtk/focus_store_gtk.h',
212 'base/gtk/g_object_destructor_filo.cc',
213 'base/gtk/g_object_destructor_filo.h',
214 'base/gtk/gtk_expanded_container.cc',
215 'base/gtk/gtk_expanded_container.h',
216 'base/gtk/gtk_floating_container.cc',
217 'base/gtk/gtk_floating_container.h',
218 'base/gtk/gtk_hig_constants.h',
219 'base/gtk/gtk_im_context_util.cc',
220 'base/gtk/gtk_im_context_util.h',
221 'base/gtk/gtk_screen_util.cc',
222 'base/gtk/gtk_screen_util.h',
223 'base/gtk/gtk_signal.h',
224 'base/gtk/gtk_signal_registrar.cc',
225 'base/gtk/gtk_signal_registrar.h',
226 'base/gtk/gtk_windowing.cc',
227 'base/gtk/gtk_windowing.h',
228 'base/gtk/owned_widget_gtk.cc',
229 'base/gtk/owned_widget_gtk.h',
230 'base/gtk/scoped_gobject.h',
231 'base/gtk/scoped_region.cc',
232 'base/gtk/scoped_region.h',
234 'base/keycodes/keyboard_code_conversion.cc',
235 'base/keycodes/keyboard_code_conversion.h',
236 'base/keycodes/keyboard_code_conversion_android.cc',
237 'base/keycodes/keyboard_code_conversion_android.h',
238 'base/keycodes/keyboard_code_conversion_gtk.cc',
239 'base/keycodes/keyboard_code_conversion_gtk.h',
240 'base/keycodes/keyboard_code_conversion_mac.h',
241 'base/keycodes/keyboard_code_conversion_mac.mm',
242 'base/keycodes/keyboard_code_conversion_win.cc',
243 'base/keycodes/keyboard_code_conversion_win.h',
244 'base/keycodes/keyboard_code_conversion_x.cc',
245 'base/keycodes/keyboard_code_conversion_x.h',
246 'base/keycodes/keyboard_codes.h',
247 'base/keycodes/usb_keycode_map.h',
248 'base/latency_info.cc',
249 'base/latency_info.h',
250 'base/l10n/l10n_font_util.cc',
251 'base/l10n/l10n_font_util.h',
252 'base/l10n/l10n_util.cc',
253 'base/l10n/l10n_util.h',
254 'base/l10n/l10n_util_android.h',
255 'base/l10n/l10n_util_android.cc',
256 'base/l10n/l10n_util_collator.h',
257 'base/l10n/l10n_util_mac.h',
258 'base/l10n/l10n_util_mac.mm',
259 'base/l10n/l10n_util_posix.cc',
260 'base/l10n/l10n_util_win.cc',
261 'base/l10n/l10n_util_win.h',
262 'base/l10n/time_format.cc',
263 'base/l10n/time_format.h',
266 'base/layout_mac.mm',
267 'base/models/button_menu_item_model.cc',
268 'base/models/button_menu_item_model.h',
269 'base/models/combobox_model.cc',
270 'base/models/combobox_model.h',
271 'base/models/dialog_model.cc',
272 'base/models/dialog_model.h',
273 'base/models/list_model.h',
274 'base/models/list_model_observer.h',
275 'base/models/list_selection_model.cc',
276 'base/models/list_selection_model.h',
277 'base/models/menu_model.cc',
278 'base/models/menu_model.h',
279 'base/models/menu_model_delegate.h',
280 'base/models/menu_separator_types.h',
281 'base/models/simple_menu_model.cc',
282 'base/models/simple_menu_model.h',
283 'base/models/table_model.cc',
284 'base/models/table_model.h',
285 'base/models/table_model_observer.h',
286 'base/models/tree_model.cc',
287 'base/models/tree_model.h',
288 'base/models/tree_node_iterator.h',
289 'base/models/tree_node_model.h',
290 'base/ozone/evdev/key_event_converter_ozone.cc',
291 'base/ozone/evdev/key_event_converter_ozone.h',
292 'base/ozone/evdev/touch_event_converter_ozone.cc',
293 'base/ozone/evdev/touch_event_converter_ozone.h',
294 'base/ozone/event_converter_ozone.cc',
295 'base/ozone/event_converter_ozone.h',
296 'base/ozone/event_factory_delegate_ozone.h',
297 'base/ozone/event_factory_ozone.cc',
298 'base/ozone/event_factory_ozone.h',
299 'base/ozone/events_ozone.cc',
300 'base/ozone/surface_factory_ozone.cc',
301 'base/ozone/surface_factory_ozone.h',
302 'base/range/range.cc',
303 'base/range/range.h',
304 'base/range/range_mac.mm',
305 'base/range/range_win.cc',
306 'base/resource/data_pack.cc',
307 'base/resource/data_pack.h',
308 'base/resource/resource_bundle.cc',
309 'base/resource/resource_bundle.h',
310 'base/resource/resource_bundle_android.cc',
311 'base/resource/resource_bundle_auralinux.cc',
312 'base/resource/resource_bundle_gtk.cc',
313 'base/resource/resource_bundle_ios.mm',
314 'base/resource/resource_bundle_mac.mm',
315 'base/resource/resource_bundle_win.cc',
316 'base/resource/resource_bundle_win.h',
317 'base/resource/resource_data_dll_win.cc',
318 'base/resource/resource_data_dll_win.h',
319 'base/resource/resource_handle.h',
320 'base/text/bytes_formatting.cc',
321 'base/text/bytes_formatting.h',
322 'base/text/text_elider.cc',
323 'base/text/text_elider.h',
324 'base/text/utf16_indexing.cc',
325 'base/text/utf16_indexing.h',
326 'base/theme_provider.cc',
327 'base/theme_provider.h',
328 'base/touch/touch_device.cc',
329 'base/touch/touch_device.h',
330 'base/touch/touch_device_android.cc',
331 'base/touch/touch_device_aurax11.cc',
332 'base/touch/touch_device_ozone.cc',
333 'base/touch/touch_device_win.cc',
334 'base/touch/touch_editing_controller.cc',
335 'base/touch/touch_editing_controller.h',
336 'base/touch/touch_enabled.cc',
337 'base/touch/touch_enabled.h',
338 'base/touch/touch_factory_x11.cc',
339 'base/touch/touch_factory_x11.h',
340 'base/ui_base_exports.cc',
341 'base/ui_base_paths.cc',
342 'base/ui_base_paths.h',
343 'base/ui_base_switches.cc',
344 'base/ui_base_switches.h',
345 'base/ui_base_switches_util.cc',
346 'base/ui_base_switches_util.h',
347 'base/ui_base_types.cc',
348 'base/ui_base_types.h',
352 'base/win/accessibility_ids_win.h',
353 'base/win/accessibility_misc_utils.cc',
354 'base/win/accessibility_misc_utils.h',
355 'base/win/atl_module.h',
358 'base/win/events_win.cc',
359 'base/win/extra_sdk_defines.h',
360 'base/win/foreground_helper.cc',
361 'base/win/foreground_helper.h',
362 'base/win/hidden_window.cc',
363 'base/win/hidden_window.h',
364 'base/win/hwnd_subclass.cc',
365 'base/win/hwnd_subclass.h',
366 'base/win/hwnd_util.cc',
367 'base/win/hwnd_util.h',
368 'base/win/message_box_win.cc',
369 'base/win/message_box_win.h',
370 'base/win/mouse_wheel_util.cc',
371 'base/win/mouse_wheel_util.h',
372 'base/win/scoped_ole_initializer.cc',
373 'base/win/scoped_ole_initializer.h',
374 'base/win/scoped_set_map_mode.h',
377 'base/win/singleton_hwnd.cc',
378 'base/win/singleton_hwnd.h',
379 'base/win/touch_input.cc',
380 'base/win/touch_input.h',
381 'base/win/window_impl.cc',
382 'base/win/window_impl.h',
383 'base/window_open_disposition.cc',
384 'base/window_open_disposition.h',
385 'base/work_area_watcher_observer.h',
386 'base/x/active_window_watcher_x.cc',
387 'base/x/active_window_watcher_x.h',
388 'base/x/active_window_watcher_x_observer.h',
389 'base/x/device_data_manager.cc',
390 'base/x/device_data_manager.h',
391 'base/x/device_list_cache_x.cc',
392 'base/x/device_list_cache_x.h',
393 'base/x/events_x.cc',
394 'base/x/root_window_property_watcher_x.cc',
395 'base/x/root_window_property_watcher_x.h',
396 'base/x/selection_owner.cc',
397 'base/x/selection_owner.h',
398 'base/x/selection_requestor.cc',
399 'base/x/selection_requestor.h',
400 'base/x/selection_utils.cc',
401 'base/x/selection_utils.h',
402 'base/x/work_area_watcher_x.cc',
403 'base/x/work_area_watcher_x.h',
404 'base/x/x11_atom_cache.cc',
405 'base/x/x11_atom_cache.h',
406 'base/x/x11_util.cc',
408 'base/x/x11_util_internal.h',
409 'gfx/android/device_display_info.cc',
410 'gfx/android/device_display_info.h',
411 'gfx/android/java_bitmap.cc',
412 'gfx/android/java_bitmap.h',
420 'gfx/canvas_android.cc',
422 'gfx/canvas_paint_gtk.h',
423 'gfx/canvas_paint_mac.h',
424 'gfx/canvas_paint_win.h',
425 'gfx/canvas_paint_gtk.cc',
426 'gfx/canvas_paint_mac.mm',
427 'gfx/canvas_paint_win.cc',
428 'gfx/canvas_skia.cc',
429 'gfx/canvas_skia_paint.h',
430 'gfx/codec/jpeg_codec.cc',
431 'gfx/codec/jpeg_codec.h',
432 'gfx/codec/png_codec.cc',
433 'gfx/codec/png_codec.h',
434 'gfx/color_analysis.cc',
435 'gfx/color_analysis.h',
436 'gfx/color_profile.cc',
437 'gfx/color_profile.h',
438 'gfx/color_profile_mac.cc',
439 'gfx/color_profile_win.cc',
440 'gfx/color_utils.cc',
444 'gfx/display_observer.cc',
445 'gfx/display_observer.h',
446 'gfx/favicon_size.cc',
447 'gfx/favicon_size.h',
450 'gfx/font_fallback_win.cc',
451 'gfx/font_fallback_win.h',
454 'gfx/font_render_params_android.cc',
455 'gfx/font_render_params_linux.cc',
456 'gfx/font_render_params_linux.h',
457 'gfx/font_smoothing_win.cc',
458 'gfx/font_smoothing_win.h',
461 'gfx/gpu_memory_buffer.cc',
462 'gfx/gpu_memory_buffer.h',
463 'gfx/image/canvas_image_source.cc',
464 'gfx/image/canvas_image_source.h',
465 'gfx/image/image.cc',
467 'gfx/image/image_family.cc',
468 'gfx/image/image_family.h',
469 'gfx/image/image_ios.mm',
470 'gfx/image/image_mac.mm',
471 'gfx/image/image_png_rep.cc',
472 'gfx/image/image_png_rep.h',
473 'gfx/image/image_skia.cc',
474 'gfx/image/image_skia.h',
475 'gfx/image/image_skia_operations.cc',
476 'gfx/image/image_skia_operations.h',
477 'gfx/image/image_skia_rep.cc',
478 'gfx/image/image_skia_rep.h',
479 'gfx/image/image_skia_source.h',
480 'gfx/image/image_skia_util_ios.h',
481 'gfx/image/image_skia_util_ios.mm',
482 'gfx/image/image_skia_util_mac.h',
483 'gfx/image/image_skia_util_mac.mm',
484 'gfx/image/image_util.cc',
485 'gfx/image/image_util.h',
486 'gfx/image/image_util_ios.mm',
492 'gfx/interpolated_transform.cc',
493 'gfx/interpolated_transform.h',
494 'gfx/mac/scoped_ns_disable_screen_updates.h',
497 'gfx/native_widget_types.h',
508 'gfx/platform_font.h',
509 'gfx/platform_font_android.cc',
510 'gfx/platform_font_ios.h',
511 'gfx/platform_font_ios.mm',
512 'gfx/platform_font_mac.h',
513 'gfx/platform_font_mac.mm',
514 'gfx/platform_font_pango.cc',
515 'gfx/platform_font_pango.h',
516 'gfx/platform_font_win.cc',
517 'gfx/platform_font_win.h',
523 'gfx/point_conversions.cc',
524 'gfx/point_conversions.h',
532 'gfx/rect_base_impl.h',
533 'gfx/rect_conversions.cc',
534 'gfx/rect_conversions.h',
537 'gfx/render_text.cc',
539 'gfx/render_text_linux.cc',
540 'gfx/render_text_linux.h',
541 'gfx/render_text_mac.cc',
542 'gfx/render_text_mac.h',
543 'gfx/render_text_win.cc',
544 'gfx/render_text_win.h',
545 'gfx/safe_integer_conversions.h',
546 'gfx/scoped_cg_context_save_gstate_mac.h',
547 'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
548 'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
549 'gfx/scoped_ui_graphics_push_context_ios.h',
550 'gfx/scoped_ui_graphics_push_context_ios.mm',
553 'gfx/screen_android.cc',
554 'gfx/screen_aura.cc',
560 'gfx/scrollbar_size.cc',
561 'gfx/scrollbar_size.h',
562 'gfx/selection_model.cc',
563 'gfx/selection_model.h',
564 'gfx/shadow_value.cc',
565 'gfx/shadow_value.h',
569 'gfx/size_conversions.cc',
570 'gfx/size_conversions.h',
573 'gfx/skbitmap_operations.cc',
574 'gfx/skbitmap_operations.h',
577 'gfx/skia_utils_gtk.cc',
578 'gfx/skia_utils_gtk.h',
581 'gfx/sys_color_change_listener.cc',
582 'gfx/sys_color_change_listener.h',
583 'gfx/text_constants.h',
588 'gfx/transform_util.cc',
589 'gfx/transform_util.h',
592 'gfx/vector2d_conversions.cc',
593 'gfx/vector2d_conversions.h',
598 'webui/jstemplate_builder.cc',
599 'webui/jstemplate_builder.h',
600 'webui/web_ui_util.cc',
601 'webui/web_ui_util.h',
603 'target_conditions': [
606 ['include', '^base/l10n/l10n_util_mac\\.mm$'],
616 '<(libjpeg_gyp_path):libjpeg',
619 # iOS only uses a subset of UI.
621 ['exclude', '\\.(cc|mm)$'],
622 ['include', '_ios\\.(cc|mm)$'],
623 ['include', '(^|/)ios/'],
624 ['include', '^gfx/'],
625 ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
626 ['include', '^base/animation/'],
627 ['include', '^base/l10n/'],
628 ['include', '^base/layout'],
629 ['include', '^base/range/'],
630 ['include', '^base/resource/'],
631 ['include', '^base/text/text_elider\\.'],
632 ['include', '^base/ui_base_'],
636 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
640 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
641 # http://crbug.com/105550
642 ['use_canvas_skia==1', {
644 'gfx/canvas_android.cc',
647 }, { # use_canvas_skia!=1
649 'gfx/canvas_skia.cc',
654 ['exclude', 'gfx/gtk_'],
655 ['exclude', 'gfx/gtk_util.cc'],
656 ['exclude', 'gfx/gtk_util.h'],
657 ['exclude', 'gfx/screen_gtk.cc'],
658 ['exclude', 'base/work_area_watcher_observer.h'],
659 ['exclude', 'base/x/active_window_watcher_x.cc'],
660 ['exclude', 'base/x/active_window_watcher_x.h'],
661 ['exclude', 'base/x/active_window_watcher_x_observer.h'],
662 ['exclude', 'base/x/root_window_property_watcher_x.cc'],
663 ['exclude', 'base/x/root_window_property_watcher_x.h'],
664 ['exclude', 'base/x/work_area_watcher_x.cc'],
665 ['exclude', 'base/x/work_area_watcher_x.h'],
669 'base/cursor/cursor.cc',
670 'base/cursor/cursor.h',
671 'base/cursor/cursor_loader_x11.cc',
672 'base/cursor/cursor_loader_x11.h',
673 'base/cursor/cursor_win.cc',
674 'base/cursor/cursor_x11.cc',
675 'base/x/selection_owner.cc',
676 'base/x/selection_owner.h',
677 'base/x/selection_requestor.cc',
678 'base/x/selection_requestor.h',
679 'base/x/selection_utils.cc',
680 'base/x/selection_utils.h',
685 ['exclude', '^gfx/pango_util\\.'],
686 ['exclude', '^gfx/platform_font_pango\\.'],
689 ['use_aura==0 or OS!="linux"', {
691 'base/resource/resource_bundle_auralinux.cc',
694 ['use_aura==1 and OS=="win"', {
696 ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
699 ['use_aura==0 and toolkit_views==0', {
701 ['exclude', '^base/gestures/*'],
706 # font_gtk.cc uses fontconfig.
707 '../build/linux/system.gyp:fontconfig',
708 '../build/linux/system.gyp:glib',
711 ['toolkit_views==0', {
712 # Note: because of gyp predence rules this has to be defined as
713 # 'sources/' rather than 'sources!'.
715 ['exclude', '^base/dragdrop/drag_utils.cc'],
716 ['exclude', '^base/dragdrop/drag_utils.h'],
717 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
718 ['exclude', '^base/dragdrop/os_exchange_data.h'],
721 # Note: because of gyp predence rules this has to be defined as
722 # 'sources/' rather than 'sources!'.
724 ['include', '^base/dragdrop/os_exchange_data.cc'],
729 '../build/linux/system.gyp:pangocairo',
734 ['toolkit_uses_gtk == 1', {
736 '../build/linux/system.gyp:gtk',
739 'gfx/gtk_native_view_id_manager.cc',
740 'gfx/gtk_native_view_id_manager.h',
741 'gfx/gtk_preserve_window.cc',
742 'gfx/gtk_preserve_window.h',
745 'gfx/image/cairo_cached_surface.cc',
746 'gfx/image/cairo_cached_surface.h',
749 ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
751 'base/clipboard/clipboard_aurax11.cc',
752 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
753 'base/touch/touch_device.cc',
757 'base/clipboard/clipboard_aura.cc',
758 'base/dragdrop/os_exchange_data_provider_aura.cc',
759 'base/dragdrop/os_exchange_data_provider_aura.h',
760 'base/touch/touch_device_aurax11.cc',
771 'base/touch/touch_device.cc',
775 '../third_party/wtl/include',
777 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
778 # C4324 is structure was padded due to __declspec(align()), which is
780 'msvs_disabled_warnings': [ 4267, 4324 ],
788 'AdditionalDependencies': [
813 'base/dragdrop/drag_drop_types.h',
814 'base/dragdrop/os_exchange_data.cc',
817 ['exclude', '^base/win/'],
822 'base/dragdrop/drag_utils.cc',
823 'base/dragdrop/drag_utils.h',
827 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
828 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
829 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
834 'all_dependent_settings': {
842 '-lXrender', # For XRender* function calls in x11_util.cc.
850 '-lXrender', # For XRender* function calls in x11_util.cc.
854 '../build/linux/system.gyp:x11',
855 '../build/linux/system.gyp:xext',
856 '../build/linux/system.gyp:xfixes',
860 ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
861 ['exclude', 'base/x/*'],
866 'base/cursor/cursor_null.cc',
867 'base/cursor/cursor_loader_null.cc',
868 'base/cursor/cursor_loader_null.h',
871 ['toolkit_views==0', {
873 'base/events/event.cc',
874 'base/events/event.h',
875 'base/events/event_dispatcher.cc',
876 'base/events/event_dispatcher.h',
877 'base/events/event_handler.cc',
878 'base/events/event_handler.h',
879 'base/events/event_target.cc',
880 'base/events/event_target.h',
881 'base/x/events_x.cc',
886 'base/dragdrop/drag_utils.cc',
887 'base/dragdrop/drag_utils.h',
888 'base/touch/touch_device.cc',
894 '<(SHARED_INTERMEDIATE_DIR)/ui',
902 ['OS=="android" and android_webview_build==0', {
907 ['OS=="android" or OS=="ios"', {
909 'gfx/render_text.cc',
918 ['use_system_icu==1', {
919 # When using the system icu, the icu targets generate shim headers
920 # which are included by public headers in the ui target, so we need
921 # ui to be a hard dependency for all its users.
922 'hard_dependency': 1,
927 'target_name': 'webui_test_support',
929 'direct_dependent_settings': {
931 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
940 'target_name': 'ui_jni_headers',
942 'direct_dependent_settings': {
944 '<(SHARED_INTERMEDIATE_DIR)/ui',
948 'android/java/src/org/chromium/ui/Clipboard.java',
949 'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
950 'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
951 'android/java/src/org/chromium/ui/LocalizationUtils.java',
952 'android/java/src/org/chromium/ui/SelectFileDialog.java',
953 'android/java/src/org/chromium/ui/ViewAndroid.java',
954 'android/java/src/org/chromium/ui/WindowAndroid.java',
957 'jni_gen_package': 'ui',
959 'includes': [ '../build/jni_generator.gypi' ],
962 'target_name': 'ui_java',
965 'java_in_dir': '../ui/android/java',
966 'has_java_resources': 1,
967 'R_package': 'org.chromium.ui',
968 'R_package_relpath': 'org/chromium/ui',
969 'java_strings_grd': 'android_ui_strings.grd',
972 '../base/base.gyp:base_java',
973 'window_open_disposition_java',
975 'includes': [ '../build/java.gypi' ],
978 'target_name': 'window_open_disposition_java',
981 'android/java/WindowOpenDisposition.template',
984 'package_name': 'org/chromium/ui',
985 'template_deps': ['base/window_open_disposition_list.h'],
987 'includes': [ '../build/android/java_cpp_template.gypi' ],
994 'target_name': 'ui_cocoa_third_party_toolkits',
995 'type': '<(component)',
997 # Build Apple sample code
998 '../third_party/apple_sample_code/ImageAndTextCell.h',
999 '../third_party/apple_sample_code/ImageAndTextCell.m',
1000 # Build the necessary GTM sources
1001 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
1002 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
1003 '../third_party/GTM/AppKit/GTMIBArray.h',
1004 '../third_party/GTM/AppKit/GTMIBArray.m',
1005 '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
1006 '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
1007 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
1008 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
1009 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
1010 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
1011 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
1012 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
1013 '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
1014 '../third_party/GTM/AppKit/GTMUILocalizer.h',
1015 '../third_party/GTM/AppKit/GTMUILocalizer.m',
1016 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
1017 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
1018 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
1019 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
1020 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
1021 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
1022 # MolokoCacao additions
1023 '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
1024 '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
1025 # Build necessary Mozilla sources
1026 '../third_party/mozilla/NSScreen+Utils.h',
1027 '../third_party/mozilla/NSScreen+Utils.m',
1028 '../third_party/mozilla/NSWorkspace+Utils.h',
1029 '../third_party/mozilla/NSWorkspace+Utils.m',
1033 '../third_party/apple',
1034 '../third_party/GTM',
1035 '../third_party/GTM/AppKit',
1036 '../third_party/GTM/DebugUtils',
1037 '../third_party/GTM/Foundation',
1041 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1042 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1046 ['component=="shared_library"', {
1047 # GTM is third-party code, so we don't want to add _EXPORT
1048 # annotations to it, so build it without -fvisibility=hidden
1049 # (else the interface class symbols will be hidden in a 64bit
1050 # build). Only do this in a component build, so that the shipping
1051 # chrome binary doesn't end up with unnecessarily exported
1054 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',