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/gestures/gesture_configuration.cc',
190 'base/gestures/gesture_configuration.h',
191 'base/gestures/gesture_point.cc',
192 'base/gestures/gesture_point.h',
193 'base/gestures/gesture_recognizer.h',
194 'base/gestures/gesture_recognizer_impl.cc',
195 'base/gestures/gesture_recognizer_impl.h',
196 'base/gestures/gesture_sequence.cc',
197 'base/gestures/gesture_sequence.h',
198 'base/gestures/gesture_types.cc',
199 'base/gestures/gesture_types.h',
200 'base/gestures/gesture_util.cc',
201 'base/gestures/gesture_util.h',
202 'base/gestures/velocity_calculator.cc',
203 'base/gestures/velocity_calculator.h',
204 'base/gtk/event_synthesis_gtk.cc',
205 'base/gtk/event_synthesis_gtk.h',
206 'base/gtk/focus_store_gtk.cc',
207 'base/gtk/focus_store_gtk.h',
208 'base/gtk/g_object_destructor_filo.cc',
209 'base/gtk/g_object_destructor_filo.h',
210 'base/gtk/gtk_expanded_container.cc',
211 'base/gtk/gtk_expanded_container.h',
212 'base/gtk/gtk_floating_container.cc',
213 'base/gtk/gtk_floating_container.h',
214 'base/gtk/gtk_hig_constants.h',
215 'base/gtk/gtk_im_context_util.cc',
216 'base/gtk/gtk_im_context_util.h',
217 'base/gtk/gtk_screen_util.cc',
218 'base/gtk/gtk_screen_util.h',
219 'base/gtk/gtk_signal.h',
220 'base/gtk/gtk_signal_registrar.cc',
221 'base/gtk/gtk_signal_registrar.h',
222 'base/gtk/gtk_windowing.cc',
223 'base/gtk/gtk_windowing.h',
224 'base/gtk/menu_label_accelerator_util.cc',
225 'base/gtk/menu_label_accelerator_util.h',
226 'base/gtk/owned_widget_gtk.cc',
227 'base/gtk/owned_widget_gtk.h',
228 'base/gtk/scoped_gobject.h',
229 'base/gtk/scoped_region.cc',
230 'base/gtk/scoped_region.h',
232 'base/keycodes/keyboard_code_conversion.cc',
233 'base/keycodes/keyboard_code_conversion.h',
234 'base/keycodes/keyboard_code_conversion_gtk.cc',
235 'base/keycodes/keyboard_code_conversion_gtk.h',
236 'base/keycodes/keyboard_code_conversion_mac.h',
237 'base/keycodes/keyboard_code_conversion_mac.mm',
238 'base/keycodes/keyboard_code_conversion_win.cc',
239 'base/keycodes/keyboard_code_conversion_win.h',
240 'base/keycodes/keyboard_code_conversion_x.cc',
241 'base/keycodes/keyboard_code_conversion_x.h',
242 'base/keycodes/keyboard_codes.h',
243 'base/keycodes/usb_keycode_map.h',
244 'base/latency_info.cc',
245 'base/latency_info.h',
246 'base/l10n/l10n_font_util.cc',
247 'base/l10n/l10n_font_util.h',
248 'base/l10n/l10n_util.cc',
249 'base/l10n/l10n_util.h',
250 'base/l10n/l10n_util_android.h',
251 'base/l10n/l10n_util_android.cc',
252 'base/l10n/l10n_util_collator.h',
253 'base/l10n/l10n_util_mac.h',
254 'base/l10n/l10n_util_mac.mm',
255 'base/l10n/l10n_util_posix.cc',
256 'base/l10n/l10n_util_win.cc',
257 'base/l10n/l10n_util_win.h',
260 'base/layout_mac.mm',
261 'base/models/button_menu_item_model.cc',
262 'base/models/button_menu_item_model.h',
263 'base/models/combobox_model.cc',
264 'base/models/combobox_model.h',
265 'base/models/dialog_model.cc',
266 'base/models/dialog_model.h',
267 'base/models/list_model.h',
268 'base/models/list_model_observer.h',
269 'base/models/list_selection_model.cc',
270 'base/models/list_selection_model.h',
271 'base/models/menu_model.cc',
272 'base/models/menu_model.h',
273 'base/models/menu_model_delegate.h',
274 'base/models/menu_separator_types.h',
275 'base/models/simple_menu_model.cc',
276 'base/models/simple_menu_model.h',
277 'base/models/table_model.cc',
278 'base/models/table_model.h',
279 'base/models/table_model_observer.h',
280 'base/models/tree_model.cc',
281 'base/models/tree_model.h',
282 'base/models/tree_node_iterator.h',
283 'base/models/tree_node_model.h',
284 'base/ozone/events_ozone.cc',
285 'base/ozone/event_factory_ozone.cc',
286 'base/ozone/event_factory_ozone.h',
287 'base/ozone/event_converter_ozone.cc',
288 'base/ozone/event_converter_ozone.h',
289 'base/ozone/events_ozone.cc',
290 'base/ozone/key_event_converter_ozone.cc',
291 'base/ozone/key_event_converter_ozone.h',
292 'base/ozone/surface_factory_ozone.cc',
293 'base/ozone/surface_factory_ozone.h',
294 'base/ozone/touch_event_converter_ozone.cc',
295 'base/ozone/touch_event_converter_ozone.h',
296 'base/range/range.cc',
297 'base/range/range.h',
298 'base/range/range_mac.mm',
299 'base/range/range_win.cc',
300 'base/resource/data_pack.cc',
301 'base/resource/data_pack.h',
302 'base/resource/resource_bundle.cc',
303 'base/resource/resource_bundle.h',
304 'base/resource/resource_bundle_android.cc',
305 'base/resource/resource_bundle_auralinux.cc',
306 'base/resource/resource_bundle_gtk.cc',
307 'base/resource/resource_bundle_ios.mm',
308 'base/resource/resource_bundle_mac.mm',
309 'base/resource/resource_bundle_win.cc',
310 'base/resource/resource_bundle_win.h',
311 'base/resource/resource_data_dll_win.cc',
312 'base/resource/resource_data_dll_win.h',
313 'base/resource/resource_handle.h',
314 'base/text/bytes_formatting.cc',
315 'base/text/bytes_formatting.h',
316 'base/text/text_elider.cc',
317 'base/text/text_elider.h',
318 'base/text/utf16_indexing.cc',
319 'base/text/utf16_indexing.h',
320 'base/theme_provider.cc',
321 'base/theme_provider.h',
322 'base/touch/touch_device.cc',
323 'base/touch/touch_device.h',
324 'base/touch/touch_device_android.cc',
325 'base/touch/touch_device_aurax11.cc',
326 'base/touch/touch_device_ozone.cc',
327 'base/touch/touch_device_win.cc',
328 'base/touch/touch_editing_controller.cc',
329 'base/touch/touch_editing_controller.h',
330 'base/touch/touch_factory_x11.cc',
331 'base/touch/touch_factory_x11.h',
332 'base/ui_base_exports.cc',
333 'base/ui_base_paths.cc',
334 'base/ui_base_paths.h',
335 'base/ui_base_switches.cc',
336 'base/ui_base_switches.h',
337 'base/ui_base_switches_util.cc',
338 'base/ui_base_switches_util.h',
339 'base/ui_base_types.cc',
340 'base/ui_base_types.h',
344 'base/win/accessibility_ids_win.h',
345 'base/win/accessibility_misc_utils.cc',
346 'base/win/accessibility_misc_utils.h',
347 'base/win/atl_module.h',
350 'base/win/events_win.cc',
351 'base/win/extra_sdk_defines.h',
352 'base/win/foreground_helper.cc',
353 'base/win/foreground_helper.h',
354 'base/win/hidden_window.cc',
355 'base/win/hidden_window.h',
356 'base/win/hwnd_subclass.cc',
357 'base/win/hwnd_subclass.h',
358 'base/win/hwnd_util.cc',
359 'base/win/hwnd_util.h',
360 'base/win/ime_input.cc',
361 'base/win/ime_input.h',
362 'base/win/message_box_win.cc',
363 'base/win/message_box_win.h',
364 'base/win/mouse_wheel_util.cc',
365 'base/win/mouse_wheel_util.h',
366 'base/win/scoped_ole_initializer.cc',
367 'base/win/scoped_ole_initializer.h',
368 'base/win/scoped_set_map_mode.h',
371 'base/win/singleton_hwnd.cc',
372 'base/win/singleton_hwnd.h',
373 'base/win/touch_input.cc',
374 'base/win/touch_input.h',
375 'base/win/window_impl.cc',
376 'base/win/window_impl.h',
377 'base/window_open_disposition.cc',
378 'base/window_open_disposition.h',
379 'base/work_area_watcher_observer.h',
380 'base/x/active_window_watcher_x.cc',
381 'base/x/active_window_watcher_x.h',
382 'base/x/active_window_watcher_x_observer.h',
383 'base/x/device_data_manager.cc',
384 'base/x/device_data_manager.h',
385 'base/x/device_list_cache_x.cc',
386 'base/x/device_list_cache_x.h',
387 'base/x/events_x.cc',
388 'base/x/root_window_property_watcher_x.cc',
389 'base/x/root_window_property_watcher_x.h',
390 'base/x/selection_owner.cc',
391 'base/x/selection_owner.h',
392 'base/x/selection_requestor.cc',
393 'base/x/selection_requestor.h',
394 'base/x/selection_utils.cc',
395 'base/x/selection_utils.h',
396 'base/x/work_area_watcher_x.cc',
397 'base/x/work_area_watcher_x.h',
398 'base/x/x11_atom_cache.cc',
399 'base/x/x11_atom_cache.h',
400 'base/x/x11_util.cc',
402 'base/x/x11_util_internal.h',
403 'gfx/android/device_display_info.cc',
404 'gfx/android/device_display_info.h',
405 'gfx/android/java_bitmap.cc',
406 'gfx/android/java_bitmap.h',
412 'gfx/canvas_android.cc',
414 'gfx/canvas_paint.h',
415 'gfx/canvas_paint_gtk.h',
416 'gfx/canvas_paint_mac.h',
417 'gfx/canvas_paint_win.h',
418 'gfx/canvas_paint_gtk.cc',
419 'gfx/canvas_paint_mac.mm',
420 'gfx/canvas_paint_win.cc',
421 'gfx/canvas_skia.cc',
422 'gfx/canvas_skia_paint.h',
423 'gfx/codec/jpeg_codec.cc',
424 'gfx/codec/jpeg_codec.h',
425 'gfx/codec/png_codec.cc',
426 'gfx/codec/png_codec.h',
427 'gfx/color_analysis.cc',
428 'gfx/color_analysis.h',
429 'gfx/color_profile.cc',
430 'gfx/color_profile.h',
431 'gfx/color_profile_mac.cc',
432 'gfx/color_profile_win.cc',
433 'gfx/color_utils.cc',
437 'gfx/display_observer.cc',
438 'gfx/display_observer.h',
439 'gfx/favicon_size.cc',
440 'gfx/favicon_size.h',
443 'gfx/font_fallback_win.cc',
444 'gfx/font_fallback_win.h',
447 'gfx/font_render_params_android.cc',
448 'gfx/font_render_params_linux.cc',
449 'gfx/font_render_params_linux.h',
450 'gfx/font_smoothing_win.cc',
451 'gfx/font_smoothing_win.h',
454 'gfx/image/canvas_image_source.cc',
455 'gfx/image/canvas_image_source.h',
456 'gfx/image/image.cc',
458 'gfx/image/image_family.cc',
459 'gfx/image/image_family.h',
460 'gfx/image/image_ios.mm',
461 'gfx/image/image_mac.mm',
462 'gfx/image/image_png_rep.cc',
463 'gfx/image/image_png_rep.h',
464 'gfx/image/image_skia.cc',
465 'gfx/image/image_skia.h',
466 'gfx/image/image_skia_operations.cc',
467 'gfx/image/image_skia_operations.h',
468 'gfx/image/image_skia_rep.cc',
469 'gfx/image/image_skia_rep.h',
470 'gfx/image/image_skia_source.h',
471 'gfx/image/image_skia_util_ios.h',
472 'gfx/image/image_skia_util_ios.mm',
473 'gfx/image/image_skia_util_mac.h',
474 'gfx/image/image_skia_util_mac.mm',
475 'gfx/image/image_util.cc',
476 'gfx/image/image_util.h',
477 'gfx/image/image_util_ios.mm',
483 'gfx/interpolated_transform.cc',
484 'gfx/interpolated_transform.h',
485 'gfx/mac/scoped_ns_disable_screen_updates.h',
488 '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/x/events_x.cc',
877 'base/dragdrop/drag_utils.cc',
878 'base/dragdrop/drag_utils.h',
879 'base/touch/touch_device.cc',
885 '<(SHARED_INTERMEDIATE_DIR)/ui',
893 ['OS=="android" and android_webview_build==0', {
898 ['OS=="android" or OS=="ios"', {
900 'gfx/render_text.cc',
909 ['use_system_icu==1', {
910 # When using the system icu, the icu targets generate shim headers
911 # which are included by public headers in the ui target, so we need
912 # ui to be a hard dependency for all its users.
913 'hard_dependency': 1,
918 'target_name': 'webui_test_support',
920 'direct_dependent_settings': {
922 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
931 'target_name': 'ui_jni_headers',
933 'direct_dependent_settings': {
935 '<(SHARED_INTERMEDIATE_DIR)/ui',
939 'android/java/src/org/chromium/ui/Clipboard.java',
940 'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
941 'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
942 'android/java/src/org/chromium/ui/LocalizationUtils.java',
943 'android/java/src/org/chromium/ui/SelectFileDialog.java',
944 'android/java/src/org/chromium/ui/ViewAndroid.java',
945 'android/java/src/org/chromium/ui/WindowAndroid.java',
948 'jni_gen_package': 'ui',
950 'includes': [ '../build/jni_generator.gypi' ],
953 'target_name': 'ui_java',
956 'java_in_dir': '../ui/android/java',
957 'has_java_resources': 1,
958 'R_package': 'org.chromium.ui',
959 'R_package_relpath': 'org/chromium/ui',
960 'java_strings_grd': 'android_ui_strings.grd',
963 '../base/base.gyp:base_java',
965 'includes': [ '../build/java.gypi' ],
972 'target_name': 'ui_cocoa_third_party_toolkits',
973 'type': '<(component)',
975 # Build Apple sample code
976 '../third_party/apple_sample_code/ImageAndTextCell.h',
977 '../third_party/apple_sample_code/ImageAndTextCell.m',
978 # Build the necessary GTM sources
979 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
980 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
981 '../third_party/GTM/AppKit/GTMIBArray.h',
982 '../third_party/GTM/AppKit/GTMIBArray.m',
983 '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
984 '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
985 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
986 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
987 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
988 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
989 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
990 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
991 '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
992 '../third_party/GTM/AppKit/GTMUILocalizer.h',
993 '../third_party/GTM/AppKit/GTMUILocalizer.m',
994 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
995 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
996 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
997 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
998 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
999 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
1000 # MolokoCacao additions
1001 '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
1002 '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
1003 # Build necessary Mozilla sources
1004 '../third_party/mozilla/NSScreen+Utils.h',
1005 '../third_party/mozilla/NSScreen+Utils.m',
1006 '../third_party/mozilla/NSWorkspace+Utils.h',
1007 '../third_party/mozilla/NSWorkspace+Utils.m',
1011 '../third_party/apple',
1012 '../third_party/GTM',
1013 '../third_party/GTM/AppKit',
1014 '../third_party/GTM/DebugUtils',
1015 '../third_party/GTM/Foundation',
1019 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1020 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1024 ['component=="shared_library"', {
1025 # GTM is third-party code, so we don't want to add _EXPORT
1026 # annotations to it, so build it without -fvisibility=hidden
1027 # (else the interface class symbols will be hidden in a 64bit
1028 # build). Only do this in a component build, so that the shipping
1029 # chrome binary doesn't end up with unnecessarily exported
1032 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',