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',
82 'base/base_window.cc',
84 'base/clipboard/clipboard.cc',
85 'base/clipboard/clipboard.h',
86 'base/clipboard/clipboard_android.cc',
87 'base/clipboard/clipboard_android_initialization.h',
88 'base/clipboard/clipboard_aura.cc',
89 'base/clipboard/clipboard_aurax11.cc',
90 'base/clipboard/clipboard_constants.cc',
91 'base/clipboard/clipboard_gtk.cc',
92 'base/clipboard/clipboard_mac.mm',
93 'base/clipboard/clipboard_util_win.cc',
94 'base/clipboard/clipboard_util_win.h',
95 'base/clipboard/clipboard_win.cc',
96 'base/clipboard/custom_data_helper.cc',
97 'base/clipboard/custom_data_helper.h',
98 'base/clipboard/custom_data_helper_linux.cc',
99 'base/clipboard/custom_data_helper_mac.mm',
100 'base/clipboard/scoped_clipboard_writer.cc',
101 'base/clipboard/scoped_clipboard_writer.h',
102 'base/cocoa/animation_utils.h',
103 'base/cocoa/base_view.h',
104 'base/cocoa/base_view.mm',
105 'base/cocoa/cocoa_event_utils.h',
106 'base/cocoa/cocoa_event_utils.mm',
107 'base/cocoa/controls/hover_image_menu_button.h',
108 'base/cocoa/controls/hover_image_menu_button.mm',
109 'base/cocoa/controls/hover_image_menu_button_cell.h',
110 'base/cocoa/controls/hover_image_menu_button_cell.mm',
111 'base/cocoa/controls/hyperlink_button_cell.h',
112 'base/cocoa/controls/hyperlink_button_cell.mm',
113 'base/cocoa/events_mac.mm',
114 'base/cocoa/find_pasteboard.h',
115 'base/cocoa/find_pasteboard.mm',
116 'base/cocoa/flipped_view.h',
117 'base/cocoa/flipped_view.mm',
118 'base/cocoa/focus_tracker.h',
119 'base/cocoa/focus_tracker.mm',
120 'base/cocoa/focus_window_set.h',
121 'base/cocoa/focus_window_set.mm',
122 'base/cocoa/fullscreen_window_manager.h',
123 'base/cocoa/fullscreen_window_manager.mm',
124 'base/cocoa/hover_button.h',
125 'base/cocoa/hover_button.mm',
126 'base/cocoa/hover_image_button.h',
127 'base/cocoa/hover_image_button.mm',
128 'base/cocoa/menu_controller.h',
129 'base/cocoa/menu_controller.mm',
130 'base/cocoa/nib_loading.h',
131 'base/cocoa/nib_loading.mm',
132 'base/cocoa/nsgraphics_context_additions.h',
133 'base/cocoa/nsgraphics_context_additions.mm',
134 'base/cocoa/tracking_area.h',
135 'base/cocoa/tracking_area.mm',
136 'base/cocoa/underlay_opengl_hosting_window.h',
137 'base/cocoa/underlay_opengl_hosting_window.mm',
138 'base/cocoa/view_description.h',
139 'base/cocoa/view_description.mm',
140 'base/cocoa/window_size_constants.h',
141 'base/cocoa/window_size_constants.mm',
142 'base/cursor/cursor.cc',
143 'base/cursor/cursor.h',
144 'base/cursor/cursor_loader.h',
145 'base/cursor/cursor_loader_null.cc',
146 'base/cursor/cursor_loader_null.h',
147 'base/cursor/cursor_loader_win.cc',
148 'base/cursor/cursor_null.cc',
149 'base/cursor/cursor_loader_win.h',
150 'base/cursor/cursor_loader_x11.cc',
151 'base/cursor/cursor_loader_x11.h',
152 'base/cursor/cursor_win.cc',
153 'base/cursor/cursor_x11.cc',
154 'base/cursor/cursors_aura.cc',
155 'base/cursor/cursors_aura.h',
156 'base/default_theme_provider.cc',
157 'base/default_theme_provider.h',
158 'base/default_theme_provider_mac.mm',
159 'base/dragdrop/cocoa_dnd_util.h',
160 'base/dragdrop/cocoa_dnd_util.mm',
161 'base/dragdrop/drag_drop_types.h',
162 'base/dragdrop/drag_drop_types_win.cc',
163 'base/dragdrop/drag_source_win.cc',
164 'base/dragdrop/drag_source_win.h',
165 'base/dragdrop/drag_utils.cc',
166 'base/dragdrop/drag_utils.h',
167 'base/dragdrop/drag_utils_aura.cc',
168 'base/dragdrop/drag_utils_win.cc',
169 'base/dragdrop/drop_target_win.cc',
170 'base/dragdrop/drop_target_win.h',
171 'base/dragdrop/gtk_dnd_util.cc',
172 'base/dragdrop/gtk_dnd_util.h',
173 'base/dragdrop/os_exchange_data.cc',
174 'base/dragdrop/os_exchange_data.h',
175 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
176 'base/dragdrop/os_exchange_data_provider_aurax11.h',
177 'base/dragdrop/os_exchange_data_provider_aura.cc',
178 'base/dragdrop/os_exchange_data_provider_aura.h',
179 'base/dragdrop/os_exchange_data_provider_win.cc',
180 'base/dragdrop/os_exchange_data_provider_win.h',
181 'base/events/event.cc',
182 'base/events/event.h',
183 'base/events/event_constants.h',
184 'base/events/event_conversion_gtk.cc',
185 'base/events/event_conversion_gtk.h',
186 'base/events/event_dispatcher.cc',
187 'base/events/event_dispatcher.h',
188 'base/events/event_handler.cc',
189 'base/events/event_handler.h',
190 'base/events/event_target.cc',
191 'base/events/event_target.h',
192 'base/events/event_utils.cc',
193 'base/events/event_utils.h',
194 'base/gestures/gesture_configuration.cc',
195 'base/gestures/gesture_configuration.h',
196 'base/gestures/gesture_point.cc',
197 'base/gestures/gesture_point.h',
198 'base/gestures/gesture_recognizer.h',
199 'base/gestures/gesture_recognizer_impl.cc',
200 'base/gestures/gesture_recognizer_impl.h',
201 'base/gestures/gesture_sequence.cc',
202 'base/gestures/gesture_sequence.h',
203 'base/gestures/gesture_types.cc',
204 'base/gestures/gesture_types.h',
205 'base/gestures/gesture_util.cc',
206 'base/gestures/gesture_util.h',
207 'base/gestures/velocity_calculator.cc',
208 'base/gestures/velocity_calculator.h',
209 'base/gtk/event_synthesis_gtk.cc',
210 'base/gtk/event_synthesis_gtk.h',
211 'base/gtk/focus_store_gtk.cc',
212 'base/gtk/focus_store_gtk.h',
213 'base/gtk/g_object_destructor_filo.cc',
214 'base/gtk/g_object_destructor_filo.h',
215 'base/gtk/gtk_expanded_container.cc',
216 'base/gtk/gtk_expanded_container.h',
217 'base/gtk/gtk_floating_container.cc',
218 'base/gtk/gtk_floating_container.h',
219 'base/gtk/gtk_hig_constants.h',
220 'base/gtk/gtk_im_context_util.cc',
221 'base/gtk/gtk_im_context_util.h',
222 'base/gtk/gtk_screen_util.cc',
223 'base/gtk/gtk_screen_util.h',
224 'base/gtk/gtk_signal.h',
225 'base/gtk/gtk_signal_registrar.cc',
226 'base/gtk/gtk_signal_registrar.h',
227 'base/gtk/gtk_windowing.cc',
228 'base/gtk/gtk_windowing.h',
229 'base/gtk/owned_widget_gtk.cc',
230 'base/gtk/owned_widget_gtk.h',
231 'base/gtk/scoped_gobject.h',
232 'base/gtk/scoped_region.cc',
233 'base/gtk/scoped_region.h',
235 'base/keycodes/keyboard_code_conversion.cc',
236 'base/keycodes/keyboard_code_conversion.h',
237 'base/keycodes/keyboard_code_conversion_android.cc',
238 'base/keycodes/keyboard_code_conversion_android.h',
239 'base/keycodes/keyboard_code_conversion_gtk.cc',
240 'base/keycodes/keyboard_code_conversion_gtk.h',
241 'base/keycodes/keyboard_code_conversion_mac.h',
242 'base/keycodes/keyboard_code_conversion_mac.mm',
243 'base/keycodes/keyboard_code_conversion_win.cc',
244 'base/keycodes/keyboard_code_conversion_win.h',
245 'base/keycodes/keyboard_code_conversion_x.cc',
246 'base/keycodes/keyboard_code_conversion_x.h',
247 'base/keycodes/keyboard_codes.h',
248 'base/keycodes/usb_keycode_map.h',
249 'base/latency_info.cc',
250 'base/latency_info.h',
251 'base/l10n/l10n_font_util.cc',
252 'base/l10n/l10n_font_util.h',
253 'base/l10n/l10n_util.cc',
254 'base/l10n/l10n_util.h',
255 'base/l10n/l10n_util_android.h',
256 'base/l10n/l10n_util_android.cc',
257 'base/l10n/l10n_util_collator.h',
258 'base/l10n/l10n_util_mac.h',
259 'base/l10n/l10n_util_mac.mm',
260 'base/l10n/l10n_util_posix.cc',
261 'base/l10n/l10n_util_win.cc',
262 'base/l10n/l10n_util_win.h',
263 'base/l10n/time_format.cc',
264 'base/l10n/time_format.h',
267 'base/layout_mac.mm',
268 'base/models/button_menu_item_model.cc',
269 'base/models/button_menu_item_model.h',
270 'base/models/combobox_model.cc',
271 'base/models/combobox_model.h',
272 'base/models/dialog_model.cc',
273 'base/models/dialog_model.h',
274 'base/models/list_model.h',
275 'base/models/list_model_observer.h',
276 'base/models/list_selection_model.cc',
277 'base/models/list_selection_model.h',
278 'base/models/menu_model.cc',
279 'base/models/menu_model.h',
280 'base/models/menu_model_delegate.h',
281 'base/models/menu_separator_types.h',
282 'base/models/simple_menu_model.cc',
283 'base/models/simple_menu_model.h',
284 'base/models/table_model.cc',
285 'base/models/table_model.h',
286 'base/models/table_model_observer.h',
287 'base/models/tree_model.cc',
288 'base/models/tree_model.h',
289 'base/models/tree_node_iterator.h',
290 'base/models/tree_node_model.h',
291 'base/ozone/evdev/key_event_converter_ozone.cc',
292 'base/ozone/evdev/key_event_converter_ozone.h',
293 'base/ozone/evdev/touch_event_converter_ozone.cc',
294 'base/ozone/evdev/touch_event_converter_ozone.h',
295 'base/ozone/event_converter_ozone.cc',
296 'base/ozone/event_converter_ozone.h',
297 'base/ozone/event_factory_delegate_ozone.h',
298 'base/ozone/event_factory_ozone.cc',
299 'base/ozone/event_factory_ozone.h',
300 'base/ozone/events_ozone.cc',
301 'base/ozone/surface_factory_ozone.cc',
302 'base/ozone/surface_factory_ozone.h',
303 'base/range/range.cc',
304 'base/range/range.h',
305 'base/range/range_mac.mm',
306 'base/range/range_win.cc',
307 'base/resource/data_pack.cc',
308 'base/resource/data_pack.h',
309 'base/resource/resource_bundle.cc',
310 'base/resource/resource_bundle.h',
311 'base/resource/resource_bundle_android.cc',
312 'base/resource/resource_bundle_auralinux.cc',
313 'base/resource/resource_bundle_gtk.cc',
314 'base/resource/resource_bundle_ios.mm',
315 'base/resource/resource_bundle_mac.mm',
316 'base/resource/resource_bundle_win.cc',
317 'base/resource/resource_bundle_win.h',
318 'base/resource/resource_data_dll_win.cc',
319 'base/resource/resource_data_dll_win.h',
320 'base/resource/resource_handle.h',
321 'base/text/bytes_formatting.cc',
322 'base/text/bytes_formatting.h',
323 'base/text/text_elider.cc',
324 'base/text/text_elider.h',
325 'base/text/utf16_indexing.cc',
326 'base/text/utf16_indexing.h',
327 'base/theme_provider.cc',
328 'base/theme_provider.h',
329 'base/touch/touch_device.cc',
330 'base/touch/touch_device.h',
331 'base/touch/touch_device_android.cc',
332 'base/touch/touch_device_aurax11.cc',
333 'base/touch/touch_device_ozone.cc',
334 'base/touch/touch_device_win.cc',
335 'base/touch/touch_editing_controller.cc',
336 'base/touch/touch_editing_controller.h',
337 'base/touch/touch_enabled.cc',
338 'base/touch/touch_enabled.h',
339 'base/touch/touch_factory_x11.cc',
340 'base/touch/touch_factory_x11.h',
341 'base/ui_base_exports.cc',
342 'base/ui_base_paths.cc',
343 'base/ui_base_paths.h',
344 'base/ui_base_switches.cc',
345 'base/ui_base_switches.h',
346 'base/ui_base_switches_util.cc',
347 'base/ui_base_switches_util.h',
348 'base/ui_base_types.cc',
349 'base/ui_base_types.h',
353 'base/win/accessibility_ids_win.h',
354 'base/win/accessibility_misc_utils.cc',
355 'base/win/accessibility_misc_utils.h',
356 'base/win/atl_module.h',
359 'base/win/events_win.cc',
360 'base/win/extra_sdk_defines.h',
361 'base/win/foreground_helper.cc',
362 'base/win/foreground_helper.h',
363 'base/win/hidden_window.cc',
364 'base/win/hidden_window.h',
365 'base/win/hwnd_subclass.cc',
366 'base/win/hwnd_subclass.h',
367 'base/win/hwnd_util.cc',
368 'base/win/hwnd_util.h',
369 'base/win/message_box_win.cc',
370 'base/win/message_box_win.h',
371 'base/win/mouse_wheel_util.cc',
372 'base/win/mouse_wheel_util.h',
373 'base/win/scoped_ole_initializer.cc',
374 'base/win/scoped_ole_initializer.h',
375 'base/win/scoped_set_map_mode.h',
378 'base/win/singleton_hwnd.cc',
379 'base/win/singleton_hwnd.h',
380 'base/win/touch_input.cc',
381 'base/win/touch_input.h',
382 'base/win/window_impl.cc',
383 'base/win/window_impl.h',
384 'base/window_open_disposition.cc',
385 'base/window_open_disposition.h',
386 'base/work_area_watcher_observer.h',
387 'base/x/active_window_watcher_x.cc',
388 'base/x/active_window_watcher_x.h',
389 'base/x/active_window_watcher_x_observer.h',
390 'base/x/device_data_manager.cc',
391 'base/x/device_data_manager.h',
392 'base/x/device_list_cache_x.cc',
393 'base/x/device_list_cache_x.h',
394 'base/x/events_x.cc',
395 'base/x/root_window_property_watcher_x.cc',
396 'base/x/root_window_property_watcher_x.h',
397 'base/x/selection_owner.cc',
398 'base/x/selection_owner.h',
399 'base/x/selection_requestor.cc',
400 'base/x/selection_requestor.h',
401 'base/x/selection_utils.cc',
402 'base/x/selection_utils.h',
403 'base/x/work_area_watcher_x.cc',
404 'base/x/work_area_watcher_x.h',
405 'base/x/x11_atom_cache.cc',
406 'base/x/x11_atom_cache.h',
407 'base/x/x11_util.cc',
409 'base/x/x11_util_internal.h',
410 'gfx/android/device_display_info.cc',
411 'gfx/android/device_display_info.h',
412 'gfx/android/java_bitmap.cc',
413 'gfx/android/java_bitmap.h',
421 'gfx/canvas_android.cc',
423 'gfx/canvas_paint_gtk.cc',
424 'gfx/canvas_paint_gtk.h',
425 'gfx/canvas_paint_mac.h',
426 'gfx/canvas_paint_mac.mm',
427 'gfx/canvas_paint_win.cc',
428 'gfx/canvas_paint_win.h',
429 'gfx/canvas_skia.cc',
430 'gfx/canvas_skia_paint.h',
431 'gfx/codec/jpeg_codec.cc',
432 'gfx/codec/jpeg_codec.h',
433 'gfx/codec/png_codec.cc',
434 'gfx/codec/png_codec.h',
435 'gfx/color_analysis.cc',
436 'gfx/color_analysis.h',
437 'gfx/color_profile.cc',
438 'gfx/color_profile.h',
439 'gfx/color_profile_mac.cc',
440 'gfx/color_profile_win.cc',
441 'gfx/color_utils.cc',
445 'gfx/display_observer.cc',
446 'gfx/display_observer.h',
447 'gfx/favicon_size.cc',
448 'gfx/favicon_size.h',
451 'gfx/font_fallback_win.cc',
452 'gfx/font_fallback_win.h',
455 'gfx/font_render_params_android.cc',
456 'gfx/font_render_params_linux.cc',
457 'gfx/font_render_params_linux.h',
458 'gfx/font_smoothing_win.cc',
459 'gfx/font_smoothing_win.h',
463 'gfx/gpu_memory_buffer.cc',
464 'gfx/gpu_memory_buffer.h',
465 'gfx/image/canvas_image_source.cc',
466 'gfx/image/canvas_image_source.h',
467 'gfx/image/image.cc',
469 'gfx/image/image_family.cc',
470 'gfx/image/image_family.h',
471 'gfx/image/image_ios.mm',
472 'gfx/image/image_mac.mm',
473 'gfx/image/image_png_rep.cc',
474 'gfx/image/image_png_rep.h',
475 'gfx/image/image_skia.cc',
476 'gfx/image/image_skia.h',
477 'gfx/image/image_skia_operations.cc',
478 'gfx/image/image_skia_operations.h',
479 'gfx/image/image_skia_rep.cc',
480 'gfx/image/image_skia_rep.h',
481 'gfx/image/image_skia_source.h',
482 'gfx/image/image_skia_util_ios.h',
483 'gfx/image/image_skia_util_ios.mm',
484 'gfx/image/image_skia_util_mac.h',
485 'gfx/image/image_skia_util_mac.mm',
486 'gfx/image/image_util.cc',
487 'gfx/image/image_util.h',
488 'gfx/image/image_util_ios.mm',
494 'gfx/interpolated_transform.cc',
495 'gfx/interpolated_transform.h',
496 'gfx/mac/scoped_ns_disable_screen_updates.h',
499 'gfx/native_widget_types.h',
510 'gfx/platform_font.h',
511 'gfx/platform_font_android.cc',
512 'gfx/platform_font_ios.h',
513 'gfx/platform_font_ios.mm',
514 'gfx/platform_font_mac.h',
515 'gfx/platform_font_mac.mm',
516 'gfx/platform_font_pango.cc',
517 'gfx/platform_font_pango.h',
518 'gfx/platform_font_win.cc',
519 'gfx/platform_font_win.h',
525 'gfx/point_conversions.cc',
526 'gfx/point_conversions.h',
534 'gfx/rect_base_impl.h',
535 'gfx/rect_conversions.cc',
536 'gfx/rect_conversions.h',
539 'gfx/render_text.cc',
541 'gfx/render_text_linux.cc',
542 'gfx/render_text_linux.h',
543 'gfx/render_text_mac.cc',
544 'gfx/render_text_mac.h',
545 'gfx/render_text_win.cc',
546 'gfx/render_text_win.h',
547 'gfx/safe_integer_conversions.h',
548 'gfx/scoped_cg_context_save_gstate_mac.h',
549 'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
550 'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
551 'gfx/scoped_ui_graphics_push_context_ios.h',
552 'gfx/scoped_ui_graphics_push_context_ios.mm',
555 'gfx/screen_android.cc',
556 'gfx/screen_aura.cc',
562 'gfx/scrollbar_size.cc',
563 'gfx/scrollbar_size.h',
564 'gfx/selection_model.cc',
565 'gfx/selection_model.h',
566 'gfx/shadow_value.cc',
567 'gfx/shadow_value.h',
571 'gfx/size_conversions.cc',
572 'gfx/size_conversions.h',
575 'gfx/skbitmap_operations.cc',
576 'gfx/skbitmap_operations.h',
579 'gfx/skia_utils_gtk.cc',
580 'gfx/skia_utils_gtk.h',
583 'gfx/sys_color_change_listener.cc',
584 'gfx/sys_color_change_listener.h',
585 'gfx/text_constants.h',
588 'gfx/text_utils_android.cc',
589 'gfx/text_utils_ios.mm',
590 'gfx/text_utils_skia.cc',
593 'gfx/transform_util.cc',
594 'gfx/transform_util.h',
597 'gfx/vector2d_conversions.cc',
598 'gfx/vector2d_conversions.h',
603 'webui/jstemplate_builder.cc',
604 'webui/jstemplate_builder.h',
605 'webui/web_ui_util.cc',
606 'webui/web_ui_util.h',
608 'target_conditions': [
611 ['include', '^base/l10n/l10n_util_mac\\.mm$'],
621 '<(libjpeg_gyp_path):libjpeg',
624 # iOS only uses a subset of UI.
626 ['exclude', '\\.(cc|mm)$'],
627 ['include', '_ios\\.(cc|mm)$'],
628 ['include', '(^|/)ios/'],
629 ['include', '^gfx/'],
630 ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
631 ['include', '^base/animation/'],
632 ['include', '^base/l10n/'],
633 ['include', '^base/layout'],
634 ['include', '^base/range/'],
635 ['include', '^base/resource/'],
636 ['include', '^base/text/text_elider\\.'],
637 ['include', '^base/ui_base_'],
641 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
645 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
646 # http://crbug.com/105550
647 ['use_canvas_skia==1', {
649 'gfx/canvas_android.cc',
652 }, { # use_canvas_skia!=1
654 'gfx/canvas_skia.cc',
659 ['exclude', 'gfx/gtk_'],
660 ['exclude', 'gfx/gtk_util.cc'],
661 ['exclude', 'gfx/gtk_util.h'],
662 ['exclude', 'gfx/screen_gtk.cc'],
663 ['exclude', 'base/work_area_watcher_observer.h'],
664 ['exclude', 'base/x/active_window_watcher_x.cc'],
665 ['exclude', 'base/x/active_window_watcher_x.h'],
666 ['exclude', 'base/x/active_window_watcher_x_observer.h'],
667 ['exclude', 'base/x/root_window_property_watcher_x.cc'],
668 ['exclude', 'base/x/root_window_property_watcher_x.h'],
669 ['exclude', 'base/x/work_area_watcher_x.cc'],
670 ['exclude', 'base/x/work_area_watcher_x.h'],
674 'base/cursor/cursor.cc',
675 'base/cursor/cursor.h',
676 'base/cursor/cursor_loader_x11.cc',
677 'base/cursor/cursor_loader_x11.h',
678 'base/cursor/cursor_win.cc',
679 'base/cursor/cursor_x11.cc',
680 'base/x/selection_owner.cc',
681 'base/x/selection_owner.h',
682 'base/x/selection_requestor.cc',
683 'base/x/selection_requestor.h',
684 'base/x/selection_utils.cc',
685 'base/x/selection_utils.h',
690 ['exclude', '^gfx/pango_util\\.'],
691 ['exclude', '^gfx/platform_font_pango\\.'],
694 ['use_aura==0 or OS!="linux"', {
696 'base/resource/resource_bundle_auralinux.cc',
699 ['use_aura==1 and OS=="win"', {
701 ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
704 ['use_aura==0 and toolkit_views==0', {
706 ['exclude', '^base/gestures/*'],
711 # font_gtk.cc uses fontconfig.
712 '../build/linux/system.gyp:fontconfig',
713 '../build/linux/system.gyp:glib',
716 ['toolkit_views==0', {
717 # Note: because of gyp predence rules this has to be defined as
718 # 'sources/' rather than 'sources!'.
720 ['exclude', '^base/dragdrop/drag_utils.cc'],
721 ['exclude', '^base/dragdrop/drag_utils.h'],
722 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
723 ['exclude', '^base/dragdrop/os_exchange_data.h'],
726 # Note: because of gyp predence rules this has to be defined as
727 # 'sources/' rather than 'sources!'.
729 ['include', '^base/dragdrop/os_exchange_data.cc'],
734 '../build/linux/system.gyp:pangocairo',
739 ['toolkit_uses_gtk == 1', {
741 '../build/linux/system.gyp:gtk',
744 'gfx/gtk_native_view_id_manager.cc',
745 'gfx/gtk_native_view_id_manager.h',
746 'gfx/gtk_preserve_window.cc',
747 'gfx/gtk_preserve_window.h',
750 'gfx/image/cairo_cached_surface.cc',
751 'gfx/image/cairo_cached_surface.h',
754 ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
756 'base/clipboard/clipboard_aurax11.cc',
757 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
758 'base/touch/touch_device.cc',
762 'base/clipboard/clipboard_aura.cc',
763 'base/dragdrop/os_exchange_data_provider_aura.cc',
764 'base/dragdrop/os_exchange_data_provider_aura.h',
765 'base/touch/touch_device_aurax11.cc',
776 'base/touch/touch_device.cc',
780 '../third_party/wtl/include',
782 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
783 # C4324 is structure was padded due to __declspec(align()), which is
785 'msvs_disabled_warnings': [ 4267, 4324 ],
793 'AdditionalDependencies': [
818 'base/dragdrop/drag_drop_types.h',
819 'base/dragdrop/os_exchange_data.cc',
822 ['exclude', '^base/win/'],
827 'base/dragdrop/drag_utils.cc',
828 'base/dragdrop/drag_utils.h',
832 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
833 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
834 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
839 'all_dependent_settings': {
847 '-lXrender', # For XRender* function calls in x11_util.cc.
855 '-lXrender', # For XRender* function calls in x11_util.cc.
859 '../build/linux/system.gyp:x11',
860 '../build/linux/system.gyp:xext',
861 '../build/linux/system.gyp:xfixes',
865 ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
866 ['exclude', 'base/x/*'],
871 'base/cursor/cursor_null.cc',
872 'base/cursor/cursor_loader_null.cc',
873 'base/cursor/cursor_loader_null.h',
876 ['toolkit_views==0', {
878 'base/events/event.cc',
879 'base/events/event.h',
880 'base/events/event_dispatcher.cc',
881 'base/events/event_dispatcher.h',
882 'base/events/event_handler.cc',
883 'base/events/event_handler.h',
884 'base/events/event_target.cc',
885 'base/events/event_target.h',
886 'base/x/events_x.cc',
891 'base/accessibility/accessible_text_utils.cc',
892 'base/accessibility/accessible_view_state.cc',
893 'base/animation/throb_animation.cc',
894 'base/default_theme_provider.cc',
895 'base/dragdrop/drag_utils.cc',
896 'base/dragdrop/drag_utils.h',
897 'base/events/event_utils.cc',
898 'base/keycodes/keyboard_code_conversion.cc',
899 'base/l10n/l10n_font_util.cc',
900 'base/models/button_menu_item_model.cc',
901 'base/models/dialog_model.cc',
902 'base/theme_provider.cc',
903 'base/touch/touch_device.cc',
904 'base/touch/touch_editing_controller.cc',
905 'base/ui_base_types.cc',
906 'gfx/display_observer.cc',
908 'gfx/selection_model.cc',
915 '<(SHARED_INTERMEDIATE_DIR)/ui',
923 ['OS=="android" and android_webview_build==0', {
928 ['OS=="android" or OS=="ios"', {
930 'gfx/render_text.cc',
932 'gfx/text_utils_skia.cc',
940 ['use_system_icu==1', {
941 # When using the system icu, the icu targets generate shim headers
942 # which are included by public headers in the ui target, so we need
943 # ui to be a hard dependency for all its users.
944 'hard_dependency': 1,
949 'target_name': 'webui_test_support',
951 'direct_dependent_settings': {
953 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
962 'target_name': 'ui_jni_headers',
964 'direct_dependent_settings': {
966 '<(SHARED_INTERMEDIATE_DIR)/ui',
970 'android/java/src/org/chromium/ui/Clipboard.java',
971 'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
972 'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
973 'android/java/src/org/chromium/ui/LocalizationUtils.java',
974 'android/java/src/org/chromium/ui/SelectFileDialog.java',
975 'android/java/src/org/chromium/ui/ViewAndroid.java',
976 'android/java/src/org/chromium/ui/WindowAndroid.java',
979 'jni_gen_package': 'ui',
981 'includes': [ '../build/jni_generator.gypi' ],
984 'target_name': 'ui_java',
987 'java_in_dir': '../ui/android/java',
988 'has_java_resources': 1,
989 'R_package': 'org.chromium.ui',
990 'R_package_relpath': 'org/chromium/ui',
991 'java_strings_grd': 'android_ui_strings.grd',
994 '../base/base.gyp:base_java',
995 'window_open_disposition_java',
997 'includes': [ '../build/java.gypi' ],
1000 'target_name': 'window_open_disposition_java',
1003 'android/java/WindowOpenDisposition.template',
1006 'package_name': 'org/chromium/ui',
1007 'template_deps': ['base/window_open_disposition_list.h'],
1009 'includes': [ '../build/android/java_cpp_template.gypi' ],
1016 'target_name': 'ui_cocoa_third_party_toolkits',
1017 'type': '<(component)',
1019 # Build Apple sample code
1020 '../third_party/apple_sample_code/ImageAndTextCell.h',
1021 '../third_party/apple_sample_code/ImageAndTextCell.m',
1022 # Build the necessary GTM sources
1023 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
1024 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
1025 '../third_party/GTM/AppKit/GTMIBArray.h',
1026 '../third_party/GTM/AppKit/GTMIBArray.m',
1027 '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
1028 '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
1029 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
1030 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
1031 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
1032 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
1033 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
1034 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
1035 '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
1036 '../third_party/GTM/AppKit/GTMUILocalizer.h',
1037 '../third_party/GTM/AppKit/GTMUILocalizer.m',
1038 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
1039 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
1040 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
1041 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
1042 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
1043 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
1044 # MolokoCacao additions
1045 '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
1046 '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
1047 # Build necessary Mozilla sources
1048 '../third_party/mozilla/NSScreen+Utils.h',
1049 '../third_party/mozilla/NSScreen+Utils.m',
1050 '../third_party/mozilla/NSWorkspace+Utils.h',
1051 '../third_party/mozilla/NSWorkspace+Utils.m',
1055 '../third_party/apple',
1056 '../third_party/GTM',
1057 '../third_party/GTM/AppKit',
1058 '../third_party/GTM/DebugUtils',
1059 '../third_party/GTM/Foundation',
1063 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1064 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1068 ['component=="shared_library"', {
1069 # GTM is third-party code, so we don't want to add _EXPORT
1070 # annotations to it, so build it without -fvisibility=hidden
1071 # (else the interface class symbols will be hidden in a 64bit
1072 # build). Only do this in a component build, so that the shipping
1073 # chrome binary doesn't end up with unnecessarily exported
1076 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',