Fix the link error of views_examples_with_content_exe.
[chromium-blink-merge.git] / ui / views / views.gyp
blobdc64c14e8174649a4bb29a875ebc7a3977985055
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.
5   'variables': {
6     'chromium_code': 1,
7   },
9   'target_defaults': {
10     'conditions': [
11       ['OS=="win"', {'sources/': [
12         ['include', '_(win)\\.cc$'],
13         ['include', '/win/'],
14         ['include', '/win_[^/]*\\.cc$'],
15       ]}],
16       ['use_aura==1', {
17         'sources/': [ ['exclude', '_win\\.(h|cc)$'],
18                       ['exclude', '_x\\.(h|cc)$'] ],
19         'dependencies': [ '../aura/aura.gyp:aura', ],
20       }],
21     ],
22   },
23   'targets': [
24     {
25       'target_name': 'views',
26       'type': '<(component)',
27       'dependencies': [
28         '../../base/base.gyp:base',
29         '../../base/base.gyp:base_i18n',
30         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
31         '../../build/temp_gyp/googleurl.gyp:googleurl',
32         '../../content/content.gyp:content',
33         '../../skia/skia.gyp:skia',
34         '../../third_party/icu/icu.gyp:icui18n',
35         '../../third_party/icu/icu.gyp:icuuc',
36         '../base/strings/ui_strings.gyp:ui_strings',
37         '../compositor/compositor.gyp:compositor',
38         '../web_dialogs/web_dialogs.gyp:web_dialogs',
39         '../ui.gyp:ui',
40         '../ui.gyp:ui_resources',
41       ],
42       'defines': [
43         'VIEWS_IMPLEMENTATION',
44       ],
45       'sources': [
46         # All .cc, .h under views, except unittests
47         'accessibility/native_view_accessibility_win.cc',
48         'accessibility/native_view_accessibility_win.h',
49         'accessible_pane_view.cc',
50         'accessible_pane_view.h',
51         'animation/bounds_animator.cc',
52         'animation/bounds_animator.h',
53         'animation/scroll_animator.cc',
54         'animation/scroll_animator.h',
55         'background.cc',
56         'background.h',
57         'border.cc',
58         'border.h',
59         'bubble/bubble_border.cc',
60         'bubble/bubble_border.h',
61         'bubble/bubble_delegate.cc',
62         'bubble/bubble_delegate.h',
63         'bubble/bubble_frame_view.cc',
64         'bubble/bubble_frame_view.h',
65         'bubble/bubble_border_2.cc',
66         'bubble/bubble_border_2.h',
67         'button_drag_utils.cc',
68         'button_drag_utils.h',
69         'color_chooser/color_chooser_listener.h',
70         'color_chooser/color_chooser_view.cc',
71         'color_chooser/color_chooser_view.h',
72         'color_constants.cc',
73         'color_constants.h',
74         'context_menu_controller.h',
75         'controls/button/button.cc',
76         'controls/button/button.h',
77         'controls/button/button_dropdown.cc',
78         'controls/button/button_dropdown.h',
79         'controls/button/checkbox.cc',
80         'controls/button/checkbox.h',
81         'controls/button/custom_button.cc',
82         'controls/button/custom_button.h',
83         'controls/button/image_button.cc',
84         'controls/button/image_button.h',
85         'controls/button/menu_button.cc',
86         'controls/button/menu_button.h',
87         'controls/button/menu_button_listener.h',
88         'controls/button/radio_button.cc',
89         'controls/button/radio_button.h',
90         'controls/button/text_button.cc',
91         'controls/button/text_button.h',
92         'controls/combobox/combobox.cc',
93         'controls/combobox/combobox.h',
94         'controls/combobox/combobox_listener.h',
95         'controls/combobox/native_combobox_views.cc',
96         'controls/combobox/native_combobox_views.h',
97         'controls/combobox/native_combobox_win.cc',
98         'controls/combobox/native_combobox_win.h',
99         'controls/combobox/native_combobox_wrapper.h',
100         'controls/focusable_border.cc',
101         'controls/focusable_border.h',
102         'controls/glow_hover_controller.cc',
103         'controls/glow_hover_controller.h',
104         'controls/image_view.cc',
105         'controls/image_view.h',
106         'controls/label.cc',
107         'controls/label.h',
108         'controls/link.cc',
109         'controls/link.h',
110         'controls/link_listener.h',
111         'controls/menu/display_change_listener_aura.cc',
112         'controls/menu/menu.cc',
113         'controls/menu/menu.h',
114         'controls/menu/menu_2.cc',
115         'controls/menu/menu_2.h',
116         'controls/menu/menu_config.cc',
117         'controls/menu/menu_config.h',
118         'controls/menu/menu_config_views.cc',
119         'controls/menu/menu_config_win.cc',
120         'controls/menu/menu_controller.cc',
121         'controls/menu/menu_controller.h',
122         'controls/menu/menu_controller_delegate.h',
123         'controls/menu/menu_delegate.cc',
124         'controls/menu/menu_delegate.h',
125         'controls/menu/menu_host.cc',
126         'controls/menu/menu_host.h',
127         'controls/menu/menu_host_root_view.cc',
128         'controls/menu/menu_host_root_view.h',
129         'controls/menu/menu_item_view.cc',
130         'controls/menu/menu_item_view.h',
131         'controls/menu/menu_item_view_views.cc',
132         'controls/menu/menu_item_view_win.cc',
133         'controls/menu/menu_listener.cc',
134         'controls/menu/menu_listener.h',
135         'controls/menu/menu_model_adapter.cc',
136         'controls/menu/menu_model_adapter.h',
137         'controls/menu/menu_runner.cc',
138         'controls/menu/menu_runner.h',
139         'controls/menu/menu_scroll_view_container.cc',
140         'controls/menu/menu_scroll_view_container.h',
141         'controls/menu/menu_separator.h',
142         'controls/menu/menu_separator_views.cc',
143         'controls/menu/menu_separator_win.cc',
144         'controls/menu/menu_win.cc',
145         'controls/menu/menu_win.h',
146         'controls/menu/menu_wrapper.h',
147         'controls/menu/native_menu_host.h',
148         'controls/menu/native_menu_host_delegate.h',
149         'controls/menu/native_menu_win.cc',
150         'controls/menu/native_menu_win.h',
151         'controls/menu/menu_image_util.cc',
152         'controls/menu/menu_image_util.h',
153         'controls/menu/submenu_view.cc',
154         'controls/menu/submenu_view.h',
155         'controls/message_box_view.cc',
156         'controls/message_box_view.h',
157         'controls/native_control.cc',
158         'controls/native_control.h',
159         'controls/native_control_win.cc',
160         'controls/native_control_win.h',
161         'controls/native/native_view_host.cc',
162         'controls/native/native_view_host.h',
163         'controls/native/native_view_host_aura.cc',
164         'controls/native/native_view_host_aura.h',
165         'controls/native/native_view_host_win.cc',
166         'controls/native/native_view_host_win.h',
167         'controls/progress_bar.cc',
168         'controls/progress_bar.h',
169         'controls/resize_area.cc',
170         'controls/resize_area.h',
171         'controls/resize_area_delegate.h',
172         'controls/scroll_view.cc',
173         'controls/scroll_view.h',
174         'controls/scrollbar/base_scroll_bar.cc',
175         'controls/scrollbar/base_scroll_bar.h',
176         'controls/scrollbar/base_scroll_bar_button.cc',
177         'controls/scrollbar/base_scroll_bar_button.h',
178         'controls/scrollbar/base_scroll_bar_thumb.cc',
179         'controls/scrollbar/base_scroll_bar_thumb.h',
180         'controls/scrollbar/bitmap_scroll_bar.cc',
181         'controls/scrollbar/bitmap_scroll_bar.h',
182         'controls/scrollbar/native_scroll_bar_views.cc',
183         'controls/scrollbar/native_scroll_bar_views.h',
184         'controls/scrollbar/native_scroll_bar_win.cc',
185         'controls/scrollbar/native_scroll_bar_win.h',
186         'controls/scrollbar/native_scroll_bar_wrapper.h',
187         'controls/scrollbar/native_scroll_bar.cc',
188         'controls/scrollbar/native_scroll_bar.h',
189         'controls/scrollbar/scroll_bar.cc',
190         'controls/scrollbar/scroll_bar.h',
191         'controls/separator.cc',
192         'controls/separator.h',
193         'controls/single_split_view.cc',
194         'controls/single_split_view.h',
195         'controls/single_split_view_listener.h',
196         'controls/slider.cc',
197         'controls/slider.h',
198         'controls/tabbed_pane/native_tabbed_pane_views.cc',
199         'controls/tabbed_pane/native_tabbed_pane_views.h',
200         'controls/tabbed_pane/native_tabbed_pane_win.cc',
201         'controls/tabbed_pane/native_tabbed_pane_win.h',
202         'controls/tabbed_pane/native_tabbed_pane_wrapper.h',
203         'controls/tabbed_pane/tabbed_pane.cc',
204         'controls/tabbed_pane/tabbed_pane.h',
205         'controls/tabbed_pane/tabbed_pane_listener.h',
206         'controls/table/group_table_model.h',
207         'controls/table/group_table_view.h',
208         'controls/table/group_table_view_views.cc',
209         'controls/table/group_table_view_views.h',
210         'controls/table/group_table_view_win.cc',
211         'controls/table/group_table_view_win.h',
212         'controls/table/table_view.h',
213         'controls/table/table_view_observer.h',
214         'controls/table/table_view_views.cc',
215         'controls/table/table_view_views.h',
216         'controls/table/table_view_win.cc',
217         'controls/table/table_view_win.h',
218         'controls/textfield/native_textfield_views.cc',
219         'controls/textfield/native_textfield_views.h',
220         'controls/textfield/native_textfield_win.cc',
221         'controls/textfield/native_textfield_win.h',
222         'controls/textfield/native_textfield_wrapper.h',
223         'controls/textfield/textfield.cc',
224         'controls/textfield/textfield.h',
225         'controls/textfield/textfield_controller.cc',
226         'controls/textfield/textfield_controller.h',
227         'controls/textfield/textfield_views_model.cc',
228         'controls/textfield/textfield_views_model.h',
229         'controls/throbber.cc',
230         'controls/throbber.h',
231         'controls/tree/tree_view.h',
232         'controls/tree/tree_view_controller.cc',
233         'controls/tree/tree_view_controller.h',
234         'controls/tree/tree_view_views.cc',
235         'controls/tree/tree_view_views.h',
236         'controls/tree/tree_view_win.cc',
237         'controls/tree/tree_view_win.h',
238         'controls/webview/web_dialog_view.cc',
239         'controls/webview/web_dialog_view.h',
240         'controls/webview/webview.cc',
241         'controls/webview/webview.h',
242         'debug_utils.cc',
243         'debug_utils.h',
244         'drag_controller.h',
245         'drag_utils.cc',
246         'drag_utils.h',
247         'focus/accelerator_handler.h',
248         'focus/accelerator_handler_aura.cc',
249         'focus/accelerator_handler_win.cc',
250         'focus/external_focus_tracker.cc',
251         'focus/external_focus_tracker.h',
252         'focus/focus_manager.cc',
253         'focus/focus_manager.h',
254         'focus/focus_manager_delegate.h',
255         'focus/focus_manager_factory.cc',
256         'focus/focus_manager_factory.h',
257         'focus/focus_search.cc',
258         'focus/focus_search.h',
259         'focus/view_storage.cc',
260         'focus/view_storage.h',
261         'focus/widget_focus_manager.cc',
262         'focus/widget_focus_manager.h',
263         'ime/input_method_base.cc',
264         'ime/input_method_base.h',
265         'ime/input_method_bridge.cc',
266         'ime/input_method_bridge.h',
267         'ime/input_method_delegate.h',
268         'ime/input_method.h',
269         'ime/input_method_win.cc',
270         'ime/input_method_win.h',
271         'ime/mock_input_method.cc',
272         'ime/mock_input_method.h',
273         'layout/box_layout.cc',
274         'layout/box_layout.h',
275         'layout/fill_layout.cc',
276         'layout/fill_layout.h',
277         'layout/grid_layout.cc',
278         'layout/grid_layout.h',
279         'layout/layout_constants.h',
280         'layout/layout_manager.cc',
281         'layout/layout_manager.h',
282         'metrics.cc',
283         'metrics.h',
284         'metrics_aura.cc',
285         'metrics_win.cc',
286         'mouse_watcher.cc',
287         'mouse_watcher.h',
288         'mouse_watcher_view_host.cc',
289         'mouse_watcher_view_host.h',
290         'native_theme_delegate.h',
291         'native_theme_painter.cc',
292         'native_theme_painter.h',
293         'painter.cc',
294         'painter.h',
295         'repeat_controller.cc',
296         'repeat_controller.h',
297         'touchui/touch_selection_controller.cc',
298         'touchui/touch_selection_controller.h',
299         'view.cc',
300         'view.h',
301         'view_constants.cc',
302         'view_constants.h',
303         'view_aura.cc',
304         'view_model.cc',
305         'view_model.h',
306         'view_model_utils.cc',
307         'view_model_utils.h',
308         'view_text_utils.cc',
309         'view_text_utils.h',
310         'view_win.cc',
311         'views_delegate.h',
312         'widget/aero_tooltip_manager.cc',
313         'widget/aero_tooltip_manager.h',
314         'widget/child_window_message_processor.cc',
315         'widget/child_window_message_processor.h',
316         'widget/default_theme_provider.cc',
317         'widget/default_theme_provider.h',
318         'widget/desktop_native_widget_helper_aura.cc',
319         'widget/desktop_native_widget_helper_aura.h',
320         'widget/drop_helper.cc',
321         'widget/drop_helper.h',
322         'widget/drop_target_win.cc',
323         'widget/drop_target_win.h',
324         'widget/root_view.cc',
325         'widget/root_view.h',
326         'widget/tooltip_manager_aura.cc',
327         'widget/tooltip_manager_aura.h',
328         'widget/tooltip_manager_win.cc',
329         'widget/tooltip_manager_win.h',
330         'widget/tooltip_manager.cc',
331         'widget/tooltip_manager.h',
332         'widget/monitor_win.cc',
333         'widget/monitor_win.h',
334         'widget/native_widget.h',
335         'widget/native_widget_aura.cc',
336         'widget/native_widget_aura.h',
337         'widget/native_widget_delegate.h',
338         'widget/native_widget_helper_aura.h',
339         'widget/native_widget_private.h',
340         'widget/native_widget_win.cc',
341         'widget/native_widget_win.h',
342         'widget/widget.cc',
343         'widget/widget.h',
344         'widget/widget_delegate.cc',
345         'widget/widget_delegate.h',
346         'widget/widget_hwnd_utils.cc',
347         'widget/widget_hwnd_utils.h',
348         'widget/widget_message_filter.cc',
349         'widget/widget_message_filter.h',
350         'widget/widget_observer.h',
351         'widget/x11_desktop_handler.cc',
352         'widget/x11_desktop_handler.h',
353         'widget/x11_desktop_window_move_client.cc',
354         'widget/x11_desktop_window_move_client.h',
355         'widget/x11_window_event_filter.cc',
356         'widget/x11_window_event_filter.h',
357         'win/hwnd_message_handler.cc',
358         'win/hwnd_message_handler.h',
359         'win/hwnd_message_handler_delegate.h',
360         'window/client_view.cc',
361         'window/client_view.h',
362         'window/custom_frame_view.cc',
363         'window/custom_frame_view.h',
364         'window/dialog_client_view.cc',
365         'window/dialog_client_view.h',
366         'window/dialog_delegate.cc',
367         'window/dialog_delegate.h',
368         'window/frame_background.cc',
369         'window/frame_background.h',
370         'window/native_frame_view.cc',
371         'window/native_frame_view.h',
372         'window/non_client_view.cc',
373         'window/non_client_view.h',
374         'window/window_resources.h',
375         'window/window_shape.cc',
376         'window/window_shape.h',
377       ],
378       'include_dirs': [
379         '../../third_party/wtl/include',
380       ],
381       'conditions': [
382         ['use_aura==1', {
383           'sources/': [
384             ['exclude', '_x\\.cc$'],
385             ['exclude', '/x_[^/]*\\.cc$'],
386             ['exclude', 'controls/menu/menu_2.*'],
387           ],
388           'sources!': [
389             'controls/native_control.cc',
390             'controls/native_control.h',
391             'controls/scrollbar/bitmap_scroll_bar.cc',
392             'controls/scrollbar/bitmap_scroll_bar.h',
393             'controls/table/group_table_model.h',
394             'controls/table/group_table_view.cc',
395             'controls/table/group_table_view.h',
396             'controls/table/table_view_observer.h',
397             'widget/aero_tooltip_manager.cc',
398             'widget/aero_tooltip_manager.h',
399             'widget/child_window_message_processor.cc',
400             'widget/child_window_message_processor.h',
401           ],
402           'conditions': [
403             ['OS=="mac"', {
404               'sources/': [
405                 ['exclude', 'mouse_watcher.cc'],
406                 ['exclude', 'controls/menu/*'],
407                 ['exclude', 'controls/scrollbar/*'],
408                 ['exclude', 'focus/accelerator_handler_aura.cc'],
409                 ['exclude', 'widget/tooltip_manager_views.cc'],
410               ],
411             }],
412           ],
413         }],
414         ['use_aura==0', {
415           'sources!': [
416             'widget/tooltip_manager_views.cc',
417           ],
418         }],
419         ['use_aura==0 and OS=="win"', {
420           'sources!': [
421             'controls/menu/menu_config_views.cc',
422             'controls/menu/menu_item_view_views.cc',
423             'controls/menu/menu_separator_views.cc',
424             'controls/table/group_table_view_views.cc',
425             'controls/table/group_table_view_views.h',
426             'controls/table/table_view_views.cc',
427             'controls/table/table_view_views.h',
428             'controls/tree/tree_view_views.cc',
429             'controls/tree/tree_view_views.h',
430           ],
431         }],
432         ['OS=="win"', {
433           'dependencies': [
434             # For accessibility
435             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
436           ],
437           'include_dirs': [
438             '../../third_party/wtl/include',
439           ],
440         }],
441         ['use_x11==0', {
442           'sources!': [
443             'events/event_x.cc',
444           ],
445         }],
446         ['use_aura==0 or OS!="win"', {
447           'sources!': [
448             'widget/widget_message_filter.cc',
449             'widget/widget_message_filter.h',
450           ],
451         }],
452         ['use_aura==1 or OS!="win"', {
453           'sources!': [
454             'win/hwnd_message_handler.cc',
455             'win/hwnd_message_handler.h',
456             'win/hwnd_message_handler_delegate.h',
457           ],
458         }],
459         ['OS!="win"', {
460           'sources!': [
461             'win/hwnd_message_handler.cc',
462             'win/hwnd_message_handler.h',
463             'win/hwnd_message_handler_delegate.h',
464             'widget/widget_hwnd_utils.cc',
465             'widget/widget_hwnd_utils.h',
466           ],
467         }],
468       ],
469     }, # target_name: views
470     {
471       'target_name': 'test_support_views',
472       'type': 'static_library',
473       'dependencies': [
474         '../../base/base.gyp:base',
475         '../../content/content.gyp:test_support_content',
476         '../../ipc/ipc.gyp:test_support_ipc',
477         '../../skia/skia.gyp:skia',
478         '../../testing/gtest.gyp:gtest',
479         '../ui.gyp:ui',
480         'views',
481       ],
482       'include_dirs': [
483         '..',
484       ],
485       'sources': [
486         'test/test_tooltip_client.h',
487         'test/test_views_delegate.cc',
488         'test/test_views_delegate.h',
489         'test/views_test_base.cc',
490         'test/views_test_base.h',
491         'test/webview_test_helper.cc',
492         'test/webview_test_helper.h',
493       ],
494     },  # target_name: test_support_views
495     {
496       'target_name': 'views_unittests',
497       'type': 'executable',
498       'dependencies': [
499         '../../base/base.gyp:base',
500         '../../base/base.gyp:test_support_base',
501         # TODO(jcivelli): ideally the resource needed by views would be
502         #                 factored out. (for some reason it pulls in a bunch
503         #                 unrelated things like v8, sqlite nss...).
504         '../../chrome/chrome_resources.gyp:packed_resources',
505         '../../build/temp_gyp/googleurl.gyp:googleurl',
506         '../../skia/skia.gyp:skia',
507         '../../testing/gmock.gyp:gmock',
508         '../../testing/gtest.gyp:gtest',
509         '../../third_party/icu/icu.gyp:icui18n',
510         '../../third_party/icu/icu.gyp:icuuc',
511         '../base/strings/ui_strings.gyp:ui_strings',
512         '../compositor/compositor.gyp:compositor',
513         '../compositor/compositor.gyp:compositor_test_support',
514         '../ui.gyp:ui',
515         '../ui.gyp:ui_resources',
516         '../ui.gyp:ui_test_support',
517         'test_support_views',
518         'views',
519       ],
520       'include_dirs': [
521         '..',
522       ],
523       'sources': [
524         'accessible_pane_view_unittest.cc',
525         'animation/bounds_animator_unittest.cc',
526         'bubble/bubble_delegate_unittest.cc',
527         'bubble/bubble_frame_view_unittest.cc',
528         'controls/button/image_button_unittest.cc',
529         'controls/combobox/native_combobox_views_unittest.cc',
530         'controls/label_unittest.cc',
531         'controls/menu/menu_model_adapter_unittest.cc',
532         'controls/progress_bar_unittest.cc',
533         'controls/scrollbar/scrollbar_unittest.cc',
534         'controls/single_split_view_unittest.cc',
535         'controls/slider_unittest.cc',
536         'controls/tabbed_pane/tabbed_pane_unittest.cc',
537         'controls/table/table_view_unittest.cc',
538         'controls/textfield/native_textfield_views_unittest.cc',
539         'controls/textfield/textfield_views_model_unittest.cc',
540         'controls/tree/tree_view_views_unittest.cc',
541         'focus/focus_manager_test.h',
542         'focus/focus_manager_test.cc',
543         'focus/focus_manager_unittest.cc',
544         'focus/focus_manager_unittest_win.cc',
545         'focus/focus_traversal_unittest.cc',
546         'layout/box_layout_unittest.cc',
547         'layout/grid_layout_unittest.cc',
548         'view_model_unittest.cc',
549         'view_model_utils_unittest.cc',
550         'view_unittest.cc',
551         'widget/native_widget_aura_unittest.cc',
552         'widget/native_widget_test_utils.h',
553         'widget/native_widget_test_utils_aura.cc',
554         'widget/native_widget_test_utils_win.cc',
555         'widget/native_widget_unittest.cc',
556         'widget/native_widget_win_unittest.cc',
557         'widget/widget_unittest.cc',
558         'run_all_unittests.cc',
559       ],
560       'conditions': [
561         ['OS=="win"', {
562           'link_settings': {
563             'libraries': [
564               '-limm32.lib',
565               '-loleacc.lib',
566             ]
567           },
568           'include_dirs': [
569             '../third_party/wtl/include',
570           ],
571         }],
572         ['OS=="win" and win_use_allocator_shim==1', {
573           'dependencies': [
574             '../../base/allocator/allocator.gyp:allocator',
575           ],
576         }],
577         ['use_aura==0 and OS=="win"', {
578           'sources/': [
579             ['exclude', 'controls/combobox/native_combobox_views_unittest.cc'],
580             ['exclude', 'controls/tree/tree_view_views_unittest.cc'],
581           ],
582         }],
583         [ 'use_aura==1', {
584           'dependencies': [
585             '../aura/aura.gyp:test_support_aura',
586           ],
587           'sources/': [
588             ['exclude', 'controls/table/table_view_unittest.cc'],
589             ['exclude', 'widget/native_widget_win_unittest.cc'],
590           ],
591         }, {
592           'sources/': [
593             ['exclude', '../aura/test/test_desktop_delegate.cc'],
594             ['exclude', '../aura/test/test_desktop_delegate.h'],
595             ['exclude', 'widget/native_widget_aura_unittest.cc'],
596           ],
597         }],
598       ],
599     },  # target_name: views_unittests
600     {
601       'target_name': 'views_examples_with_content_lib',
602       'type': '<(component)',
603       'dependencies': [
604         '../../base/base.gyp:base',
605         '../../base/base.gyp:base_i18n',
606         '../../build/temp_gyp/googleurl.gyp:googleurl',
607         '../../chrome/chrome_resources.gyp:packed_resources',
608         '../../content/content.gyp:content',
609         '../../skia/skia.gyp:skia',
610         '../../third_party/icu/icu.gyp:icui18n',
611         '../../third_party/icu/icu.gyp:icuuc',
612         '../ui.gyp:ui',
613         '../ui.gyp:ui_resources',
614         'views',
615       ],
616       'include_dirs': [
617         '..',
618       ],
619       'defines': [
620         'VIEWS_EXAMPLES_IMPLEMENTATION',
621       ],
622       'sources': [
623         'examples/bubble_example.cc',
624         'examples/bubble_example.h',
625         'examples/button_example.cc',
626         'examples/button_example.h',
627         'examples/combobox_example.cc',
628         'examples/combobox_example.h',
629         'examples/double_split_view_example.cc',
630         'examples/double_split_view_example.h',
631         'examples/example_base.cc',
632         'examples/example_base.h',
633         'examples/example_combobox_model.cc',
634         'examples/example_combobox_model.h',
635         'examples/examples_window_with_content.cc',
636         'examples/examples_window_with_content.h',
637         'examples/link_example.cc',
638         'examples/link_example.h',
639         'examples/message_box_example.cc',
640         'examples/message_box_example.h',
641         'examples/menu_example.cc',
642         'examples/menu_example.h',
643         'examples/native_theme_button_example.cc',
644         'examples/native_theme_button_example.h',
645         'examples/native_theme_checkbox_example.cc',
646         'examples/native_theme_checkbox_example.h',
647         'examples/progress_bar_example.cc',
648         'examples/progress_bar_example.h',
649         'examples/radio_button_example.cc',
650         'examples/radio_button_example.h',
651         'examples/scroll_view_example.cc',
652         'examples/scroll_view_example.h',
653         'examples/single_split_view_example.cc',
654         'examples/single_split_view_example.h',
655         'examples/slider_example.cc',
656         'examples/slider_example.h',
657         'examples/tabbed_pane_example.cc',
658         'examples/tabbed_pane_example.h',
659         'examples/table_example.cc',
660         'examples/table_example.h',
661         'examples/text_example.cc',
662         'examples/text_example.h',
663         'examples/textfield_example.cc',
664         'examples/textfield_example.h',
665         'examples/throbber_example.cc',
666         'examples/throbber_example.h',
667         'examples/tree_view_example.cc',
668         'examples/tree_view_example.h',
669         'examples/views_examples_export.h',
670         'examples/webview_example.cc',
671         'examples/webview_example.h',
672         'examples/widget_example.cc',
673         'examples/widget_example.h',
674       ],
675       'conditions': [
676         ['OS=="win"', {
677           'include_dirs': [
678             '../third_party/wtl/include',
679           ],
680         }],
681       ],
682     },  # target_name: views_examples_with_content_lib
683     {
684       'target_name': 'views_examples_with_content_exe',
685       'type': 'executable',
686       'dependencies': [
687         '../../base/base.gyp:base',
688         '../../base/base.gyp:base_i18n',
689         '../../chrome/chrome_resources.gyp:packed_resources',
690         '../../content/content.gyp:content_shell_lib',
691         '../../content/content.gyp:content',
692         '../../content/content.gyp:test_support_content',
693         '../../skia/skia.gyp:skia',
694         '../../third_party/icu/icu.gyp:icui18n',
695         '../../third_party/icu/icu.gyp:icuuc',
696         '../ui.gyp:ui',
697         '../ui.gyp:ui_resources',
698         'views',
699         'views_examples_with_content_lib',
700       ],
701       'include_dirs': [
702         '../..',
703       ],
704       'sources': [
705         '../../content/app/startup_helper_win.cc',
706         'examples/content_client/examples_browser_main_parts.cc',
707         'examples/content_client/examples_browser_main_parts.h',
708         'examples/content_client/examples_content_browser_client.cc',
709         'examples/content_client/examples_content_browser_client.h',
710         'examples/content_client/examples_main_delegate.cc',
711         'examples/content_client/examples_main_delegate.h',
712         'examples/examples_main.cc',
713         'test/test_views_delegate.cc',
714         'test/test_views_delegate.h',
715       ],
716       'conditions': [
717         ['OS=="win"', {
718           'link_settings': {
719             'libraries': [
720               '-limm32.lib',
721               '-loleacc.lib',
722             ]
723           },
724           'msvs_settings': {
725             'VCManifestTool': {
726               'AdditionalManifestFiles': 'examples\\views_examples.exe.manifest',
727             },
728             'VCLinkerTool': {
729               'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
730             },
731           },
732           'dependencies': [
733             '../../sandbox/sandbox.gyp:sandbox',
734           ],
735         }],
736         ['use_aura==1', {
737           'dependencies': [
738             '../compositor/compositor.gyp:compositor',
739             '../compositor/compositor.gyp:compositor_test_support',
740           ],
741         }],
742         ['OS=="win"', {
743           'sources/': [
744             # This is needed because the aura rule strips it from the default
745             # sources list.
746             ['include', '^../../content/app/startup_helper_win.cc'],
747           ],
748         }],
749       ],
750     },  # target_name: views_examples_with_content_exe
751   ],