Android: remove ContentView/ContentViewCore NeedsReload().
[chromium-blink-merge.git] / ui / ui.gyp
blob25777a3d93433b7535c7e871cf4affe999c34d3c
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'includes': [
10     'shell_dialogs.gypi',
11     'ui_resources.gypi',
12     'ui_unittests.gypi',
13   ],
14   'targets': [
15     {
16       'target_name': 'ui',
17       'type': '<(component)',
18       'dependencies': [
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',
23         '../net/net.gyp:net',
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',
31         'events/events.gyp:events',
32         'gfx/gfx.gyp:gfx',
33         'ui_resources',
34       ],
35       'defines': [
36         'UI_IMPLEMENTATION',
37       ],
38       # Export these dependencies since text_elider.h includes ICU headers.
39       'export_dependent_settings': [
40         '../net/net.gyp:net',
41         '../third_party/icu/icu.gyp:icui18n',
42         '../third_party/icu/icu.gyp:icuuc',
43         'events/events.gyp:events',
44         'gfx/gfx.gyp:gfx',
45       ],
46       'sources' : [
47         'android/ui_jni_registrar.cc',
48         'android/ui_jni_registrar.h',
49         'android/view_android.cc',
50         'android/view_android.h',
51         'android/window_android.cc',
52         'android/window_android.h',
53         'base/accelerators/accelerator.cc',
54         'base/accelerators/accelerator.h',
55         'base/accelerators/menu_label_accelerator_util_linux.cc',
56         'base/accelerators/menu_label_accelerator_util_linux.h',
57         'base/accelerators/platform_accelerator.h',
58         'base/accelerators/platform_accelerator_cocoa.h',
59         'base/accelerators/platform_accelerator_cocoa.mm',
60         'base/accelerators/platform_accelerator_gtk.cc',
61         'base/accelerators/platform_accelerator_gtk.h',
62         'base/accelerators/accelerator_manager.cc',
63         'base/accelerators/accelerator_manager.h',
64         'base/accessibility/accessibility_types.h',
65         'base/accessibility/accessible_text_utils.cc',
66         'base/accessibility/accessible_text_utils.h',
67         'base/accessibility/accessible_view_state.cc',
68         'base/accessibility/accessible_view_state.h',
69         'base/base_window.cc',
70         'base/base_window.h',
71         'base/clipboard/clipboard.cc',
72         'base/clipboard/clipboard.h',
73         'base/clipboard/clipboard_android.cc',
74         'base/clipboard/clipboard_android_initialization.h',
75         'base/clipboard/clipboard_aura.cc',
76         'base/clipboard/clipboard_aurax11.cc',
77         'base/clipboard/clipboard_constants.cc',
78         'base/clipboard/clipboard_gtk.cc',
79         'base/clipboard/clipboard_mac.mm',
80         'base/clipboard/clipboard_util_win.cc',
81         'base/clipboard/clipboard_util_win.h',
82         'base/clipboard/clipboard_win.cc',
83         'base/clipboard/custom_data_helper.cc',
84         'base/clipboard/custom_data_helper.h',
85         'base/clipboard/custom_data_helper_linux.cc',
86         'base/clipboard/custom_data_helper_mac.mm',
87         'base/clipboard/scoped_clipboard_writer.cc',
88         'base/clipboard/scoped_clipboard_writer.h',
89         'base/cocoa/animation_utils.h',
90         'base/cocoa/appkit_utils.h',
91         'base/cocoa/appkit_utils.mm',
92         'base/cocoa/base_view.h',
93         'base/cocoa/base_view.mm',
94         'base/cocoa/cocoa_event_utils.h',
95         'base/cocoa/cocoa_event_utils.mm',
96         'base/cocoa/controls/blue_label_button.h',
97         'base/cocoa/controls/blue_label_button.mm',
98         'base/cocoa/controls/hover_image_menu_button.h',
99         'base/cocoa/controls/hover_image_menu_button.mm',
100         'base/cocoa/controls/hover_image_menu_button_cell.h',
101         'base/cocoa/controls/hover_image_menu_button_cell.mm',
102         'base/cocoa/controls/hyperlink_button_cell.h',
103         'base/cocoa/controls/hyperlink_button_cell.mm',
104         'base/cocoa/find_pasteboard.h',
105         'base/cocoa/find_pasteboard.mm',
106         'base/cocoa/flipped_view.h',
107         'base/cocoa/flipped_view.mm',
108         'base/cocoa/focus_tracker.h',
109         'base/cocoa/focus_tracker.mm',
110         'base/cocoa/focus_window_set.h',
111         'base/cocoa/focus_window_set.mm',
112         'base/cocoa/fullscreen_window_manager.h',
113         'base/cocoa/fullscreen_window_manager.mm',
114         'base/cocoa/hover_button.h',
115         'base/cocoa/hover_button.mm',
116         'base/cocoa/hover_image_button.h',
117         'base/cocoa/hover_image_button.mm',
118         'base/cocoa/menu_controller.h',
119         'base/cocoa/menu_controller.mm',
120         'base/cocoa/nib_loading.h',
121         'base/cocoa/nib_loading.mm',
122         'base/cocoa/nsgraphics_context_additions.h',
123         'base/cocoa/nsgraphics_context_additions.mm',
124         'base/cocoa/tracking_area.h',
125         'base/cocoa/tracking_area.mm',
126         'base/cocoa/underlay_opengl_hosting_window.h',
127         'base/cocoa/underlay_opengl_hosting_window.mm',
128         'base/cocoa/view_description.h',
129         'base/cocoa/view_description.mm',
130         'base/cocoa/window_size_constants.h',
131         'base/cocoa/window_size_constants.mm',
132         'base/cursor/cursor.cc',
133         'base/cursor/cursor.h',
134         'base/cursor/cursor_loader.h',
135         'base/cursor/cursor_loader_null.cc',
136         'base/cursor/cursor_loader_null.h',
137         'base/cursor/cursor_loader_win.cc',
138         'base/cursor/cursor_null.cc',
139         'base/cursor/cursor_loader_win.h',
140         'base/cursor/cursor_loader_x11.cc',
141         'base/cursor/cursor_loader_x11.h',
142         'base/cursor/cursor_win.cc',
143         'base/cursor/cursor_x11.cc',
144         'base/cursor/cursors_aura.cc',
145         'base/cursor/cursors_aura.h',
146         'base/default_theme_provider.cc',
147         'base/default_theme_provider.h',
148         'base/default_theme_provider_mac.mm',
149         'base/dragdrop/cocoa_dnd_util.h',
150         'base/dragdrop/cocoa_dnd_util.mm',
151         'base/dragdrop/drag_drop_types.h',
152         'base/dragdrop/drag_drop_types_win.cc',
153         'base/dragdrop/drag_source_win.cc',
154         'base/dragdrop/drag_source_win.h',
155         'base/dragdrop/drag_utils.cc',
156         'base/dragdrop/drag_utils.h',
157         'base/dragdrop/drag_utils_aura.cc',
158         'base/dragdrop/drag_utils_win.cc',
159         'base/dragdrop/drop_target_event.cc',
160         'base/dragdrop/drop_target_event.h',
161         'base/dragdrop/drop_target_win.cc',
162         'base/dragdrop/drop_target_win.h',
163         'base/dragdrop/gtk_dnd_util.cc',
164         'base/dragdrop/gtk_dnd_util.h',
165         'base/dragdrop/os_exchange_data.cc',
166         'base/dragdrop/os_exchange_data.h',
167         'base/dragdrop/os_exchange_data_provider_aurax11.cc',
168         'base/dragdrop/os_exchange_data_provider_aurax11.h',
169         'base/dragdrop/os_exchange_data_provider_aura.cc',
170         'base/dragdrop/os_exchange_data_provider_aura.h',
171         'base/dragdrop/os_exchange_data_provider_win.cc',
172         'base/dragdrop/os_exchange_data_provider_win.h',
173         'base/gtk/event_synthesis_gtk.cc',
174         'base/gtk/event_synthesis_gtk.h',
175         'base/gtk/focus_store_gtk.cc',
176         'base/gtk/focus_store_gtk.h',
177         'base/gtk/g_object_destructor_filo.cc',
178         'base/gtk/g_object_destructor_filo.h',
179         'base/gtk/gtk_expanded_container.cc',
180         'base/gtk/gtk_expanded_container.h',
181         'base/gtk/gtk_floating_container.cc',
182         'base/gtk/gtk_floating_container.h',
183         'base/gtk/gtk_hig_constants.h',
184         'base/gtk/gtk_im_context_util.cc',
185         'base/gtk/gtk_im_context_util.h',
186         'base/gtk/gtk_screen_util.cc',
187         'base/gtk/gtk_screen_util.h',
188         'base/gtk/gtk_signal.h',
189         'base/gtk/gtk_signal_registrar.cc',
190         'base/gtk/gtk_signal_registrar.h',
191         'base/gtk/gtk_windowing.cc',
192         'base/gtk/gtk_windowing.h',
193         'base/gtk/owned_widget_gtk.cc',
194         'base/gtk/owned_widget_gtk.h',
195         'base/gtk/scoped_region.cc',
196         'base/gtk/scoped_region.h',
197         'base/hit_test.h',
198         'base/l10n/l10n_font_util.cc',
199         'base/l10n/l10n_font_util.h',
200         'base/l10n/l10n_util.cc',
201         'base/l10n/l10n_util.h',
202         'base/l10n/l10n_util_android.h',
203         'base/l10n/l10n_util_android.cc',
204         'base/l10n/l10n_util_collator.h',
205         'base/l10n/l10n_util_mac.h',
206         'base/l10n/l10n_util_mac.mm',
207         'base/l10n/l10n_util_plurals.cc',
208         'base/l10n/l10n_util_plurals.h',
209         'base/l10n/l10n_util_posix.cc',
210         'base/l10n/l10n_util_win.cc',
211         'base/l10n/l10n_util_win.h',
212         'base/l10n/time_format.cc',
213         'base/l10n/time_format.h',
214         'base/layout.cc',
215         'base/layout.h',
216         'base/layout_mac.mm',
217         'base/models/button_menu_item_model.cc',
218         'base/models/button_menu_item_model.h',
219         'base/models/combobox_model.cc',
220         'base/models/combobox_model.h',
221         'base/models/combobox_model_observer.h',
222         'base/models/dialog_model.cc',
223         'base/models/dialog_model.h',
224         'base/models/list_model.h',
225         'base/models/list_model_observer.h',
226         'base/models/list_selection_model.cc',
227         'base/models/list_selection_model.h',
228         'base/models/menu_model.cc',
229         'base/models/menu_model.h',
230         'base/models/menu_model_delegate.h',
231         'base/models/menu_separator_types.h',
232         'base/models/simple_menu_model.cc',
233         'base/models/simple_menu_model.h',
234         'base/models/table_model.cc',
235         'base/models/table_model.h',
236         'base/models/table_model_observer.h',
237         'base/models/tree_model.cc',
238         'base/models/tree_model.h',
239         'base/models/tree_node_iterator.h',
240         'base/models/tree_node_model.h',
241         'base/resource/data_pack.cc',
242         'base/resource/data_pack.h',
243         'base/resource/resource_bundle.cc',
244         'base/resource/resource_bundle.h',
245         'base/resource/resource_bundle_android.cc',
246         'base/resource/resource_bundle_auralinux.cc',
247         'base/resource/resource_bundle_gtk.cc',
248         'base/resource/resource_bundle_ios.mm',
249         'base/resource/resource_bundle_mac.mm',
250         'base/resource/resource_bundle_win.cc',
251         'base/resource/resource_bundle_win.h',
252         'base/resource/resource_data_dll_win.cc',
253         'base/resource/resource_data_dll_win.h',
254         'base/resource/resource_handle.h',
255         'base/text/bytes_formatting.cc',
256         'base/text/bytes_formatting.h',
257         'base/theme_provider.cc',
258         'base/theme_provider.h',
259         'base/touch/touch_device.cc',
260         'base/touch/touch_device.h',
261         'base/touch/touch_device_android.cc',
262         'base/touch/touch_device_aurax11.cc',
263         'base/touch/touch_device_ozone.cc',
264         'base/touch/touch_device_win.cc',
265         'base/touch/touch_editing_controller.cc',
266         'base/touch/touch_editing_controller.h',
267         'base/touch/touch_enabled.cc',
268         'base/touch/touch_enabled.h',
269         'base/ui_base_exports.cc',
270         'base/ui_base_paths.cc',
271         'base/ui_base_paths.h',
272         'base/ui_base_switches.cc',
273         'base/ui_base_switches.h',
274         'base/ui_base_switches_util.cc',
275         'base/ui_base_switches_util.h',
276         'base/ui_base_types.cc',
277         'base/ui_base_types.h',
278         'base/ui_export.h',
279         'base/view_prop.cc',
280         'base/view_prop.h',
281         'base/win/accessibility_ids_win.h',
282         'base/win/accessibility_misc_utils.cc',
283         'base/win/accessibility_misc_utils.h',
284         'base/win/atl_module.h',
285         'base/win/dpi_setup.cc',
286         'base/win/dpi_setup.h',
287         'base/win/extra_sdk_defines.h',
288         'base/win/foreground_helper.cc',
289         'base/win/foreground_helper.h',
290         'base/win/hidden_window.cc',
291         'base/win/hidden_window.h',
292         'base/win/hwnd_subclass.cc',
293         'base/win/hwnd_subclass.h',
294         'base/win/message_box_win.cc',
295         'base/win/message_box_win.h',
296         'base/win/mouse_wheel_util.cc',
297         'base/win/mouse_wheel_util.h',
298         'base/win/scoped_ole_initializer.cc',
299         'base/win/scoped_ole_initializer.h',
300         'base/win/shell.cc',
301         'base/win/shell.h',
302         'base/win/touch_input.cc',
303         'base/win/touch_input.h',
304         'base/window_open_disposition.cc',
305         'base/window_open_disposition.h',
306         'base/work_area_watcher_observer.h',
307         'base/x/active_window_watcher_x.cc',
308         'base/x/active_window_watcher_x.h',
309         'base/x/active_window_watcher_x_observer.h',
310         'base/x/root_window_property_watcher_x.cc',
311         'base/x/root_window_property_watcher_x.h',
312         'base/x/selection_owner.cc',
313         'base/x/selection_owner.h',
314         'base/x/selection_requestor.cc',
315         'base/x/selection_requestor.h',
316         'base/x/selection_utils.cc',
317         'base/x/selection_utils.h',
318         'base/x/work_area_watcher_x.cc',
319         'base/x/work_area_watcher_x.h',
320         'base/x/x11_util.cc',
321         'base/x/x11_util.h',
322         'base/x/x11_util_internal.h',
323         'webui/jstemplate_builder.cc',
324         'webui/jstemplate_builder.h',
325         'webui/web_ui_util.cc',
326         'webui/web_ui_util.h',
327       ],
328       'target_conditions': [
329         ['OS == "ios"', {
330           'sources/': [
331             ['include', '^base/l10n/l10n_util_mac\\.mm$'],
332           ],
333         }],
334       ],
335       'conditions': [
336         ['OS!="ios"', {
337           'includes': [
338             'base/ime/ime.gypi',
339           ],
340         }, {  # OS=="ios"
341           # iOS only uses a subset of UI.
342           'sources/': [
343             ['exclude', '\\.(cc|mm)$'],
344             ['include', '_ios\\.(cc|mm)$'],
345             ['include', '(^|/)ios/'],
346             ['include', '^base/l10n/'],
347             ['include', '^base/layout'],
348             ['include', '^base/resource/'],
349             ['include', '^base/ui_base_'],
350           ],
351           'link_settings': {
352             'libraries': [
353               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
354             ],
355           },
356         }],
357         ['use_aura==1', {
358           'sources/': [
359             ['exclude', 'base/work_area_watcher_observer.h'],
360             ['exclude', 'base/x/active_window_watcher_x.cc'],
361             ['exclude', 'base/x/active_window_watcher_x.h'],
362             ['exclude', 'base/x/active_window_watcher_x_observer.h'],
363             ['exclude', 'base/x/root_window_property_watcher_x.cc'],
364             ['exclude', 'base/x/root_window_property_watcher_x.h'],
365             ['exclude', 'base/x/work_area_watcher_x.cc'],
366             ['exclude', 'base/x/work_area_watcher_x.h'],
367            ],
368         }, {  # use_aura!=1
369           'sources!': [
370             'base/cursor/cursor.cc',
371             'base/cursor/cursor.h',
372             'base/cursor/cursor_loader_x11.cc',
373             'base/cursor/cursor_loader_x11.h',
374             'base/cursor/cursor_win.cc',
375             'base/cursor/cursor_x11.cc',
376             'base/x/selection_owner.cc',
377             'base/x/selection_owner.h',
378             'base/x/selection_requestor.cc',
379             'base/x/selection_requestor.h',
380             'base/x/selection_utils.cc',
381             'base/x/selection_utils.h',
382           ]
383         }],
384         ['use_aura==0 or OS!="linux"', {
385           'sources!': [
386             'base/resource/resource_bundle_auralinux.cc',
387           ],
388         }],
389         ['use_aura==1 and OS=="win"', {
390           'sources/': [
391             ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
392           ],
393         }],
394         ['use_glib == 1', {
395           'dependencies': [
396             # font_gtk.cc uses fontconfig.
397             '../build/linux/system.gyp:fontconfig',
398             '../build/linux/system.gyp:glib',
399           ],
400           'conditions': [
401             ['toolkit_views==0', {
402               # Note: because of gyp predence rules this has to be defined as
403               # 'sources/' rather than 'sources!'.
404               'sources/': [
405                 ['exclude', '^base/dragdrop/drag_utils.cc'],
406                 ['exclude', '^base/dragdrop/drag_utils.h'],
407                 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
408                 ['exclude', '^base/dragdrop/os_exchange_data.h'],
409               ],
410             }, {
411               # Note: because of gyp predence rules this has to be defined as
412               # 'sources/' rather than 'sources!'.
413               'sources/': [
414                 ['include', '^base/dragdrop/os_exchange_data.cc'],
415               ],
416             }],
417             ['use_pango==1', {
418               'dependencies': [
419                 '../build/linux/system.gyp:pangocairo',
420               ],
421             }],
422           ],
423         }],
424         ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
425           'sources!': [
426             'base/clipboard/clipboard_aurax11.cc',
427             'base/dragdrop/os_exchange_data_provider_aurax11.cc',
428             'base/touch/touch_device.cc',
429           ],
430         }, {
431           'sources!': [
432             'base/clipboard/clipboard_aura.cc',
433             'base/dragdrop/os_exchange_data_provider_aura.cc',
434             'base/dragdrop/os_exchange_data_provider_aura.h',
435             'base/touch/touch_device_aurax11.cc',
436           ],
437         }],
438         ['OS=="win"', {
439           'sources!': [
440             'base/touch/touch_device.cc',
441           ],
442           'include_dirs': [
443             '../',
444             '../third_party/wtl/include',
445           ],
446           # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
447           # C4324 is structure was padded due to __declspec(align()), which is
448           # uninteresting.
449           'msvs_disabled_warnings': [ 4267, 4324 ],
450           'msvs_settings': {
451             'VCLinkerTool': {
452               'DelayLoadDLLs': [
453                 'd2d1.dll',
454                 'd3d10_1.dll',
455                 'dwmapi.dll',
456               ],
457               'AdditionalDependencies': [
458                 'd2d1.lib',
459                 'd3d10_1.lib',
460                 'dwmapi.lib',
461               ],
462             },
463           },
464           'link_settings': {
465             'libraries': [
466               '-limm32.lib',
467               '-ld2d1.lib',
468               '-ldwmapi.lib',
469               '-loleacc.lib',
470             ],
471           },
472         },{  # OS!="win"
473           'conditions': [
474             ['use_aura==0', {
475               'sources!': [
476                 'base/view_prop.cc',
477                 'base/view_prop.h',
478               ],
479             }],
480           ],
481           'sources!': [
482             'base/dragdrop/drag_drop_types.h',
483             'base/dragdrop/os_exchange_data.cc',
484           ],
485           'sources/': [
486             ['exclude', '^base/win/'],
487           ],
488         }],
489         ['OS=="mac"', {
490           'sources!': [
491             'base/dragdrop/drag_utils.cc',
492             'base/dragdrop/drag_utils.h',
493           ],
494           'link_settings': {
495             'libraries': [
496               '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
497               '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
498               '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
499             ],
500           },
501         }],
502         ['use_x11==1', {
503           'all_dependent_settings': {
504             'ldflags': [
505               '-L<(PRODUCT_DIR)',
506             ],
507             'link_settings': {
508               'libraries': [
509                 '-lX11',
510                 '-lXcursor',
511                 '-lXrender',  # For XRender* function calls in x11_util.cc.
512               ],
513             },
514           },
515           'link_settings': {
516             'libraries': [
517               '-lX11',
518               '-lXcursor',
519               '-lXrender',  # For XRender* function calls in x11_util.cc.
520             ],
521           },
522           'dependencies': [
523             '../build/linux/system.gyp:x11',
524             '../build/linux/system.gyp:xext',
525             '../build/linux/system.gyp:xfixes',
526           ],
527         }],
528         ['use_ozone==0', {
529           'sources!': [
530             'base/cursor/cursor_null.cc',
531             'base/cursor/cursor_loader_null.cc',
532             'base/cursor/cursor_loader_null.h',
533           ],
534         }],
535         ['toolkit_views==0', {
536           'sources!': [
537             'base/dragdrop/drop_target_event.cc',
538             'base/dragdrop/drop_target_event.h',
539           ],
540         }],
541         ['OS=="android"', {
542           'sources!': [
543             'base/accessibility/accessible_text_utils.cc',
544             'base/accessibility/accessible_view_state.cc',
545             'base/default_theme_provider.cc',
546             'base/dragdrop/drag_utils.cc',
547             'base/dragdrop/drag_utils.h',
548             'base/l10n/l10n_font_util.cc',
549             'base/models/button_menu_item_model.cc',
550             'base/models/dialog_model.cc',
551             'base/theme_provider.cc',
552             'base/touch/touch_device.cc',
553             'base/touch/touch_editing_controller.cc',
554             'base/ui_base_types.cc',
555           ],
556           'dependencies': [
557             'ui_jni_headers',
558           ],
559           'include_dirs': [
560             '<(SHARED_INTERMEDIATE_DIR)/ui',
561           ],
562           'link_settings': {
563             'libraries': [
564               '-ljnigraphics',
565             ],
566           },
567         }],
568         ['OS=="android" and android_webview_build==0', {
569           'dependencies': [
570             'ui_java',
571           ],
572         }],
573         ['OS=="linux"', {
574           'libraries': [
575             '-ldl',
576           ],
577         }],
578         ['use_system_icu==1', {
579           # When using the system icu, the icu targets generate shim headers
580           # which are included by public headers in the ui target, so we need
581           # ui to be a hard dependency for all its users.
582           'hard_dependency': 1,
583         }],
584       ],
585     },
586     {
587       'target_name': 'webui_test_support',
588       'type': 'none',
589       'direct_dependent_settings': {
590         'include_dirs': [
591           '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources',
592         ]
593       }
594     },
595     {
596       'target_name': 'keycode_converter',
597       'type': 'static_library',
598       'dependencies': [
599         '../base/base.gyp:base',
600       ],
601       'sources': [
602         'base/keycodes/keycode_converter.cc',
603         'base/keycodes/keycode_converter.h',
604         'base/keycodes/keycode_converter_data.h',
605       ],
606     }
607   ],
608   'conditions': [
609     ['OS=="android"' , {
610        'targets': [
611          {
612            'target_name': 'ui_jni_headers',
613            'type': 'none',
614            'direct_dependent_settings': {
615              'include_dirs': [
616                '<(SHARED_INTERMEDIATE_DIR)/ui',
617              ],
618            },
619            'sources': [
620              'android/java/src/org/chromium/ui/Clipboard.java',
621              'android/java/src/org/chromium/ui/LocalizationUtils.java',
622              'android/java/src/org/chromium/ui/SelectFileDialog.java',
623              'android/java/src/org/chromium/ui/ViewAndroid.java',
624              'android/java/src/org/chromium/ui/WindowAndroid.java',
625            ],
626            'variables': {
627              'jni_gen_package': 'ui',
628            },
629            'includes': [ '../build/jni_generator.gypi' ],
630          },
631          {
632            'target_name': 'ui_java',
633            'type': 'none',
634            'variables': {
635              'java_in_dir': '../ui/android/java',
636              'has_java_resources': 1,
637              'R_package': 'org.chromium.ui',
638              'R_package_relpath': 'org/chromium/ui',
639              'java_strings_grd': 'android_ui_strings.grd',
640            },
641            'dependencies': [
642              '../base/base.gyp:base_java',
643              'window_open_disposition_java',
644            ],
645            'includes': [ '../build/java.gypi' ],
646          },
647          {
648            'target_name': 'window_open_disposition_java',
649            'type': 'none',
650            'sources': [
651              'android/java/WindowOpenDisposition.template',
652            ],
653            'variables': {
654              'package_name': 'org/chromium/ui',
655              'template_deps': ['base/window_open_disposition_list.h'],
656            },
657            'includes': [ '../build/android/java_cpp_template.gypi' ],
658          },
659        ],
660     }],
661     ['OS=="mac"', {
662       'targets': [
663         {
664           'target_name': 'ui_cocoa_third_party_toolkits',
665           'type': '<(component)',
666           'sources': [
667             # Build Apple sample code
668             '../third_party/apple_sample_code/ImageAndTextCell.h',
669             '../third_party/apple_sample_code/ImageAndTextCell.m',
670             # Build the necessary GTM sources
671             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
672             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
673             '../third_party/GTM/AppKit/GTMIBArray.h',
674             '../third_party/GTM/AppKit/GTMIBArray.m',
675             '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
676             '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
677             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
678             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
679             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
680             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
681             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
682             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
683             '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
684             '../third_party/GTM/AppKit/GTMUILocalizer.h',
685             '../third_party/GTM/AppKit/GTMUILocalizer.m',
686             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
687             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
688             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
689             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
690             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
691             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
692             # MolokoCacao additions
693             '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
694             '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
695             # Build necessary Mozilla sources
696             '../third_party/mozilla/NSScreen+Utils.h',
697             '../third_party/mozilla/NSScreen+Utils.m',
698             '../third_party/mozilla/NSWorkspace+Utils.h',
699             '../third_party/mozilla/NSWorkspace+Utils.m',
700           ],
701           'include_dirs': [
702             '..',
703             '../third_party/apple',
704             '../third_party/GTM',
705             '../third_party/GTM/AppKit',
706             '../third_party/GTM/DebugUtils',
707             '../third_party/GTM/Foundation',
708           ],
709           'link_settings': {
710             'libraries': [
711               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
712               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
713             ],
714           },
715           'conditions': [
716             ['component=="shared_library"', {
717               # GTM is third-party code, so we don't want to add _EXPORT
718               # annotations to it, so build it without -fvisibility=hidden
719               # (else the interface class symbols will be hidden in a 64bit
720               # build). Only do this in a component build, so that the shipping
721               # chrome binary doesn't end up with unnecessarily exported
722               # symbols.
723               'xcode_settings': {
724                 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
725               },
726             }],
727           ],
728         },
729       ],
730     }],
731   ],