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