OLD | NEW |
| (Empty) |
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. | |
4 { | |
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_range', | |
23 '../../gfx/gfx.gyp:gfx_vector_icons', | |
24 '../../resources/ui_resources.gyp:ui_resources', | |
25 '../../resources/ui_resources.gyp:ui_test_pak', | |
26 '../views.gyp:views', | |
27 ], | |
28 'include_dirs': [ | |
29 '../../..', | |
30 ], | |
31 'defines': [ | |
32 'GFX_VECTOR_ICONS_UNSAFE', | |
33 'VIEWS_EXAMPLES_IMPLEMENTATION', | |
34 ], | |
35 'sources': [ | |
36 # Note: sources list duplicated in GN build. | |
37 'bubble_example.cc', | |
38 'bubble_example.h', | |
39 'button_example.cc', | |
40 'button_example.h', | |
41 'checkbox_example.cc', | |
42 'checkbox_example.h', | |
43 'combobox_example.cc', | |
44 'combobox_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 'slider_example.cc', | |
68 'slider_example.h', | |
69 'tabbed_pane_example.cc', | |
70 'tabbed_pane_example.h', | |
71 'table_example.cc', | |
72 'table_example.h', | |
73 'text_example.cc', | |
74 'text_example.h', | |
75 'textfield_example.cc', | |
76 'textfield_example.h', | |
77 'throbber_example.cc', | |
78 'throbber_example.h', | |
79 'toggle_button_example.cc', | |
80 'toggle_button_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 '../resources/views_resources.gyp:views_resources', | |
164 '../../views_content_client/views_content_client.gyp:views_content_clien
t', | |
165 'views_examples_with_content_lib', | |
166 ], | |
167 'sources': [ | |
168 # Note: sources list duplicated in GN build. | |
169 'examples_with_content_main_exe.cc', | |
170 ], | |
171 'conditions': [ | |
172 ['component=="shared_library"', { | |
173 'dependencies': [ | |
174 '../../../base/base.gyp:base', | |
175 '../../../content/content.gyp:content', | |
176 ], | |
177 }], | |
178 ['OS=="win"', { | |
179 'link_settings': { | |
180 'libraries': [ | |
181 '-limm32.lib', | |
182 '-loleacc.lib', | |
183 ] | |
184 }, | |
185 'msvs_settings': { | |
186 'VCManifestTool': { | |
187 'AdditionalManifestFiles': [ | |
188 'views_examples.exe.manifest', | |
189 ], | |
190 }, | |
191 'VCLinkerTool': { | |
192 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
193 }, | |
194 }, | |
195 'dependencies': [ | |
196 '../../../sandbox/sandbox.gyp:sandbox', | |
197 '../../../content/content.gyp:sandbox_helper_win', | |
198 ], | |
199 }], | |
200 ], | |
201 }, # target_name: views_examples_with_content_exe | |
202 ], | |
203 } | |
OLD | NEW |