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.
16 'type': '<(component)',
18 '../base/base.gyp:base',
19 '../base/base.gyp:base_i18n',
20 '../base/base.gyp:base_static',
21 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
22 '../build/temp_gyp/googleurl.gyp:googleurl',
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 'base/strings/ui_strings.gyp:ui_strings',
35 # Export these dependencies since text_elider.h includes ICU headers.
36 'export_dependent_settings': [
38 '../third_party/icu/icu.gyp:icui18n',
39 '../third_party/icu/icu.gyp:icuuc',
42 'android/ui_jni_registrar.cc',
43 'android/ui_jni_registrar.h',
44 'android/view_android.cc',
45 'android/view_android.h',
46 'android/window_android.cc',
47 'android/window_android.h',
48 'base/accelerators/accelerator.cc',
49 'base/accelerators/accelerator.h',
50 'base/accelerators/platform_accelerator.h',
51 'base/accelerators/platform_accelerator_cocoa.h',
52 'base/accelerators/platform_accelerator_cocoa.mm',
53 'base/accelerators/platform_accelerator_gtk.cc',
54 'base/accelerators/platform_accelerator_gtk.h',
55 'base/accelerators/accelerator_manager.cc',
56 'base/accelerators/accelerator_manager.h',
57 'base/accessibility/accessibility_types.h',
58 'base/accessibility/accessible_text_utils.cc',
59 'base/accessibility/accessible_text_utils.h',
60 'base/accessibility/accessible_view_state.cc',
61 'base/accessibility/accessible_view_state.h',
62 'base/animation/animation.cc',
63 'base/animation/animation.h',
64 'base/animation/animation_container.cc',
65 'base/animation/animation_container.h',
66 'base/animation/animation_container_element.h',
67 'base/animation/animation_container_observer.h',
68 'base/animation/animation_delegate.h',
69 'base/animation/linear_animation.cc',
70 'base/animation/linear_animation.h',
71 'base/animation/multi_animation.cc',
72 'base/animation/multi_animation.h',
73 'base/animation/slide_animation.cc',
74 'base/animation/slide_animation.h',
75 'base/animation/throb_animation.cc',
76 'base/animation/throb_animation.h',
77 'base/animation/tween.cc',
78 'base/animation/tween.h',
79 'base/clipboard/clipboard.cc',
80 'base/clipboard/clipboard.h',
81 'base/clipboard/clipboard_android.cc',
82 'base/clipboard/clipboard_android_initialization.h',
83 'base/clipboard/clipboard_aurax11.cc',
84 'base/clipboard/clipboard_chromeos.cc',
85 'base/clipboard/clipboard_gtk.cc',
86 'base/clipboard/clipboard_mac.mm',
87 'base/clipboard/clipboard_sourcetag.h',
88 'base/clipboard/clipboard_util_win.cc',
89 'base/clipboard/clipboard_util_win.h',
90 'base/clipboard/clipboard_win.cc',
91 'base/clipboard/custom_data_helper.cc',
92 'base/clipboard/custom_data_helper.h',
93 'base/clipboard/custom_data_helper_linux.cc',
94 'base/clipboard/custom_data_helper_mac.mm',
95 'base/clipboard/scoped_clipboard_writer.cc',
96 'base/clipboard/scoped_clipboard_writer.h',
97 'base/cocoa/base_view.h',
98 'base/cocoa/base_view.mm',
99 'base/cocoa/events_mac.mm',
100 'base/cocoa/find_pasteboard.h',
101 'base/cocoa/find_pasteboard.mm',
102 'base/cocoa/focus_tracker.h',
103 'base/cocoa/focus_tracker.mm',
104 'base/cocoa/focus_window_set.h',
105 'base/cocoa/focus_window_set.mm',
106 'base/cocoa/fullscreen_window_manager.h',
107 'base/cocoa/fullscreen_window_manager.mm',
108 'base/cocoa/hover_button.h',
109 'base/cocoa/hover_button.mm',
110 'base/cocoa/hover_image_button.h',
111 'base/cocoa/hover_image_button.mm',
112 'base/cocoa/nib_loading.h',
113 'base/cocoa/nib_loading.mm',
114 'base/cocoa/tracking_area.h',
115 'base/cocoa/tracking_area.mm',
116 'base/cocoa/underlay_opengl_hosting_window.h',
117 'base/cocoa/underlay_opengl_hosting_window.mm',
118 'base/cocoa/window_size_constants.h',
119 'base/cocoa/window_size_constants.mm',
120 'base/cursor/cursor.cc',
121 'base/cursor/cursor.h',
122 'base/cursor/cursor_loader.h',
123 'base/cursor/cursor_loader_null.cc',
124 'base/cursor/cursor_loader_null.h',
125 'base/cursor/cursor_loader_win.cc',
126 'base/cursor/cursor_null.cc',
127 'base/cursor/cursor_loader_win.h',
128 'base/cursor/cursor_loader_x11.cc',
129 'base/cursor/cursor_loader_x11.h',
130 'base/cursor/cursor_win.cc',
131 'base/cursor/cursor_x11.cc',
132 'base/cursor/cursors_aura.cc',
133 'base/cursor/cursors_aura.h',
134 'base/dragdrop/cocoa_dnd_util.h',
135 'base/dragdrop/cocoa_dnd_util.mm',
136 'base/dragdrop/desktop_selection_provider_aurax11.h',
137 'base/dragdrop/drag_drop_types.h',
138 'base/dragdrop/drag_drop_types_win.cc',
139 'base/dragdrop/drag_source_win.cc',
140 'base/dragdrop/drag_source_win.h',
141 'base/dragdrop/drag_utils.cc',
142 'base/dragdrop/drag_utils.h',
143 'base/dragdrop/drag_utils_aura.cc',
144 'base/dragdrop/drag_utils_win.cc',
145 'base/dragdrop/drop_target_win.cc',
146 'base/dragdrop/drop_target_win.h',
147 'base/dragdrop/gtk_dnd_util.cc',
148 'base/dragdrop/gtk_dnd_util.h',
149 'base/dragdrop/os_exchange_data.cc',
150 'base/dragdrop/os_exchange_data.h',
151 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
152 'base/dragdrop/os_exchange_data_provider_aurax11.h',
153 'base/dragdrop/os_exchange_data_provider_chromeos.cc',
154 'base/dragdrop/os_exchange_data_provider_chromeos.h',
155 'base/dragdrop/os_exchange_data_provider_win.cc',
156 'base/dragdrop/os_exchange_data_provider_win.h',
157 'base/events/event.cc',
158 'base/events/event.h',
159 'base/events/event_constants.h',
160 'base/events/event_conversion_gtk.cc',
161 'base/events/event_conversion_gtk.h',
162 'base/events/event_dispatcher.cc',
163 'base/events/event_dispatcher.h',
164 'base/events/event_handler.cc',
165 'base/events/event_handler.h',
166 'base/events/event_target.cc',
167 'base/events/event_target.h',
168 'base/events/event_utils.cc',
169 'base/events/event_utils.h',
170 'base/events/key_identifier_conversion.cc',
171 'base/events/key_identifier_conversion.h',
172 'base/gestures/gesture_configuration.cc',
173 'base/gestures/gesture_configuration.h',
174 'base/gestures/gesture_point.cc',
175 'base/gestures/gesture_point.h',
176 'base/gestures/gesture_recognizer.h',
177 'base/gestures/gesture_recognizer_impl.cc',
178 'base/gestures/gesture_recognizer_impl.h',
179 'base/gestures/gesture_sequence.cc',
180 'base/gestures/gesture_sequence.h',
181 'base/gestures/gesture_types.cc',
182 'base/gestures/gesture_types.h',
183 'base/gestures/gesture_util.cc',
184 'base/gestures/gesture_util.h',
185 'base/gestures/velocity_calculator.cc',
186 'base/gestures/velocity_calculator.h',
187 'base/gtk/event_synthesis_gtk.cc',
188 'base/gtk/event_synthesis_gtk.h',
189 'base/gtk/focus_store_gtk.cc',
190 'base/gtk/focus_store_gtk.h',
191 'base/gtk/g_object_destructor_filo.cc',
192 'base/gtk/g_object_destructor_filo.h',
193 'base/gtk/gtk_expanded_container.cc',
194 'base/gtk/gtk_expanded_container.h',
195 'base/gtk/gtk_floating_container.cc',
196 'base/gtk/gtk_floating_container.h',
197 'base/gtk/gtk_hig_constants.h',
198 'base/gtk/gtk_im_context_util.cc',
199 'base/gtk/gtk_im_context_util.h',
200 'base/gtk/gtk_screen_util.cc',
201 'base/gtk/gtk_screen_util.h',
202 'base/gtk/gtk_signal.h',
203 'base/gtk/gtk_signal_registrar.cc',
204 'base/gtk/gtk_signal_registrar.h',
205 'base/gtk/gtk_windowing.cc',
206 'base/gtk/gtk_windowing.h',
207 'base/gtk/menu_label_accelerator_util.cc',
208 'base/gtk/menu_label_accelerator_util.h',
209 'base/gtk/owned_widget_gtk.cc',
210 'base/gtk/owned_widget_gtk.h',
211 'base/gtk/scoped_gobject.h',
212 'base/gtk/scoped_region.cc',
213 'base/gtk/scoped_region.h',
215 'base/keycodes/keyboard_code_conversion.cc',
216 'base/keycodes/keyboard_code_conversion.h',
217 'base/keycodes/keyboard_code_conversion_gtk.cc',
218 'base/keycodes/keyboard_code_conversion_gtk.h',
219 'base/keycodes/keyboard_code_conversion_mac.h',
220 'base/keycodes/keyboard_code_conversion_mac.mm',
221 'base/keycodes/keyboard_code_conversion_win.cc',
222 'base/keycodes/keyboard_code_conversion_win.h',
223 'base/keycodes/keyboard_code_conversion_x.cc',
224 'base/keycodes/keyboard_code_conversion_x.h',
225 'base/keycodes/keyboard_codes.h',
226 'base/keycodes/usb_keycode_map.h',
227 'base/l10n/l10n_font_util.cc',
228 'base/l10n/l10n_font_util.h',
229 'base/l10n/l10n_util.cc',
230 'base/l10n/l10n_util.h',
231 'base/l10n/l10n_util_android.h',
232 'base/l10n/l10n_util_android.cc',
233 'base/l10n/l10n_util_collator.h',
234 'base/l10n/l10n_util_mac.h',
235 'base/l10n/l10n_util_mac.mm',
236 'base/l10n/l10n_util_posix.cc',
237 'base/l10n/l10n_util_win.cc',
238 'base/l10n/l10n_util_win.h',
241 'base/layout_mac.mm',
242 'base/models/button_menu_item_model.cc',
243 'base/models/button_menu_item_model.h',
244 'base/models/combobox_model.cc',
245 'base/models/combobox_model.h',
246 'base/models/list_model.h',
247 'base/models/list_model_observer.h',
248 'base/models/list_selection_model.cc',
249 'base/models/list_selection_model.h',
250 'base/models/menu_model.cc',
251 'base/models/menu_model.h',
252 'base/models/menu_model_delegate.h',
253 'base/models/menu_separator_types.h',
254 'base/models/simple_menu_model.cc',
255 'base/models/simple_menu_model.h',
256 'base/models/table_model.cc',
257 'base/models/table_model.h',
258 'base/models/table_model_observer.h',
259 'base/models/tree_model.cc',
260 'base/models/tree_model.h',
261 'base/models/tree_node_iterator.h',
262 'base/models/tree_node_model.h',
263 'base/range/range.cc',
264 'base/range/range.h',
265 'base/range/range_mac.mm',
266 'base/range/range_win.cc',
267 'base/resource/data_pack.cc',
268 'base/resource/data_pack.h',
269 'base/resource/resource_bundle.cc',
270 'base/resource/resource_bundle.h',
271 'base/resource/resource_bundle_android.cc',
272 'base/resource/resource_bundle_auralinux.cc',
273 'base/resource/resource_bundle_gtk.cc',
274 'base/resource/resource_bundle_ios.mm',
275 'base/resource/resource_bundle_mac.mm',
276 'base/resource/resource_bundle_win.cc',
277 'base/resource/resource_bundle_win.h',
278 'base/resource/resource_data_dll_win.cc',
279 'base/resource/resource_data_dll_win.h',
280 'base/resource/resource_handle.h',
281 'base/text/bytes_formatting.cc',
282 'base/text/bytes_formatting.h',
283 'base/text/text_elider.cc',
284 'base/text/text_elider.h',
285 'base/text/utf16_indexing.cc',
286 'base/text/utf16_indexing.h',
287 'base/theme_provider.cc',
288 'base/theme_provider.h',
289 'base/touch/touch_device.cc',
290 'base/touch/touch_device.h',
291 'base/touch/touch_device_android.cc',
292 'base/touch/touch_device_win.cc',
293 'base/touch/touch_editing_controller.cc',
294 'base/touch/touch_editing_controller.h',
295 'base/touch/touch_factory_x11.cc',
296 'base/touch/touch_factory_x11.h',
297 'base/ui_base_exports.cc',
298 'base/ui_base_paths.cc',
299 'base/ui_base_paths.h',
300 'base/ui_base_switches.cc',
301 'base/ui_base_switches.h',
302 'base/ui_base_switches_util.cc',
303 'base/ui_base_switches_util.h',
304 'base/ui_base_types.h',
308 'base/win/accessibility_ids_win.h',
309 'base/win/accessibility_misc_utils.cc',
310 'base/win/accessibility_misc_utils.h',
311 'base/win/atl_module.h',
314 'base/win/events_win.cc',
315 'base/win/extra_sdk_defines.h',
316 'base/win/foreground_helper.cc',
317 'base/win/foreground_helper.h',
318 'base/win/hidden_window.cc',
319 'base/win/hidden_window.h',
320 'base/win/hwnd_subclass.cc',
321 'base/win/hwnd_subclass.h',
322 'base/win/hwnd_util.cc',
323 'base/win/hwnd_util.h',
324 'base/win/ime_input.cc',
325 'base/win/ime_input.h',
326 'base/win/message_box_win.cc',
327 'base/win/message_box_win.h',
328 'base/win/mouse_wheel_util.cc',
329 'base/win/mouse_wheel_util.h',
330 'base/win/scoped_ole_initializer.cc',
331 'base/win/scoped_ole_initializer.h',
332 'base/win/scoped_set_map_mode.h',
335 'base/win/singleton_hwnd.cc',
336 'base/win/singleton_hwnd.h',
337 'base/win/touch_input.cc',
338 'base/win/touch_input.h',
339 'base/win/window_impl.cc',
340 'base/win/window_impl.h',
341 'base/window_open_disposition.cc',
342 'base/window_open_disposition.h',
343 'base/work_area_watcher_observer.h',
344 'base/x/active_window_watcher_x.cc',
345 'base/x/active_window_watcher_x.h',
346 'base/x/active_window_watcher_x_observer.h',
347 'base/x/device_list_cache_x.cc',
348 'base/x/device_list_cache_x.h',
349 'base/x/events_x.cc',
350 'base/x/root_window_property_watcher_x.cc',
351 'base/x/root_window_property_watcher_x.h',
352 'base/x/selection_owner.cc',
353 'base/x/selection_owner.h',
354 'base/x/selection_requestor.cc',
355 'base/x/selection_requestor.h',
356 'base/x/selection_utils.cc',
357 'base/x/selection_utils.h',
358 'base/x/valuators.cc',
359 'base/x/valuators.h',
360 'base/x/work_area_watcher_x.cc',
361 'base/x/work_area_watcher_x.h',
362 'base/x/x11_atom_cache.cc',
363 'base/x/x11_atom_cache.h',
364 'base/x/x11_util.cc',
366 'base/x/x11_util_internal.h',
367 'gfx/android/device_display_info.cc',
368 'gfx/android/device_display_info.h',
369 'gfx/android/java_bitmap.cc',
370 'gfx/android/java_bitmap.h',
376 'gfx/canvas_android.cc',
378 'gfx/canvas_paint.h',
379 'gfx/canvas_paint_gtk.h',
380 'gfx/canvas_paint_mac.h',
381 'gfx/canvas_paint_win.h',
382 'gfx/canvas_paint_gtk.cc',
383 'gfx/canvas_paint_mac.mm',
384 'gfx/canvas_paint_win.cc',
385 'gfx/canvas_skia.cc',
386 'gfx/canvas_skia_paint.h',
387 'gfx/codec/jpeg_codec.cc',
388 'gfx/codec/jpeg_codec.h',
389 'gfx/codec/png_codec.cc',
390 'gfx/codec/png_codec.h',
391 'gfx/color_analysis.cc',
392 'gfx/color_analysis.h',
393 'gfx/color_profile.cc',
394 'gfx/color_profile.h',
395 'gfx/color_profile_mac.cc',
396 'gfx/color_profile_win.cc',
397 'gfx/color_utils.cc',
401 'gfx/display_observer.cc',
402 'gfx/display_observer.h',
403 'gfx/favicon_size.cc',
404 'gfx/favicon_size.h',
407 'gfx/font_fallback_win.cc',
408 'gfx/font_fallback_win.h',
411 'gfx/font_render_params_android.cc',
412 'gfx/font_render_params_linux.cc',
413 'gfx/font_render_params_linux.h',
414 'gfx/font_smoothing_win.cc',
415 'gfx/font_smoothing_win.h',
418 'gfx/image/canvas_image_source.cc',
419 'gfx/image/canvas_image_source.h',
420 'gfx/image/image.cc',
422 'gfx/image/image_family.cc',
423 'gfx/image/image_family.h',
424 'gfx/image/image_ios.mm',
425 'gfx/image/image_mac.mm',
426 'gfx/image/image_png_rep.cc',
427 'gfx/image/image_png_rep.h',
428 'gfx/image/image_skia.cc',
429 'gfx/image/image_skia.h',
430 'gfx/image/image_skia_operations.cc',
431 'gfx/image/image_skia_operations.h',
432 'gfx/image/image_skia_rep.cc',
433 'gfx/image/image_skia_rep.h',
434 'gfx/image/image_skia_source.h',
435 'gfx/image/image_skia_util_ios.h',
436 'gfx/image/image_skia_util_ios.mm',
437 'gfx/image/image_skia_util_mac.h',
438 'gfx/image/image_skia_util_mac.mm',
439 'gfx/image/image_util.cc',
440 'gfx/image/image_util.h',
441 'gfx/image/image_util_ios.mm',
447 'gfx/interpolated_transform.cc',
448 'gfx/interpolated_transform.h',
449 'gfx/mac/scoped_ns_disable_screen_updates.h',
452 'gfx/native_widget_types.h',
461 'gfx/platform_font.h',
462 'gfx/platform_font_android.cc',
463 'gfx/platform_font_ios.h',
464 'gfx/platform_font_ios.mm',
465 'gfx/platform_font_mac.h',
466 'gfx/platform_font_mac.mm',
467 'gfx/platform_font_pango.cc',
468 'gfx/platform_font_pango.h',
469 'gfx/platform_font_win.cc',
470 'gfx/platform_font_win.h',
476 'gfx/point_conversions.cc',
477 'gfx/point_conversions.h',
485 'gfx/rect_base_impl.h',
486 'gfx/rect_conversions.cc',
487 'gfx/rect_conversions.h',
490 'gfx/render_text.cc',
492 'gfx/render_text_linux.cc',
493 'gfx/render_text_linux.h',
494 'gfx/render_text_mac.cc',
495 'gfx/render_text_mac.h',
496 'gfx/render_text_win.cc',
497 'gfx/render_text_win.h',
498 'gfx/safe_integer_conversions.h',
499 'gfx/scoped_cg_context_save_gstate_mac.h',
500 'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
501 'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
502 'gfx/scoped_ui_graphics_push_context_ios.h',
503 'gfx/scoped_ui_graphics_push_context_ios.mm',
506 'gfx/screen_android.cc',
507 'gfx/screen_aura.cc',
513 'gfx/scrollbar_size.cc',
514 'gfx/scrollbar_size.h',
515 'gfx/selection_model.cc',
516 'gfx/selection_model.h',
517 'gfx/shadow_value.cc',
518 'gfx/shadow_value.h',
522 'gfx/size_conversions.cc',
523 'gfx/size_conversions.h',
526 'gfx/skbitmap_operations.cc',
527 'gfx/skbitmap_operations.h',
530 'gfx/skia_utils_gtk.cc',
531 'gfx/skia_utils_gtk.h',
534 'gfx/sys_color_change_listener.cc',
535 'gfx/sys_color_change_listener.h',
536 'gfx/text_constants.h',
541 'gfx/transform_util.cc',
542 'gfx/transform_util.h',
545 'gfx/vector2d_conversions.cc',
546 'gfx/vector2d_conversions.h',
551 'webui/jstemplate_builder.cc',
552 'webui/jstemplate_builder.h',
553 'webui/web_ui_util.cc',
554 'webui/web_ui_util.h',
556 'target_conditions': [
559 ['include', '^base/l10n/l10n_util_mac\\.mm$'],
569 '<(libjpeg_gyp_path):libjpeg',
572 # iOS only uses a subset of UI.
574 ['exclude', '\\.(cc|mm)$'],
575 ['include', '_ios\\.(cc|mm)$'],
576 ['include', '(^|/)ios/'],
577 ['include', '^gfx/'],
578 ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
579 ['exclude', '^gfx/pango_util\\.'],
580 ['exclude', '^gfx/platform_font_pango\\.'],
581 ['include', '^base/animation/'],
582 ['include', '^base/l10n/'],
583 ['include', '^base/layout'],
584 ['include', '^base/range/'],
585 ['include', '^base/resource/'],
586 ['include', '^base/text/text_elider\\.'],
587 ['include', '^base/ui_base_'],
591 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
595 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
596 # http://crbug.com/105550
597 ['use_canvas_skia==1', {
599 'gfx/canvas_android.cc',
602 }, { # use_canvas_skia!=1
604 'gfx/canvas_skia.cc',
609 ['exclude', 'gfx/gtk_'],
610 ['exclude', 'gfx/gtk_util.cc'],
611 ['exclude', 'gfx/gtk_util.h'],
612 ['exclude', 'gfx/screen_gtk.cc'],
613 ['exclude', 'base/work_area_watcher_observer.h'],
614 ['exclude', 'base/x/active_window_watcher_x.cc'],
615 ['exclude', 'base/x/active_window_watcher_x.h'],
616 ['exclude', 'base/x/active_window_watcher_x_observer.h'],
617 ['exclude', 'base/x/root_window_property_watcher_x.cc'],
618 ['exclude', 'base/x/root_window_property_watcher_x.h'],
619 ['exclude', 'base/x/work_area_watcher_x.cc'],
620 ['exclude', 'base/x/work_area_watcher_x.h'],
624 'base/cursor/cursor.cc',
625 'base/cursor/cursor.h',
626 'base/cursor/cursor_loader_x11.cc',
627 'base/cursor/cursor_loader_x11.h',
628 'base/cursor/cursor_win.cc',
629 'base/cursor/cursor_x11.cc',
630 'base/x/selection_owner.cc',
631 'base/x/selection_owner.h',
632 'base/x/selection_requestor.cc',
633 'base/x/selection_requestor.h',
634 'base/x/selection_utils.cc',
635 'base/x/selection_utils.h',
639 ['use_aura==0 or OS!="linux"', {
641 'base/resource/resource_bundle_auralinux.cc',
644 ['use_aura==1 and OS=="win"', {
646 ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
649 ['use_aura==0 and toolkit_views==0', {
651 ['exclude', '^base/gestures/*'],
656 # font_gtk.cc uses fontconfig.
657 '../build/linux/system.gyp:fontconfig',
658 '../build/linux/system.gyp:glib',
659 '../build/linux/system.gyp:pangocairo',
662 ['toolkit_views==0', {
663 # Note: because of gyp predence rules this has to be defined as
664 # 'sources/' rather than 'sources!'.
666 ['exclude', '^base/dragdrop/drag_utils.cc'],
667 ['exclude', '^base/dragdrop/drag_utils.h'],
668 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
669 ['exclude', '^base/dragdrop/os_exchange_data.h'],
672 # Note: because of gyp predence rules this has to be defined as
673 # 'sources/' rather than 'sources!'.
675 ['include', '^base/dragdrop/os_exchange_data.cc'],
680 ['toolkit_uses_gtk == 1', {
682 '../build/linux/system.gyp:gtk',
685 'gfx/gtk_native_view_id_manager.cc',
686 'gfx/gtk_native_view_id_manager.h',
687 'gfx/gtk_preserve_window.cc',
688 'gfx/gtk_preserve_window.h',
691 'gfx/image/cairo_cached_surface.cc',
692 'gfx/image/cairo_cached_surface.h',
697 'base/touch/touch_device_aurax11.cc',
700 'base/clipboard/clipboard_aurax11.cc',
701 'base/dragdrop/os_exchange_data_provider_aurax11.cc',
702 'base/touch/touch_device.cc',
713 'base/touch/touch_device.cc',
716 'gfx/platform_font_pango.cc',
717 'gfx/platform_font_pango.h',
721 '../third_party/wtl/include',
723 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
724 # C4324 is structure was padded due to __declspec(align()), which is
726 'msvs_disabled_warnings': [ 4267, 4324 ],
734 'AdditionalDependencies': [
759 'base/dragdrop/drag_drop_types.h',
760 'base/dragdrop/os_exchange_data.cc',
763 ['exclude', '^base/win/'],
768 'base/dragdrop/drag_utils.cc',
769 'base/dragdrop/drag_utils.h',
772 'gfx/platform_font_pango.h',
773 'gfx/platform_font_pango.cc',
777 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
778 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
779 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
784 'all_dependent_settings': {
792 '-lXrandr', # For XRR* function calls in x11_util.cc.
793 '-lXrender', # For XRender* function calls in x11_util.cc.
801 '-lXrandr', # For XRR* function calls in x11_util.cc.
802 '-lXrender', # For XRender* function calls in x11_util.cc.
806 '../build/linux/system.gyp:x11',
807 '../build/linux/system.gyp:xext',
808 '../build/linux/system.gyp:xfixes',
812 ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
813 ['exclude', 'base/x/*'],
816 ['use_messagepump_linux==0', {
818 'base/cursor/cursor_null.cc',
819 'base/cursor/cursor_loader_null.cc',
820 'base/cursor/cursor_loader_null.h',
823 ['toolkit_views==0', {
825 'base/events/event.cc',
826 'base/events/event.h',
827 'base/events/event_dispatcher.cc',
828 'base/events/event_dispatcher.h',
829 'base/events/event_handler.cc',
830 'base/events/event_handler.h',
831 'base/events/event_target.cc',
832 'base/events/event_target.h',
833 'base/events/key_identifier_conversion.cc',
834 'base/events/key_identifier_conversion.h',
835 'base/x/events_x.cc',
840 'base/dragdrop/drag_utils.cc',
841 'base/dragdrop/drag_utils.h',
842 'base/touch/touch_device.cc',
845 'gfx/platform_font_pango.cc',
846 'gfx/platform_font_pango.h',
852 '<(SHARED_INTERMEDIATE_DIR)/ui',
860 ['OS=="android" and android_webview_build==0', {
865 ['OS=="android" or OS=="ios"', {
867 'gfx/render_text.cc',
876 ['inside_chromium_build==0', {
878 '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers',
881 ['use_system_icu==1', {
882 # When using the system icu, the icu targets generate shim headers
883 # which are included by public headers in the ui target, so we need
884 # ui to be a hard dependency for all its users.
885 'hard_dependency': 1,
891 ['inside_chromium_build == 1', {
899 'target_name': 'ui_jni_headers',
901 'direct_dependent_settings': {
903 '<(SHARED_INTERMEDIATE_DIR)/ui',
907 'android/java/src/org/chromium/ui/Clipboard.java',
908 'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
909 'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
910 'android/java/src/org/chromium/ui/LocalizationUtils.java',
911 'android/java/src/org/chromium/ui/SelectFileDialog.java',
912 'android/java/src/org/chromium/ui/ViewAndroid.java',
913 'android/java/src/org/chromium/ui/WindowAndroid.java',
916 'jni_gen_package': 'ui',
918 'includes': [ '../build/jni_generator.gypi' ],
921 'target_name': 'ui_java',
924 'java_in_dir': '../ui/android/java',
925 'has_java_resources': 1,
926 'R_package': 'org.chromium.ui',
927 'R_package_relpath': 'org/chromium/ui',
928 'java_strings_grd': 'android_ui_strings.grd',
931 '../base/base.gyp:base_java',
933 'includes': [ '../build/java.gypi' ],
940 'target_name': 'ui_cocoa_third_party_toolkits',
941 'type': '<(component)',
943 # Build Apple sample code
944 '../third_party/apple_sample_code/ImageAndTextCell.h',
945 '../third_party/apple_sample_code/ImageAndTextCell.m',
946 # Build the necessary GTM sources
947 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
948 '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
949 '../third_party/GTM/AppKit/GTMIBArray.h',
950 '../third_party/GTM/AppKit/GTMIBArray.m',
951 '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
952 '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
953 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
954 '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
955 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
956 '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
957 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
958 '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
959 '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
960 '../third_party/GTM/AppKit/GTMUILocalizer.h',
961 '../third_party/GTM/AppKit/GTMUILocalizer.m',
962 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
963 '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
964 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
965 '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
966 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
967 '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
968 # MolokoCacao additions
969 '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
970 '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
971 # Build necessary Mozilla sources
972 '../third_party/mozilla/NSScreen+Utils.h',
973 '../third_party/mozilla/NSScreen+Utils.m',
974 '../third_party/mozilla/NSWorkspace+Utils.h',
975 '../third_party/mozilla/NSWorkspace+Utils.m',
979 '../third_party/apple',
980 '../third_party/GTM',
981 '../third_party/GTM/AppKit',
982 '../third_party/GTM/DebugUtils',
983 '../third_party/GTM/Foundation',
987 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
988 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
992 ['component=="shared_library"', {
993 # GTM is third-party code, so we don't want to add _EXPORT
994 # annotations to it, so build it without -fvisibility=hidden
995 # (else the interface class symbols will be hidden in a 64bit
996 # build). Only do this in a component build, so that the shipping
997 # chrome binary doesn't end up with unnecessarily exported
1000 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',