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/platform_accelerator.h',
52 'base/accelerators/platform_accelerator_cocoa.h',
53 'base/accelerators/platform_accelerator_cocoa.mm',
54 'base/accelerators/platform_accelerator_gtk.cc',
55 'base/accelerators/platform_accelerator_gtk.h',
56 'base/accelerators/accelerator_manager.cc',
57 'base/accelerators/accelerator_manager.h',
58 'base/accessibility/accessibility_types.h',
59 'base/accessibility/accessible_text_utils.cc',
60 'base/accessibility/accessible_text_utils.h',
61 'base/accessibility/accessible_view_state.cc',
62 'base/accessibility/accessible_view_state.h',
63 'base/animation/animation.cc',
64 'base/animation/animation.h',
65 'base/animation/animation_container.cc',
66 'base/animation/animation_container.h',
67 'base/animation/animation_container_element.h',
68 'base/animation/animation_container_observer.h',
69 'base/animation/animation_delegate.h',
70 'base/animation/linear_animation.cc',
71 'base/animation/linear_animation.h',
72 'base/animation/multi_animation.cc',
73 'base/animation/multi_animation.h',
74 'base/animation/slide_animation.cc',
75 'base/animation/slide_animation.h',
76 'base/animation/throb_animation.cc',
77 'base/animation/throb_animation.h',
78 'base/animation/tween.cc',
79 'base/animation/tween.h',
81 'base/clipboard/clipboard.cc',
82 'base/clipboard/clipboard.h',
83 'base/clipboard/clipboard_android.cc',
84 'base/clipboard/clipboard_android_initialization.h',
85 'base/clipboard/clipboard_aura.cc',
86 'base/clipboard/clipboard_aurax11.cc',
87 'base/clipboard/clipboard_constants.cc',
88 'base/clipboard/clipboard_gtk.cc',
89 'base/clipboard/clipboard_mac.mm',
90 'base/clipboard/clipboard_util_win.cc',
91 'base/clipboard/clipboard_util_win.h',
92 'base/clipboard/clipboard_win.cc',
93 'base/clipboard/custom_data_helper.cc',
94 'base/clipboard/custom_data_helper.h',
95 'base/clipboard/custom_data_helper_linux.cc',
96 'base/clipboard/custom_data_helper_mac.mm',
97 'base/clipboard/scoped_clipboard_writer.cc',
98 'base/clipboard/scoped_clipboard_writer.h',
99 'base/cocoa/animation_utils.h',
100 'base/cocoa/base_view.h',
101 'base/cocoa/base_view.mm',
102 'base/cocoa/cocoa_event_utils.h',
103 'base/cocoa/cocoa_event_utils.mm',
104 'base/cocoa/controls/hover_image_menu_button.h',
105 'base/cocoa/controls/hover_image_menu_button.mm',
106 'base/cocoa/controls/hover_image_menu_button_cell.h',
107 'base/cocoa/controls/hover_image_menu_button_cell.mm',
108 'base/cocoa/events_mac.mm',
109 'base/cocoa/find_pasteboard.h',
110 'base/cocoa/find_pasteboard.mm',
111 'base/cocoa/flipped_view.h',
112 'base/cocoa/flipped_view.mm',
113 'base/cocoa/focus_tracker.h',
114 'base/cocoa/focus_tracker.mm',
115 'base/cocoa/focus_window_set.h',
116 'base/cocoa/focus_window_set.mm',
117 'base/cocoa/fullscreen_window_manager.h',
118 'base/cocoa/fullscreen_window_manager.mm',
119 'base/cocoa/hover_button.h',
120 'base/cocoa/hover_button.mm',
121 'base/cocoa/hover_image_button.h',
122 'base/cocoa/hover_image_button.mm',
123 'base/cocoa/menu_controller.h',
124 'base/cocoa/menu_controller.mm',
125 'base/cocoa/nib_loading.h',
126 'base/cocoa/nib_loading.mm',
127 'base/cocoa/nsgraphics_context_additions.h',
128 'base/cocoa/nsgraphics_context_additions.mm',
129 'base/cocoa/tracking_area.h',
130 'base/cocoa/tracking_area.mm',
131 'base/cocoa/underlay_opengl_hosting_window.h',
132 'base/cocoa/underlay_opengl_hosting_window.mm',
133 'base/cocoa/view_description.h',
134 'base/cocoa/view_description.mm',
135 'base/cocoa/window_size_constants.h',
136 'base/cocoa/window_size_constants.mm',
137 'base/cursor/cursor.cc',
138 'base/cursor/cursor.h',
139 'base/cursor/cursor_loader.h',
140 'base/cursor/cursor_loader_null.cc',
141 'base/cursor/cursor_loader_null.h',
142 'base/cursor/cursor_loader_win.cc',
143 'base/cursor/cursor_null.cc',
144 'base/cursor/cursor_loader_win.h',
145 'base/cursor/cursor_loader_x11.cc',
146 'base/cursor/cursor_loader_x11.h',
147 'base/cursor/cursor_win.cc',
148 'base/cursor/cursor_x11.cc',
149 'base/cursor/cursors_aura.cc',
150 'base/cursor/cursors_aura.h',
151 'base/default_theme_provider.cc',
152 'base/default_theme_provider.h',
153 'base/default_theme_provider_mac.mm',
154 'base/dragdrop/cocoa_dnd_util.h',
155 'base/dragdrop/cocoa_dnd_util.mm',
156 'base/dragdrop/drag_drop_types.h',
157 'base/dragdrop/drag_drop_types_win.cc',
158 'base/dragdrop/drag_source_win.cc',
159 'base/dragdrop/drag_source_win.h',
160 'base/dragdrop/drag_utils.cc',
161 'base/dragdrop/drag_utils.h',
162 'base/dragdrop/drag_utils_aura.cc',
163 'base/dragdrop/drag_utils_win.cc',
164 'base/dragdrop/drop_target_win.cc',
165 'base/dragdrop/drop_target_win.h',
166 'base/dragdrop/gtk_dnd_util.cc',
167 'base/dragdrop/gtk_dnd_util.h',
168 'base/dragdrop/os_exchange_data.cc',
169 'base/dragdrop/os_exchange_data.h',
170 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
171 'base/dragdrop/os_exchange_data_provider_aurax11.h',
172 'base/dragdrop/os_exchange_data_provider_aura.cc',
173 'base/dragdrop/os_exchange_data_provider_aura.h',
174 'base/dragdrop/os_exchange_data_provider_win.cc',
175 'base/dragdrop/os_exchange_data_provider_win.h',
176 'base/events/event.cc',
177 'base/events/event.h',
178 'base/events/event_constants.h',
179 'base/events/event_conversion_gtk.cc',
180 'base/events/event_conversion_gtk.h',
181 'base/events/event_dispatcher.cc',
182 'base/events/event_dispatcher.h',
183 'base/events/event_handler.cc',
184 'base/events/event_handler.h',
185 'base/events/event_target.cc',
186 'base/events/event_target.h',
187 'base/events/event_utils.cc',
188 'base/events/event_utils.h',
189 'base/events/key_identifier_conversion.cc',
190 'base/events/key_identifier_conversion.h',
191 'base/gestures/gesture_configuration.cc',
192 'base/gestures/gesture_configuration.h',
193 'base/gestures/gesture_point.cc',
194 'base/gestures/gesture_point.h',
195 'base/gestures/gesture_recognizer.h',
196 'base/gestures/gesture_recognizer_impl.cc',
197 'base/gestures/gesture_recognizer_impl.h',
198 'base/gestures/gesture_sequence.cc',
199 'base/gestures/gesture_sequence.h',
200 'base/gestures/gesture_types.cc',
201 'base/gestures/gesture_types.h',
202 'base/gestures/gesture_util.cc',
203 'base/gestures/gesture_util.h',
204 'base/gestures/velocity_calculator.cc',
205 'base/gestures/velocity_calculator.h',
206 'base/gtk/event_synthesis_gtk.cc',
207 'base/gtk/event_synthesis_gtk.h',
208 'base/gtk/focus_store_gtk.cc',
209 'base/gtk/focus_store_gtk.h',
210 'base/gtk/g_object_destructor_filo.cc',
211 'base/gtk/g_object_destructor_filo.h',
212 'base/gtk/gtk_expanded_container.cc',
213 'base/gtk/gtk_expanded_container.h',
214 'base/gtk/gtk_floating_container.cc',
215 'base/gtk/gtk_floating_container.h',
216 'base/gtk/gtk_hig_constants.h',
217 'base/gtk/gtk_im_context_util.cc',
218 'base/gtk/gtk_im_context_util.h',
219 'base/gtk/gtk_screen_util.cc',
220 'base/gtk/gtk_screen_util.h',
221 'base/gtk/gtk_signal.h',
222 'base/gtk/gtk_signal_registrar.cc',
223 'base/gtk/gtk_signal_registrar.h',
224 'base/gtk/gtk_windowing.cc',
225 'base/gtk/gtk_windowing.h',
226 'base/gtk/menu_label_accelerator_util.cc',
227 'base/gtk/menu_label_accelerator_util.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_gtk.cc',
237 'base/keycodes/keyboard_code_conversion_gtk.h',
238 'base/keycodes/keyboard_code_conversion_mac.h',
239 'base/keycodes/keyboard_code_conversion_mac.mm',
240 'base/keycodes/keyboard_code_conversion_win.cc',
241 'base/keycodes/keyboard_code_conversion_win.h',
242 'base/keycodes/keyboard_code_conversion_x.cc',
243 'base/keycodes/keyboard_code_conversion_x.h',
244 'base/keycodes/keyboard_codes.h',
245 'base/keycodes/usb_keycode_map.h',
246 'base/latency_info.cc',
247 'base/latency_info.h',
248 'base/l10n/l10n_font_util.cc',
249 'base/l10n/l10n_font_util.h',
250 'base/l10n/l10n_util.cc',
251 'base/l10n/l10n_util.h',
252 'base/l10n/l10n_util_android.h',
253 'base/l10n/l10n_util_android.cc',
254 'base/l10n/l10n_util_collator.h',
255 'base/l10n/l10n_util_mac.h',
256 'base/l10n/l10n_util_mac.mm',
257 'base/l10n/l10n_util_posix.cc',
258 'base/l10n/l10n_util_win.cc',
259 'base/l10n/l10n_util_win.h',
262 'base/layout_mac.mm',
263 'base/models/button_menu_item_model.cc',
264 'base/models/button_menu_item_model.h',
265 'base/models/combobox_model.cc',
266 'base/models/combobox_model.h',
267 'base/models/dialog_model.cc',
268 'base/models/dialog_model.h',
269 'base/models/list_model.h',
270 'base/models/list_model_observer.h',
271 'base/models/list_selection_model.cc',
272 'base/models/list_selection_model.h',
273 'base/models/menu_model.cc',
274 'base/models/menu_model.h',
275 'base/models/menu_model_delegate.h',
276 'base/models/menu_separator_types.h',
277 'base/models/simple_menu_model.cc',
278 'base/models/simple_menu_model.h',
279 'base/models/table_model.cc',
280 'base/models/table_model.h',
281 'base/models/table_model_observer.h',
282 'base/models/tree_model.cc',
283 'base/models/tree_model.h',
284 'base/models/tree_node_iterator.h',
285 'base/models/tree_node_model.h',
286 'base/ozone/events_ozone.cc',
287 'base/ozone/event_factory_ozone.cc',
288 'base/ozone/event_factory_ozone.h',
289 'base/ozone/event_converter_ozone.cc',
290 'base/ozone/event_converter_ozone.h',
291 'base/ozone/events_ozone.cc',
292 'base/ozone/key_event_converter_ozone.cc',
293 'base/ozone/key_event_converter_ozone.h',
294 'base/ozone/surface_factory_ozone.cc',
295 'base/ozone/surface_factory_ozone.h',
296 'base/ozone/touch_event_converter_ozone.cc',
297 'base/ozone/touch_event_converter_ozone.h',
298 'base/range/range.cc',
299 'base/range/range.h',
300 'base/range/range_mac.mm',
301 'base/range/range_win.cc',
302 'base/resource/data_pack.cc',
303 'base/resource/data_pack.h',
304 'base/resource/resource_bundle.cc',
305 'base/resource/resource_bundle.h',
306 'base/resource/resource_bundle_android.cc',
307 'base/resource/resource_bundle_auralinux.cc',
308 'base/resource/resource_bundle_gtk.cc',
309 'base/resource/resource_bundle_ios.mm',
310 'base/resource/resource_bundle_mac.mm',
311 'base/resource/resource_bundle_win.cc',
312 'base/resource/resource_bundle_win.h',
313 'base/resource/resource_data_dll_win.cc',
314 'base/resource/resource_data_dll_win.h',
315 'base/resource/resource_handle.h',
316 'base/text/bytes_formatting.cc',
317 'base/text/bytes_formatting.h',
318 'base/text/text_elider.cc',
319 'base/text/text_elider.h',
320 'base/text/utf16_indexing.cc',
321 'base/text/utf16_indexing.h',
322 'base/theme_provider.cc',
323 'base/theme_provider.h',
324 'base/touch/touch_device.cc',
325 'base/touch/touch_device.h',
326 'base/touch/touch_device_android.cc',
327 'base/touch/touch_device_aurax11.cc',
328 'base/touch/touch_device_ozone.cc',
329 'base/touch/touch_device_win.cc',
330 'base/touch/touch_editing_controller.cc',
331 'base/touch/touch_editing_controller.h',
332 'base/touch/touch_factory_x11.cc',
333 'base/touch/touch_factory_x11.h',
334 'base/ui_base_exports.cc',
335 'base/ui_base_paths.cc',
336 'base/ui_base_paths.h',
337 'base/ui_base_switches.cc',
338 'base/ui_base_switches.h',
339 'base/ui_base_switches_util.cc',
340 'base/ui_base_switches_util.h',
341 'base/ui_base_types.cc',
342 'base/ui_base_types.h',
346 'base/win/accessibility_ids_win.h',
347 'base/win/accessibility_misc_utils.cc',
348 'base/win/accessibility_misc_utils.h',
349 'base/win/atl_module.h',
352 'base/win/events_win.cc',
353 'base/win/extra_sdk_defines.h',
354 'base/win/foreground_helper.cc',
355 'base/win/foreground_helper.h',
356 'base/win/hidden_window.cc',
357 'base/win/hidden_window.h',
358 'base/win/hwnd_subclass.cc',
359 'base/win/hwnd_subclass.h',
360 'base/win/hwnd_util.cc',
361 'base/win/hwnd_util.h',
362 'base/win/ime_input.cc',
363 'base/win/ime_input.h',
364 'base/win/message_box_win.cc',
365 'base/win/message_box_win.h',
366 'base/win/mouse_wheel_util.cc',
367 'base/win/mouse_wheel_util.h',
368 'base/win/scoped_ole_initializer.cc',
369 'base/win/scoped_ole_initializer.h',
370 'base/win/scoped_set_map_mode.h',
373 'base/win/singleton_hwnd.cc',
374 'base/win/singleton_hwnd.h',
375 'base/win/touch_input.cc',
376 'base/win/touch_input.h',
377 'base/win/window_impl.cc',
378 'base/win/window_impl.h',
379 'base/window_open_disposition.cc',
380 'base/window_open_disposition.h',
381 'base/work_area_watcher_observer.h',
382 'base/x/active_window_watcher_x.cc',
383 'base/x/active_window_watcher_x.h',
384 'base/x/active_window_watcher_x_observer.h',
385 'base/x/device_data_manager.cc',
386 'base/x/device_data_manager.h',
387 'base/x/device_list_cache_x.cc',
388 'base/x/device_list_cache_x.h',
389 'base/x/events_x.cc',
390 'base/x/root_window_property_watcher_x.cc',
391 'base/x/root_window_property_watcher_x.h',
392 'base/x/selection_owner.cc',
393 'base/x/selection_owner.h',
394 'base/x/selection_requestor.cc',
395 'base/x/selection_requestor.h',
396 'base/x/selection_utils.cc',
397 'base/x/selection_utils.h',
398 'base/x/work_area_watcher_x.cc',
399 'base/x/work_area_watcher_x.h',
400 'base/x/x11_atom_cache.cc',
401 'base/x/x11_atom_cache.h',
402 'base/x/x11_util.cc',
404 'base/x/x11_util_internal.h',
405 'gfx/android/device_display_info.cc',
406 'gfx/android/device_display_info.h',
407 'gfx/android/java_bitmap.cc',
408 'gfx/android/java_bitmap.h',
414 'gfx/canvas_android.cc',
416 'gfx/canvas_paint.h',
417 'gfx/canvas_paint_gtk.h',
418 'gfx/canvas_paint_mac.h',
419 'gfx/canvas_paint_win.h',
420 'gfx/canvas_paint_gtk.cc',
421 'gfx/canvas_paint_mac.mm',
422 'gfx/canvas_paint_win.cc',
423 'gfx/canvas_skia.cc',
424 'gfx/canvas_skia_paint.h',
425 'gfx/codec/jpeg_codec.cc',
426 'gfx/codec/jpeg_codec.h',
427 'gfx/codec/png_codec.cc',
428 'gfx/codec/png_codec.h',
429 'gfx/color_analysis.cc',
430 'gfx/color_analysis.h',
431 'gfx/color_profile.cc',
432 'gfx/color_profile.h',
433 'gfx/color_profile_mac.cc',
434 'gfx/color_profile_win.cc',
435 'gfx/color_utils.cc',
439 'gfx/display_observer.cc',
440 'gfx/display_observer.h',
441 'gfx/favicon_size.cc',
442 'gfx/favicon_size.h',
445 'gfx/font_fallback_win.cc',
446 'gfx/font_fallback_win.h',
449 'gfx/font_render_params_android.cc',
450 'gfx/font_render_params_linux.cc',
451 'gfx/font_render_params_linux.h',
452 'gfx/font_smoothing_win.cc',
453 'gfx/font_smoothing_win.h',
456 'gfx/image/canvas_image_source.cc',
457 'gfx/image/canvas_image_source.h',
458 'gfx/image/image.cc',
460 'gfx/image/image_family.cc',
461 'gfx/image/image_family.h',
462 'gfx/image/image_ios.mm',
463 'gfx/image/image_mac.mm',
464 'gfx/image/image_png_rep.cc',
465 'gfx/image/image_png_rep.h',
466 'gfx/image/image_skia.cc',
467 'gfx/image/image_skia.h',
468 'gfx/image/image_skia_operations.cc',
469 'gfx/image/image_skia_operations.h',
470 'gfx/image/image_skia_rep.cc',
471 'gfx/image/image_skia_rep.h',
472 'gfx/image/image_skia_source.h',
473 'gfx/image/image_skia_util_ios.h',
474 'gfx/image/image_skia_util_ios.mm',
475 'gfx/image/image_skia_util_mac.h',
476 'gfx/image/image_skia_util_mac.mm',
477 'gfx/image/image_util.cc',
478 'gfx/image/image_util.h',
479 'gfx/image/image_util_ios.mm',
485 'gfx/interpolated_transform.cc',
486 'gfx/interpolated_transform.h',
487 'gfx/mac/scoped_ns_disable_screen_updates.h',
490 'gfx/native_widget_types.h',
499 'gfx/platform_font.h',
500 'gfx/platform_font_android.cc',
501 'gfx/platform_font_ios.h',
502 'gfx/platform_font_ios.mm',
503 'gfx/platform_font_mac.h',
504 'gfx/platform_font_mac.mm',
505 'gfx/platform_font_pango.cc',
506 'gfx/platform_font_pango.h',
507 'gfx/platform_font_win.cc',
508 'gfx/platform_font_win.h',
514 'gfx/point_conversions.cc',
515 'gfx/point_conversions.h',
523 'gfx/rect_base_impl.h',
524 'gfx/rect_conversions.cc',
525 'gfx/rect_conversions.h',
528 'gfx/render_text.cc',
530 'gfx/render_text_linux.cc',
531 'gfx/render_text_linux.h',
532 'gfx/render_text_mac.cc',
533 'gfx/render_text_mac.h',
534 'gfx/render_text_win.cc',
535 'gfx/render_text_win.h',
536 'gfx/safe_integer_conversions.h',
537 'gfx/scoped_cg_context_save_gstate_mac.h',
538 'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
539 'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
540 'gfx/scoped_ui_graphics_push_context_ios.h',
541 'gfx/scoped_ui_graphics_push_context_ios.mm',
544 'gfx/screen_android.cc',
545 'gfx/screen_aura.cc',
551 'gfx/scrollbar_size.cc',
552 'gfx/scrollbar_size.h',
553 'gfx/selection_model.cc',
554 'gfx/selection_model.h',
555 'gfx/shadow_value.cc',
556 'gfx/shadow_value.h',
560 'gfx/size_conversions.cc',
561 'gfx/size_conversions.h',
564 'gfx/skbitmap_operations.cc',
565 'gfx/skbitmap_operations.h',
568 'gfx/skia_utils_gtk.cc',
569 'gfx/skia_utils_gtk.h',
572 'gfx/sys_color_change_listener.cc',
573 'gfx/sys_color_change_listener.h',
574 'gfx/text_constants.h',
579 'gfx/transform_util.cc',
580 'gfx/transform_util.h',
583 'gfx/vector2d_conversions.cc',
584 'gfx/vector2d_conversions.h',
589 'webui/jstemplate_builder.cc',
590 'webui/jstemplate_builder.h',
591 'webui/web_ui_util.cc',
592 'webui/web_ui_util.h',
594 'target_conditions': [
597 ['include', '^base/l10n/l10n_util_mac\\.mm$'],
607 '<(libjpeg_gyp_path):libjpeg',
610 # iOS only uses a subset of UI.
612 ['exclude', '\\.(cc|mm)$'],
613 ['include', '_ios\\.(cc|mm)$'],
614 ['include', '(^|/)ios/'],
615 ['include', '^gfx/'],
616 ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
617 ['include', '^base/animation/'],
618 ['include', '^base/l10n/'],
619 ['include', '^base/layout'],
620 ['include', '^base/range/'],
621 ['include', '^base/resource/'],
622 ['include', '^base/text/text_elider\\.'],
623 ['include', '^base/ui_base_'],
627 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
631 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
632 # http://crbug.com/105550
633 ['use_canvas_skia==1', {
635 'gfx/canvas_android.cc',
638 }, { # use_canvas_skia!=1
640 'gfx/canvas_skia.cc',
645 ['exclude', 'gfx/gtk_'],
646 ['exclude', 'gfx/gtk_util.cc'],
647 ['exclude', 'gfx/gtk_util.h'],
648 ['exclude', 'gfx/screen_gtk.cc'],
649 ['exclude', 'base/work_area_watcher_observer.h'],
650 ['exclude', 'base/x/active_window_watcher_x.cc'],
651 ['exclude', 'base/x/active_window_watcher_x.h'],
652 ['exclude', 'base/x/active_window_watcher_x_observer.h'],
653 ['exclude', 'base/x/root_window_property_watcher_x.cc'],
654 ['exclude', 'base/x/root_window_property_watcher_x.h'],
655 ['exclude', 'base/x/work_area_watcher_x.cc'],
656 ['exclude', 'base/x/work_area_watcher_x.h'],
660 'base/cursor/cursor.cc',
661 'base/cursor/cursor.h',
662 'base/cursor/cursor_loader_x11.cc',
663 'base/cursor/cursor_loader_x11.h',
664 'base/cursor/cursor_win.cc',
665 'base/cursor/cursor_x11.cc',
666 'base/x/selection_owner.cc',
667 'base/x/selection_owner.h',
668 'base/x/selection_requestor.cc',
669 'base/x/selection_requestor.h',
670 'base/x/selection_utils.cc',
671 'base/x/selection_utils.h',
676 ['exclude', '^gfx/pango_util\\.'],
677 ['exclude', '^gfx/platform_font_pango\\.'],
680 ['use_aura==0 or OS!="linux"', {
682 'base/resource/resource_bundle_auralinux.cc',
685 ['use_aura==1 and OS=="win"', {
687 ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
690 ['use_aura==0 and toolkit_views==0', {
692 ['exclude', '^base/gestures/*'],
697 # font_gtk.cc uses fontconfig.
698 '../build/linux/system.gyp:fontconfig',
699 '../build/linux/system.gyp:glib',
702 ['toolkit_views==0', {
703 # Note: because of gyp predence rules this has to be defined as
704 # 'sources/' rather than 'sources!'.
706 ['exclude', '^base/dragdrop/drag_utils.cc'],
707 ['exclude', '^base/dragdrop/drag_utils.h'],
708 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
709 ['exclude', '^base/dragdrop/os_exchange_data.h'],
712 # Note: because of gyp predence rules this has to be defined as
713 # 'sources/' rather than 'sources!'.
715 ['include', '^base/dragdrop/os_exchange_data.cc'],
720 '../build/linux/system.gyp:pangocairo',
725 ['toolkit_uses_gtk == 1', {
727 '../build/linux/system.gyp:gtk',
730 'gfx/gtk_native_view_id_manager.cc',
731 'gfx/gtk_native_view_id_manager.h',
732 'gfx/gtk_preserve_window.cc',
733 'gfx/gtk_preserve_window.h',
736 'gfx/image/cairo_cached_surface.cc',
737 'gfx/image/cairo_cached_surface.h',
740 ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
742 'base/clipboard/clipboard_aurax11.cc',
743 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
744 'base/touch/touch_device.cc',
748 'base/clipboard/clipboard_aura.cc',
749 'base/dragdrop/os_exchange_data_provider_aura.cc',
750 'base/dragdrop/os_exchange_data_provider_aura.h',
751 'base/touch/touch_device_aurax11.cc',
762 'base/touch/touch_device.cc',
766 '../third_party/wtl/include',
768 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
769 # C4324 is structure was padded due to __declspec(align()), which is
771 'msvs_disabled_warnings': [ 4267, 4324 ],
779 'AdditionalDependencies': [
804 'base/dragdrop/drag_drop_types.h',
805 'base/dragdrop/os_exchange_data.cc',
808 ['exclude', '^base/win/'],
813 'base/dragdrop/drag_utils.cc',
814 'base/dragdrop/drag_utils.h',
818 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
819 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
820 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
825 'all_dependent_settings': {
833 '-lXrender', # For XRender* function calls in x11_util.cc.
841 '-lXrender', # For XRender* function calls in x11_util.cc.
845 '../build/linux/system.gyp:x11',
846 '../build/linux/system.gyp:xext',
847 '../build/linux/system.gyp:xfixes',
851 ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
852 ['exclude', 'base/x/*'],
857 'base/cursor/cursor_null.cc',
858 'base/cursor/cursor_loader_null.cc',
859 'base/cursor/cursor_loader_null.h',
862 ['toolkit_views==0', {
864 'base/events/event.cc',
865 'base/events/event.h',
866 'base/events/event_dispatcher.cc',
867 'base/events/event_dispatcher.h',
868 'base/events/event_handler.cc',
869 'base/events/event_handler.h',
870 'base/events/event_target.cc',
871 'base/events/event_target.h',
872 'base/events/key_identifier_conversion.cc',
873 'base/events/key_identifier_conversion.h',
874 'base/x/events_x.cc',
879 'base/dragdrop/drag_utils.cc',
880 'base/dragdrop/drag_utils.h',
881 'base/touch/touch_device.cc',
887 '<(SHARED_INTERMEDIATE_DIR)/ui',
895 ['OS=="android" and android_webview_build==0', {
900 ['OS=="android" or OS=="ios"', {
902 'gfx/render_text.cc',
911 ['use_system_icu==1', {
912 # When using the system icu, the icu targets generate shim headers
913 # which are included by public headers in the ui target, so we need
914 # ui to be a hard dependency for all its users.
915 'hard_dependency': 1,
920 'target_name': 'webui_test_support',
922 'direct_dependent_settings': {
924 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
933 'target_name': 'ui_jni_headers',
935 'direct_dependent_settings': {
937 '<(SHARED_INTERMEDIATE_DIR)/ui',
941 'android/java/src/org/chromium/ui/Clipboard.java',
942 'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
943 'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
944 'android/java/src/org/chromium/ui/LocalizationUtils.java',
945 'android/java/src/org/chromium/ui/SelectFileDialog.java',
946 'android/java/src/org/chromium/ui/ViewAndroid.java',
947 'android/java/src/org/chromium/ui/WindowAndroid.java',
950 'jni_gen_package': 'ui',
952 'includes': [ '../build/jni_generator.gypi' ],
955 'target_name': 'ui_java',
958 'java_in_dir': '../ui/android/java',
959 'has_java_resources': 1,
960 'R_package': 'org.chromium.ui',
961 'R_package_relpath': 'org/chromium/ui',
962 'java_strings_grd': 'android_ui_strings.grd',
965 '../base/base.gyp:base_java',
967 'includes': [ '../build/java.gypi' ],
974 'target_name': 'ui_cocoa_third_party_toolkits',
975 'type': '<(component)',
977 # Build Apple sample code
978 '../third_party/apple_sample_code/ImageAndTextCell.h',
979 '../third_party/apple_sample_code/ImageAndTextCell.m',
980 # Build the necessary GTM sources
981 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
982 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
983 '../third_party/GTM/AppKit/GTMIBArray.h',
984 '../third_party/GTM/AppKit/GTMIBArray.m',
985 '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
986 '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
987 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
988 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
989 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
990 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
991 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
992 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
993 '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
994 '../third_party/GTM/AppKit/GTMUILocalizer.h',
995 '../third_party/GTM/AppKit/GTMUILocalizer.m',
996 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
997 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
998 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
999 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
1000 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
1001 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
1002 # MolokoCacao additions
1003 '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
1004 '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
1005 # Build necessary Mozilla sources
1006 '../third_party/mozilla/NSScreen+Utils.h',
1007 '../third_party/mozilla/NSScreen+Utils.m',
1008 '../third_party/mozilla/NSWorkspace+Utils.h',
1009 '../third_party/mozilla/NSWorkspace+Utils.m',
1013 '../third_party/apple',
1014 '../third_party/GTM',
1015 '../third_party/GTM/AppKit',
1016 '../third_party/GTM/DebugUtils',
1017 '../third_party/GTM/Foundation',
1021 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1022 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1026 ['component=="shared_library"', {
1027 # GTM is third-party code, so we don't want to add _EXPORT
1028 # annotations to it, so build it without -fvisibility=hidden
1029 # (else the interface class symbols will be hidden in a 64bit
1030 # build). Only do this in a component build, so that the shipping
1031 # chrome binary doesn't end up with unnecessarily exported
1034 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',