OLD | NEW |
| (Empty) |
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 'targets': [ | |
10 { | |
11 # GN version: //ui/app_list | |
12 'target_name': 'app_list', | |
13 'type': '<(component)', | |
14 'dependencies': [ | |
15 '../../base/base.gyp:base', | |
16 '../../base/base.gyp:base_i18n', | |
17 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | |
18 '../../components/components.gyp:keyed_service_core', | |
19 '../../skia/skia.gyp:skia', | |
20 '../base/ui_base.gyp:ui_base', | |
21 '../base/ime/ui_base_ime.gyp:ui_base_ime', | |
22 '../compositor/compositor.gyp:compositor', | |
23 '../display/display.gyp:display', | |
24 '../events/events.gyp:events_base', | |
25 '../gfx/gfx.gyp:gfx', | |
26 '../gfx/gfx.gyp:gfx_geometry', | |
27 '../gfx/gfx.gyp:gfx_range', | |
28 '../resources/ui_resources.gyp:ui_resources', | |
29 '../strings/ui_strings.gyp:ui_strings', | |
30 '../../third_party/icu/icu.gyp:icuuc', | |
31 'resources/app_list_resources.gyp:app_list_resources', | |
32 ], | |
33 'defines': [ | |
34 'APP_LIST_IMPLEMENTATION', | |
35 ], | |
36 'sources': [ | |
37 # Note: sources list duplicated in GN build. | |
38 'app_list_constants.cc', | |
39 'app_list_constants.h', | |
40 'app_list_export.h', | |
41 'app_list_folder_item.cc', | |
42 'app_list_folder_item.h', | |
43 'app_list_item.cc', | |
44 'app_list_item.h', | |
45 'app_list_item_list.cc', | |
46 'app_list_item_list.h', | |
47 'app_list_item_list_observer.h', | |
48 'app_list_item_observer.h', | |
49 'app_list_menu.cc', | |
50 'app_list_menu.h', | |
51 'app_list_model.cc', | |
52 'app_list_model.h', | |
53 'app_list_model_observer.h', | |
54 'app_list_switches.cc', | |
55 'app_list_switches.h', | |
56 'app_list_view_delegate.cc', | |
57 'app_list_view_delegate.h', | |
58 'folder_image.cc', | |
59 'folder_image.h', | |
60 'pagination_controller.cc', | |
61 'pagination_controller.h', | |
62 'pagination_model.cc', | |
63 'pagination_model.h', | |
64 'pagination_model_observer.h', | |
65 'search/dictionary_data_store.cc', | |
66 'search/dictionary_data_store.h', | |
67 'search/history.cc', | |
68 'search/history.h', | |
69 'search/history_data.cc', | |
70 'search/history_data.h', | |
71 'search/history_data_store.cc', | |
72 'search/history_data_store.h', | |
73 'search/history_types.h', | |
74 'search/mixer.cc', | |
75 'search/mixer.h', | |
76 'search/term_break_iterator.cc', | |
77 'search/term_break_iterator.h', | |
78 'search/tokenized_string.cc', | |
79 'search/tokenized_string.h', | |
80 'search/tokenized_string_char_iterator.cc', | |
81 'search/tokenized_string_char_iterator.h', | |
82 'search/tokenized_string_match.cc', | |
83 'search/tokenized_string_match.h', | |
84 'search_box_model.cc', | |
85 'search_box_model.h', | |
86 'search_box_model_observer.h', | |
87 'search_controller.cc', | |
88 'search_controller.h', | |
89 'search_provider.cc', | |
90 'search_provider.h', | |
91 'search_result.cc', | |
92 'search_result.h', | |
93 'speech_ui_model.cc', | |
94 'speech_ui_model.h', | |
95 'speech_ui_model_observer.h', | |
96 'views/all_apps_tile_item_view.cc', | |
97 'views/all_apps_tile_item_view.h', | |
98 'views/app_list_background.cc', | |
99 'views/app_list_background.h', | |
100 'views/app_list_drag_and_drop_host.h', | |
101 'views/app_list_folder_view.cc', | |
102 'views/app_list_folder_view.h', | |
103 'views/app_list_item_view.cc', | |
104 'views/app_list_item_view.h', | |
105 'views/app_list_main_view.cc', | |
106 'views/app_list_main_view.h', | |
107 'views/app_list_menu_views.cc', | |
108 'views/app_list_menu_views.h', | |
109 'views/app_list_page.cc', | |
110 'views/app_list_page.h', | |
111 'views/app_list_view.cc', | |
112 'views/app_list_view.h', | |
113 'views/app_list_view_observer.h', | |
114 'views/apps_container_view.cc', | |
115 'views/apps_container_view.h', | |
116 'views/apps_grid_view.cc', | |
117 'views/apps_grid_view.h', | |
118 'views/apps_grid_view_delegate.h', | |
119 'views/apps_grid_view_folder_delegate.h', | |
120 'views/contents_view.cc', | |
121 'views/contents_view.h', | |
122 'views/custom_launcher_page_view.cc', | |
123 'views/custom_launcher_page_view.h', | |
124 'views/folder_background_view.cc', | |
125 'views/folder_background_view.h', | |
126 'views/folder_header_view.cc', | |
127 'views/folder_header_view.h', | |
128 'views/folder_header_view_delegate.h', | |
129 'views/image_shadow_animator.cc', | |
130 'views/image_shadow_animator.h', | |
131 'views/page_switcher.cc', | |
132 'views/page_switcher.h', | |
133 'views/progress_bar_view.cc', | |
134 'views/progress_bar_view.h', | |
135 'views/pulsing_block_view.cc', | |
136 'views/pulsing_block_view.h', | |
137 'views/search_box_view.cc', | |
138 'views/search_box_view.h', | |
139 'views/search_box_view_delegate.h', | |
140 'views/search_result_actions_view.cc', | |
141 'views/search_result_actions_view.h', | |
142 'views/search_result_container_view.cc', | |
143 'views/search_result_container_view.h', | |
144 'views/search_result_list_view.cc', | |
145 'views/search_result_list_view.h', | |
146 'views/search_result_list_view_delegate.h', | |
147 'views/search_result_page_view.cc', | |
148 'views/search_result_page_view.h', | |
149 'views/search_result_tile_item_list_view.cc', | |
150 'views/search_result_tile_item_list_view.h', | |
151 'views/search_result_tile_item_view.cc', | |
152 'views/search_result_tile_item_view.h', | |
153 'views/search_result_view.cc', | |
154 'views/search_result_view.h', | |
155 'views/speech_view.cc', | |
156 'views/speech_view.h', | |
157 'views/start_page_view.cc', | |
158 'views/start_page_view.h', | |
159 'views/tile_item_view.cc', | |
160 'views/tile_item_view.h', | |
161 'views/top_icon_animation_view.cc', | |
162 'views/top_icon_animation_view.h', | |
163 ], | |
164 'conditions': [ | |
165 ['use_aura==1', { | |
166 'dependencies': [ | |
167 '../aura/aura.gyp:aura', | |
168 '../wm/wm.gyp:wm', | |
169 ], | |
170 }], | |
171 ['toolkit_views==1', { | |
172 'dependencies': [ | |
173 '../events/events.gyp:events', | |
174 '../views/views.gyp:views', | |
175 ], | |
176 'export_dependent_settings': [ | |
177 '../views/views.gyp:views', | |
178 ], | |
179 }, { # toolkit_views==0 | |
180 'sources/': [ | |
181 ['exclude', 'views/'], | |
182 ], | |
183 }], | |
184 ], | |
185 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
186 'msvs_disabled_warnings': [ 4267, ], | |
187 }, | |
188 { | |
189 # GN version: //ui/app_list:test_support | |
190 'target_name': 'app_list_test_support', | |
191 'type': 'static_library', | |
192 'dependencies': [ | |
193 '../../base/base.gyp:base', | |
194 '../gfx/gfx.gyp:gfx', | |
195 '../gfx/gfx.gyp:gfx_geometry', | |
196 'app_list', | |
197 ], | |
198 'sources': [ | |
199 # Note: sources list duplicated in GN build. | |
200 'test/app_list_test_model.cc', | |
201 'test/app_list_test_model.h', | |
202 'test/app_list_test_view_delegate.cc', | |
203 'test/app_list_test_view_delegate.h', | |
204 'test/test_search_result.cc', | |
205 'test/test_search_result.h', | |
206 'views/test/app_list_view_test_api.cc', | |
207 'views/test/app_list_view_test_api.h', | |
208 ], | |
209 }, | |
210 { | |
211 # GN version: //ui/app_list:app_list_unittests | |
212 'target_name': 'app_list_unittests', | |
213 'type': 'executable', | |
214 'dependencies': [ | |
215 '../../base/base.gyp:base', | |
216 '../../base/base.gyp:test_support_base', | |
217 '../../skia/skia.gyp:skia', | |
218 '../../testing/gtest.gyp:gtest', | |
219 '../base/ui_base.gyp:ui_base', | |
220 '../compositor/compositor.gyp:compositor', | |
221 '../gfx/gfx.gyp:gfx_range', | |
222 '../resources/ui_resources.gyp:ui_resources', | |
223 '../resources/ui_resources.gyp:ui_test_pak', | |
224 'app_list', | |
225 'app_list_test_support', | |
226 ], | |
227 'sources': [ | |
228 # Note: sources list duplicated in GN build. | |
229 'app_list_item_list_unittest.cc', | |
230 'app_list_model_unittest.cc', | |
231 'folder_image_unittest.cc', | |
232 'pagination_model_unittest.cc', | |
233 'search/history_data_store_unittest.cc', | |
234 'search/mixer_unittest.cc', | |
235 'search/term_break_iterator_unittest.cc', | |
236 'search/tokenized_string_char_iterator_unittest.cc', | |
237 'search/tokenized_string_match_unittest.cc', | |
238 'search/tokenized_string_unittest.cc', | |
239 'test/run_all_unittests.cc', | |
240 'views/app_list_main_view_unittest.cc', | |
241 'views/app_list_view_unittest.cc', | |
242 'views/apps_grid_view_unittest.cc', | |
243 'views/folder_header_view_unittest.cc', | |
244 'views/image_shadow_animator_unittest.cc', | |
245 'views/search_box_view_unittest.cc', | |
246 'views/search_result_list_view_unittest.cc', | |
247 'views/search_result_page_view_unittest.cc', | |
248 'views/speech_view_unittest.cc', | |
249 'views/test/apps_grid_view_test_api.cc', | |
250 'views/test/apps_grid_view_test_api.h', | |
251 ], | |
252 'conditions': [ | |
253 ['toolkit_views==1', { | |
254 'dependencies': [ | |
255 '../views/views.gyp:views', | |
256 '../views/views.gyp:views_test_support', | |
257 ], | |
258 }, { # toolkit_views==0 | |
259 'sources/': [ | |
260 ['exclude', 'views/'], | |
261 ] | |
262 }], | |
263 ], | |
264 # Disable c4267 warnings until we fix size_t to int truncations. | |
265 'msvs_disabled_warnings': [ 4267, ], | |
266 }, | |
267 ], | |
268 'conditions': [ | |
269 ['toolkit_views==1', { | |
270 'targets': [ | |
271 { | |
272 'target_name': 'app_list_demo', | |
273 'type': 'executable', | |
274 'sources': [ | |
275 'demo/app_list_demo_views.cc', | |
276 ], | |
277 'dependencies': [ | |
278 '../../base/base.gyp:base', | |
279 '../../content/content.gyp:content', | |
280 '../../content/content.gyp:content_browser', | |
281 '../../skia/skia.gyp:skia', | |
282 '../../url/url.gyp:url_lib', | |
283 '../base/ui_base.gyp:ui_base', | |
284 '../events/events.gyp:events', | |
285 '../resources/ui_resources.gyp:ui_resources', | |
286 '../resources/ui_resources.gyp:ui_test_pak', | |
287 '../views/controls/webview/webview.gyp:webview', | |
288 '../views/views.gyp:views', | |
289 '../views_content_client/views_content_client.gyp:views_content_clie
nt', | |
290 'app_list', | |
291 'app_list_test_support', | |
292 ], | |
293 'conditions': [ | |
294 ['OS=="win"', { | |
295 'msvs_settings': { | |
296 'VCLinkerTool': { | |
297 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
298 }, | |
299 }, | |
300 'dependencies': [ | |
301 '../../sandbox/sandbox.gyp:sandbox', | |
302 '../../content/content.gyp:sandbox_helper_win', | |
303 ], | |
304 }], | |
305 ], | |
306 }, | |
307 ], | |
308 }], # toolkit_views==1 | |
309 ['test_isolation_mode != "noop"', { | |
310 'targets': [ | |
311 { | |
312 'target_name': 'app_list_unittests_run', | |
313 'type': 'none', | |
314 'dependencies': [ | |
315 'app_list_unittests', | |
316 ], | |
317 'includes': [ | |
318 '../../build/isolate.gypi', | |
319 ], | |
320 'sources': [ | |
321 'app_list_unittests.isolate', | |
322 ], | |
323 'conditions': [ | |
324 ['use_x11 == 1', { | |
325 'dependencies': [ | |
326 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
327 ], | |
328 }], | |
329 ], | |
330 }, | |
331 ], | |
332 }], | |
333 ], | |
334 } | |
OLD | NEW |