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