Implement MoveFileLocal (with creating a snapshot).
[chromium-blink-merge.git] / ui / app_list / app_list.gyp
blobd6c062d75ac0d58a9ff4b1c24a0a28e817865cbd
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.
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:dynamic_annotations',
18         '../../components/components.gyp:keyed_service_core',
19         '../../skia/skia.gyp:skia',
20         '../base/ui_base.gyp:ui_base',
21         '../compositor/compositor.gyp:compositor',
22         '../events/events.gyp:events_base',
23         '../gfx/gfx.gyp:gfx',
24         '../gfx/gfx.gyp:gfx_geometry',
25         '../resources/ui_resources.gyp:ui_resources',
26         '../strings/ui_strings.gyp:ui_strings',
27         '../../third_party/icu/icu.gyp:icuuc',
28       ],
29       'defines': [
30         'APP_LIST_IMPLEMENTATION',
31       ],
32       'sources': [
33         # Note: sources list duplicated in GN build.
34         'app_list_constants.cc',
35         'app_list_constants.h',
36         'app_list_export.h',
37         'app_list_folder_item.cc',
38         'app_list_folder_item.h',
39         'app_list_item.cc',
40         'app_list_item.h',
41         'app_list_item_list.cc',
42         'app_list_item_list.h',
43         'app_list_item_list_observer.h',
44         'app_list_item_observer.h',
45         'app_list_menu.cc',
46         'app_list_menu.h',
47         'app_list_model.cc',
48         'app_list_model.h',
49         'app_list_model_observer.h',
50         'app_list_switches.cc',
51         'app_list_switches.h',
52         'app_list_view_delegate.cc',
53         'app_list_view_delegate.h',
54         'cocoa/app_list_pager_view.h',
55         'cocoa/app_list_pager_view.mm',
56         'cocoa/app_list_view_controller.h',
57         'cocoa/app_list_view_controller.mm',
58         'cocoa/app_list_window_controller.h',
59         'cocoa/app_list_window_controller.mm',
60         'cocoa/apps_collection_view_drag_manager.h',
61         'cocoa/apps_collection_view_drag_manager.mm',
62         'cocoa/apps_grid_controller.h',
63         'cocoa/apps_grid_controller.mm',
64         'cocoa/apps_grid_view_item.h',
65         'cocoa/apps_grid_view_item.mm',
66         'cocoa/apps_pagination_model_observer.h',
67         'cocoa/apps_search_box_controller.h',
68         'cocoa/apps_search_box_controller.mm',
69         'cocoa/apps_search_results_controller.h',
70         'cocoa/apps_search_results_controller.mm',
71         'cocoa/apps_search_results_model_bridge.h',
72         'cocoa/apps_search_results_model_bridge.mm',
73         'cocoa/item_drag_controller.h',
74         'cocoa/item_drag_controller.mm',
75         'cocoa/scroll_view_with_no_scrollbars.h',
76         'cocoa/scroll_view_with_no_scrollbars.mm',
77         'folder_image.cc',
78         'folder_image.h',
79         'pagination_controller.cc',
80         'pagination_controller.h',
81         'pagination_model.cc',
82         'pagination_model.h',
83         'pagination_model_observer.h',
84         'search/dictionary_data_store.cc',
85         'search/dictionary_data_store.h',
86         'search/history.cc',
87         'search/history.h',
88         'search/history_data.cc',
89         'search/history_data.h',
90         'search/history_data_store.cc',
91         'search/history_data_store.h',
92         'search/history_types.h',
93         'search/mixer.cc',
94         'search/mixer.h',
95         'search/term_break_iterator.cc',
96         'search/term_break_iterator.h',
97         'search/tokenized_string.cc',
98         'search/tokenized_string.h',
99         'search/tokenized_string_char_iterator.cc',
100         'search/tokenized_string_char_iterator.h',
101         'search/tokenized_string_match.cc',
102         'search/tokenized_string_match.h',
103         'search_box_model.cc',
104         'search_box_model.h',
105         'search_box_model_observer.h',
106         'search_controller.cc',
107         'search_controller.h',
108         'search_provider.cc',
109         'search_provider.h',
110         'search_result.cc',
111         'search_result.h',
112         'speech_ui_model.cc',
113         'speech_ui_model.h',
114         'speech_ui_model_observer.h',
115         'views/all_apps_tile_item_view.cc',
116         'views/all_apps_tile_item_view.h',
117         'views/app_list_background.cc',
118         'views/app_list_background.h',
119         'views/app_list_drag_and_drop_host.h',
120         'views/app_list_folder_view.cc',
121         'views/app_list_folder_view.h',
122         'views/app_list_item_view.cc',
123         'views/app_list_item_view.h',
124         'views/app_list_main_view.cc',
125         'views/app_list_main_view.h',
126         'views/app_list_menu_views.cc',
127         'views/app_list_menu_views.h',
128         'views/app_list_view.cc',
129         'views/app_list_view.h',
130         'views/app_list_view_observer.h',
131         'views/apps_container_view.cc',
132         'views/apps_container_view.h',
133         'views/apps_grid_view.cc',
134         'views/apps_grid_view.h',
135         'views/apps_grid_view_delegate.h',
136         'views/apps_grid_view_folder_delegate.h',
137         'views/cached_label.cc',
138         'views/cached_label.h',
139         'views/contents_animator.cc',
140         'views/contents_animator.h',
141         'views/contents_view.cc',
142         'views/contents_view.h',
143         'views/folder_background_view.cc',
144         'views/folder_background_view.h',
145         'views/folder_header_view.cc',
146         'views/folder_header_view.h',
147         'views/folder_header_view_delegate.h',
148         'views/page_switcher.cc',
149         'views/page_switcher.h',
150         'views/progress_bar_view.cc',
151         'views/progress_bar_view.h',
152         'views/pulsing_block_view.cc',
153         'views/pulsing_block_view.h',
154         'views/search_box_view.cc',
155         'views/search_box_view.h',
156         'views/search_box_view_delegate.h',
157         'views/search_result_actions_view.cc',
158         'views/search_result_actions_view.h',
159         'views/search_result_container_view.cc',
160         'views/search_result_container_view.h',
161         'views/search_result_list_view.cc',
162         'views/search_result_list_view.h',
163         'views/search_result_list_view_delegate.h',
164         'views/search_result_page_view.cc',
165         'views/search_result_page_view.h',
166         'views/search_result_tile_item_list_view.cc',
167         'views/search_result_tile_item_list_view.h',
168         'views/search_result_tile_item_view.cc',
169         'views/search_result_tile_item_view.h',
170         'views/search_result_view.cc',
171         'views/search_result_view.h',
172         'views/speech_view.cc',
173         'views/speech_view.h',
174         'views/start_page_view.cc',
175         'views/start_page_view.h',
176         'views/tile_item_view.cc',
177         'views/tile_item_view.h',
178         'views/top_icon_animation_view.cc',
179         'views/top_icon_animation_view.h',
180       ],
181       'conditions': [
182         ['use_aura==1', {
183           'dependencies': [
184             '../aura/aura.gyp:aura',
185             '../wm/wm.gyp:wm',
186           ],
187         }],
188         ['toolkit_views==1', {
189           'dependencies': [
190             '../events/events.gyp:events',
191             '../views/views.gyp:views',
192           ],
193         }, {  # toolkit_views==0
194           'sources/': [
195             ['exclude', 'views/'],
196           ],
197         }],
198         ['OS=="mac"', {
199           'dependencies': [
200             '../../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
201           ],
202           'link_settings': {
203             'libraries': [
204               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
205             ],
206           },
207         }, {  # OS!="mac"
208           'sources/': [
209             ['exclude', 'cocoa/'],
210           ],
211         }],
212       ],
213       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
214       'msvs_disabled_warnings': [ 4267, ],
215     },
216     {
217       # GN version: //ui/app_list:test_support
218       'target_name': 'app_list_test_support',
219       'type': 'static_library',
220       'dependencies': [
221         '../../base/base.gyp:base',
222         '../gfx/gfx.gyp:gfx',
223         '../gfx/gfx.gyp:gfx_geometry',
224         '../resources/ui_resources.gyp:ui_resources',
225         'app_list',
226       ],
227       'sources': [
228         # Note: sources list duplicated in GN build.
229         'test/app_list_test_model.cc',
230         'test/app_list_test_model.h',
231         'test/app_list_test_view_delegate.cc',
232         'test/app_list_test_view_delegate.h',
233         'test/test_search_result.cc',
234         'test/test_search_result.h',
235       ],
236     },
237     {
238       # GN version: //ui/app_list:app_list_unittests
239       'target_name': 'app_list_unittests',
240       'type': 'executable',
241       'dependencies': [
242         '../../base/base.gyp:base',
243         '../../base/base.gyp:test_support_base',
244         '../../skia/skia.gyp:skia',
245         '../../testing/gtest.gyp:gtest',
246         '../base/ui_base.gyp:ui_base',
247         '../compositor/compositor.gyp:compositor',
248         '../resources/ui_resources.gyp:ui_resources',
249         '../resources/ui_resources.gyp:ui_test_pak',
250         'app_list',
251         'app_list_test_support',
252       ],
253       'sources': [
254         # Note: sources list duplicated in GN build.
255         'app_list_item_list_unittest.cc',
256         'app_list_model_unittest.cc',
257         'cocoa/app_list_view_controller_unittest.mm',
258         'cocoa/app_list_window_controller_unittest.mm',
259         'cocoa/apps_grid_controller_unittest.mm',
260         'cocoa/apps_search_box_controller_unittest.mm',
261         'cocoa/apps_search_results_controller_unittest.mm',
262         'cocoa/test/apps_grid_controller_test_helper.h',
263         'cocoa/test/apps_grid_controller_test_helper.mm',
264         'folder_image_unittest.cc',
265         'pagination_model_unittest.cc',
266         'search/history_data_store_unittest.cc',
267         'search/mixer_unittest.cc',
268         'search/term_break_iterator_unittest.cc',
269         'search/tokenized_string_char_iterator_unittest.cc',
270         'search/tokenized_string_match_unittest.cc',
271         'search/tokenized_string_unittest.cc',
272         'test/run_all_unittests.cc',
273         'views/app_list_main_view_unittest.cc',
274         'views/app_list_view_unittest.cc',
275         'views/apps_grid_view_unittest.cc',
276         'views/contents_view_unittest.cc',
277         'views/folder_header_view_unittest.cc',
278         'views/search_box_view_unittest.cc',
279         'views/search_result_list_view_unittest.cc',
280         'views/search_result_page_view_unittest.cc',
281         'views/speech_view_unittest.cc',
282         'views/test/apps_grid_view_test_api.cc',
283         'views/test/apps_grid_view_test_api.h',
284       ],
285       'conditions': [
286         ['toolkit_views==1', {
287           'dependencies': [
288             '../views/views.gyp:views',
289             '../views/views.gyp:views_test_support',
290           ],
291         }, {  # toolkit_views==0
292           'sources/': [
293             ['exclude', 'views/'],
294           ]
295         }],
296         ['OS=="mac"', {
297           'dependencies': [
298             '../events/events.gyp:events_test_support',
299             '../gfx/gfx.gyp:gfx_test_support',
300           ],
301           'conditions': [
302             ['component=="static_library"', {
303               # Needed to link to Obj-C static libraries.
304               'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
305             }],
306           ],
307         }, {  # OS!="mac"
308           'sources/': [
309             ['exclude', 'cocoa/'],
310           ],
311         }],
312         # See http://crbug.com/162998#c4 for why this is needed.
313         ['OS=="linux" and use_allocator!="none"', {
314           'dependencies': [
315             '../../base/allocator/allocator.gyp:allocator',
316           ],
317         }],
318         ['OS=="win" and win_use_allocator_shim==1', {
319           'dependencies': [
320             '../../base/allocator/allocator.gyp:allocator',
321           ],
322         }],
323       ],
324       # Disable c4267 warnings until we fix size_t to int truncations.
325       'msvs_disabled_warnings': [ 4267, ],
326     },
327   ],
328   'conditions': [
329     ['toolkit_views==1', {
330       'targets': [
331         {
332           'target_name': 'app_list_demo',
333           'type': 'executable',
334           'sources': [
335             'demo/app_list_demo_views.cc',
336           ],
337           'dependencies': [
338             '../../base/base.gyp:base',
339             '../../content/content.gyp:content',
340             '../../content/content.gyp:content_browser',
341             '../../skia/skia.gyp:skia',
342             '../../url/url.gyp:url_lib',
343             '../base/ui_base.gyp:ui_base',
344             '../events/events.gyp:events',
345             '../resources/ui_resources.gyp:ui_resources',
346             '../resources/ui_resources.gyp:ui_test_pak',
347             '../views/controls/webview/webview.gyp:webview',
348             '../views/views.gyp:views',
349             '../views_content_client/views_content_client.gyp:views_content_client',
350             'app_list',
351             'app_list_test_support',
352           ],
353           'conditions': [
354             ['OS=="win"', {
355               'msvs_settings': {
356                 'VCLinkerTool': {
357                   'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
358                 },
359               },
360               'dependencies': [
361                 '../../sandbox/sandbox.gyp:sandbox',
362                 '../../content/content.gyp:content_startup_helper_win',
363               ],
364             }],
365             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
366               'dependencies': [
367                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
368               ],
369             }],
370           ],
371         },
372       ],
373     }],  # toolkit_views==1
374     ['test_isolation_mode != "noop"', {
375       'targets': [
376         {
377           'target_name': 'app_list_unittests_run',
378           'type': 'none',
379           'dependencies': [
380             'app_list_unittests',
381           ],
382           'includes': [
383             '../../build/isolate.gypi',
384           ],
385           'sources': [
386             'app_list_unittests.isolate',
387           ],
388           'conditions': [
389             ['use_x11 == 1', {
390               'dependencies': [
391                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
392               ],
393             }],
394           ],
395         },
396       ],
397     }],
398   ],