Update V8 to version 4.7.57.
[chromium-blink-merge.git] / ui / views / examples / examples.gyp
blobcdf812038ad47bc851e896c13514c9657f66a6f5
1 # Copyright 2014 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   },
8   'targets': [
9     {
10       # GN version: //ui/views/examples
11       'target_name': 'views_examples_lib',
12       'type': '<(component)',
13       'dependencies': [
14         '../../../base/base.gyp:base',
15         '../../../skia/skia.gyp:skia',
16         '../../../third_party/icu/icu.gyp:icui18n',
17         '../../../third_party/icu/icu.gyp:icuuc',
18         '../../base/ui_base.gyp:ui_base',
19         '../../events/events.gyp:events',
20         '../../gfx/gfx.gyp:gfx',
21         '../../gfx/gfx.gyp:gfx_geometry',
22         '../../gfx/gfx.gyp:gfx_vector_icons',
23         '../../resources/ui_resources.gyp:ui_resources',
24         '../../resources/ui_resources.gyp:ui_test_pak',
25         '../views.gyp:views',
26       ],
27       'include_dirs': [
28         '../../..',
29       ],
30       'defines': [
31         'GFX_VECTOR_ICONS_UNSAFE',
32         'VIEWS_EXAMPLES_IMPLEMENTATION',
33       ],
34       'sources': [
35         # Note: sources list duplicated in GN build.
36         'bubble_example.cc',
37         'bubble_example.h',
38         'button_example.cc',
39         'button_example.h',
40         'checkbox_example.cc',
41         'checkbox_example.h',
42         'combobox_example.cc',
43         'combobox_example.h',
44         'double_split_view_example.cc',
45         'double_split_view_example.h',
46         'example_base.cc',
47         'example_base.h',
48         'example_combobox_model.cc',
49         'example_combobox_model.h',
50         'examples_window.cc',
51         'examples_window.h',
52         'label_example.cc',
53         'label_example.h',
54         'link_example.cc',
55         'link_example.h',
56         'menu_example.cc',
57         'menu_example.h',
58         'message_box_example.cc',
59         'message_box_example.h',
60         'multiline_example.cc',
61         'multiline_example.h',
62         'progress_bar_example.cc',
63         'progress_bar_example.h',
64         'radio_button_example.cc',
65         'radio_button_example.h',
66         'scroll_view_example.cc',
67         'scroll_view_example.h',
68         'single_split_view_example.cc',
69         'single_split_view_example.h',
70         'slider_example.cc',
71         'slider_example.h',
72         'tabbed_pane_example.cc',
73         'tabbed_pane_example.h',
74         'table_example.cc',
75         'table_example.h',
76         'text_example.cc',
77         'text_example.h',
78         'textfield_example.cc',
79         'textfield_example.h',
80         'throbber_example.cc',
81         'throbber_example.h',
82         'tree_view_example.cc',
83         'tree_view_example.h',
84         'views_examples_export.h',
85         'vector_example.cc',
86         'vector_example.h',
87         'widget_example.cc',
88         'widget_example.h',
89       ],
90       'conditions': [
91         ['OS=="win"', {
92           'include_dirs': [
93             '../../../third_party/wtl/include',
94           ],
95           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96           'msvs_disabled_warnings': [ 4267, ],
97         }],
98         ['use_aura==1', {
99           'dependencies': [
100             '../../aura/aura.gyp:aura',
101           ],
102         }],
103       ],
104     },  # target_name: views_examples_lib
105     {
106       # GN version: //ui/views/examples:views_examples_exe
107       'target_name': 'views_examples_exe',
108       'type': 'executable',
109       'dependencies': [
110         '../../../base/base.gyp:base',
111         '../../../base/base.gyp:base_i18n',
112         '../../base/ui_base.gyp:ui_base',
113         '../../compositor/compositor.gyp:compositor',
114         '../../compositor/compositor.gyp:compositor_test_support',
115         '../../gfx/gfx.gyp:gfx',
116         '../../resources/ui_resources.gyp:ui_test_pak',
117         '../views.gyp:views',
118         '../views.gyp:views_test_support',
119         'views_examples_lib',
120       ],
121       'sources': [
122         # Note: sources list duplicated in GN build.
123         'examples_main.cc',
124       ],
125       'conditions': [
126         ['use_aura==1', {
127           'dependencies': [
128             '../../aura/aura.gyp:aura',
129           ],
130         }],
131       ],
132     },  # target_name: views_examples_exe
133     {
134       # GN version: //ui/views/examples:views_examples_with_content_lib
135       'target_name': 'views_examples_with_content_lib',
136       'type': '<(component)',
137       'dependencies': [
138         '../../../base/base.gyp:base',
139         '../../../content/content.gyp:content',
140         '../../../skia/skia.gyp:skia',
141         '../../../url/url.gyp:url_lib',
142         '../../events/events.gyp:events',
143         '../controls/webview/webview.gyp:webview',
144         '../views.gyp:views',
145         'views_examples_lib',
146       ],
147       'defines': [
148         'VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION',
149       ],
150       'sources': [
151         # Note: sources list duplicated in GN build.
152         'examples_window_with_content.cc',
153         'examples_window_with_content.h',
154         'views_examples_with_content_export.h',
155         'webview_example.cc',
156         'webview_example.h',
157       ],
158     },  # target_name: views_examples_with_content_lib
159     {
160       # GN version: //ui/views/examples/views_examples_with_content_exe
161       'target_name': 'views_examples_with_content_exe',
162       'type': 'executable',
163       'dependencies': [
164         '../../../base/base.gyp:base',
165         '../../../content/content.gyp:content',
166         '../../views_content_client/views_content_client.gyp:views_content_client',
167         'views_examples_with_content_lib',
168       ],
169       'sources': [
170         # Note: sources list duplicated in GN build.
171         'examples_with_content_main_exe.cc',
172       ],
173       'conditions': [
174         ['OS=="win"', {
175           'link_settings': {
176             'libraries': [
177               '-limm32.lib',
178               '-loleacc.lib',
179             ]
180           },
181           'msvs_settings': {
182             'VCManifestTool': {
183               'AdditionalManifestFiles': [
184                 'views_examples.exe.manifest',
185               ],
186             },
187             'VCLinkerTool': {
188               'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
189             },
190           },
191           'dependencies': [
192             '../../../sandbox/sandbox.gyp:sandbox',
193             '../../../content/content.gyp:content_startup_helper_win',
194           ],
195         }],
196         ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
197           'dependencies': [
198             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
199           ],
200         }],
201       ],
202     },  # target_name: views_examples_with_content_exe
203   ],