aw: Move SharedRendererState out of AwContents
[chromium-blink-merge.git] / ui / app_list / app_list.gyp
blob061e080e6de4e25b187e9a9a0a20f9626b63b7da
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_observer.h',
42         'app_list_item_list.cc',
43         'app_list_item_list.h',
44         'app_list_item_list_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_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         'search/dictionary_data_store.cc',
94         'search/dictionary_data_store.h',
95         'search/history.cc',
96         'search/history.h',
97         'search/history_data.cc',
98         'search/history_data.h',
99         'search/history_data_store.cc',
100         'search/history_data_store.h',
101         'search/history_types.h',
102         'search/mixer.cc',
103         'search/mixer.h',
104         'search/term_break_iterator.cc',
105         'search/term_break_iterator.h',
106         'search/tokenized_string.cc',
107         'search/tokenized_string.h',
108         'search/tokenized_string_char_iterator.cc',
109         'search/tokenized_string_char_iterator.h',
110         'search/tokenized_string_match.cc',
111         'search/tokenized_string_match.h',
112         'speech_ui_model.cc',
113         'speech_ui_model.h',
114         'speech_ui_model_observer.h',
115         'views/all_apps_tile_item_view.h',
116         'views/all_apps_tile_item_view.cc',
117         'views/apps_container_view.cc',
118         'views/apps_container_view.h',
119         'views/app_list_background.cc',
120         'views/app_list_background.h',
121         'views/app_list_drag_and_drop_host.h',
122         'views/app_list_folder_view.cc',
123         'views/app_list_folder_view.h',
124         'views/app_list_item_view.cc',
125         'views/app_list_item_view.h',
126         'views/app_list_main_view.cc',
127         'views/app_list_main_view.h',
128         'views/app_list_menu_views.cc',
129         'views/app_list_menu_views.h',
130         'views/app_list_view.cc',
131         'views/app_list_view.h',
132         'views/app_list_view_observer.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_switcher_view.cc',
140         'views/contents_switcher_view.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_tile_item_view.cc',
165         'views/search_result_tile_item_view.h',
166         'views/search_result_view.cc',
167         'views/search_result_view.h',
168         'views/speech_view.cc',
169         'views/speech_view.h',
170         'views/start_page_view.cc',
171         'views/start_page_view.h',
172         'views/tile_item_view.cc',
173         'views/tile_item_view.h',
174         'views/top_icon_animation_view.cc',
175         'views/top_icon_animation_view.h',
176       ],
177       'conditions': [
178         ['use_aura==1', {
179           'dependencies': [
180             '../aura/aura.gyp:aura',
181             '../wm/wm.gyp:wm',
182           ],
183         }],
184         ['toolkit_views==1', {
185           'dependencies': [
186             '../events/events.gyp:events',
187             '../views/views.gyp:views',
188           ],
189         }, {  # toolkit_views==0
190           'sources/': [
191             ['exclude', 'views/'],
192           ],
193         }],
194         ['OS=="mac"', {
195           'dependencies': [
196             '../../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
197           ],
198           'link_settings': {
199             'libraries': [
200               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
201             ],
202           },
203         }, {  # OS!="mac"
204           'sources/': [
205             ['exclude', 'cocoa/'],
206           ],
207         }],
208       ],
209       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
210       'msvs_disabled_warnings': [ 4267, ],
211     },
212     {
213       # GN version: //ui/app_list:test_support
214       'target_name': 'app_list_test_support',
215       'type': 'static_library',
216       'dependencies': [
217         '../../base/base.gyp:base',
218         '../gfx/gfx.gyp:gfx',
219         '../gfx/gfx.gyp:gfx_geometry',
220         '../resources/ui_resources.gyp:ui_resources',
221         'app_list',
222       ],
223       'sources': [
224         # Note: sources list duplicated in GN build.
225         'test/app_list_test_model.cc',
226         'test/app_list_test_model.h',
227         'test/app_list_test_view_delegate.cc',
228         'test/app_list_test_view_delegate.h',
229         'test/test_search_result.cc',
230         'test/test_search_result.h',
231       ],
232     },
233     {
234       # GN version: //ui/app_list:app_list_unittests
235       'target_name': 'app_list_unittests',
236       'type': 'executable',
237       'dependencies': [
238         '../../base/base.gyp:base',
239         '../../base/base.gyp:test_support_base',
240         '../../skia/skia.gyp:skia',
241         '../../testing/gtest.gyp:gtest',
242         '../base/ui_base.gyp:ui_base',
243         '../compositor/compositor.gyp:compositor',
244         '../resources/ui_resources.gyp:ui_resources',
245         '../resources/ui_resources.gyp:ui_test_pak',
246         'app_list',
247         'app_list_test_support',
248       ],
249       'sources': [
250         # Note: sources list duplicated in GN build.
251         'app_list_item_list_unittest.cc',
252         'app_list_model_unittest.cc',
253         'pagination_model_unittest.cc',
254         'cocoa/app_list_view_controller_unittest.mm',
255         'cocoa/app_list_window_controller_unittest.mm',
256         'cocoa/apps_grid_controller_unittest.mm',
257         'cocoa/apps_search_box_controller_unittest.mm',
258         'cocoa/apps_search_results_controller_unittest.mm',
259         'cocoa/test/apps_grid_controller_test_helper.h',
260         'cocoa/test/apps_grid_controller_test_helper.mm',
261         'folder_image_unittest.cc',
262         'search/history_data_store_unittest.cc',
263         'search/mixer_unittest.cc',
264         'search/term_break_iterator_unittest.cc',
265         'search/tokenized_string_char_iterator_unittest.cc',
266         'search/tokenized_string_match_unittest.cc',
267         'search/tokenized_string_unittest.cc',
268         'test/run_all_unittests.cc',
269         'views/app_list_main_view_unittest.cc',
270         'views/app_list_view_unittest.cc',
271         'views/apps_grid_view_unittest.cc',
272         'views/folder_header_view_unittest.cc',
273         'views/search_box_view_unittest.cc',
274         'views/search_result_list_view_unittest.cc',
275         'views/speech_view_unittest.cc',
276         'views/test/apps_grid_view_test_api.cc',
277         'views/test/apps_grid_view_test_api.h',
278       ],
279       'conditions': [
280         ['toolkit_views==1', {
281           'dependencies': [
282             '../views/views.gyp:views',
283             '../views/views.gyp:views_test_support',
284           ],
285         }, {  # toolkit_views==0
286           'sources/': [
287             ['exclude', 'views/'],
288           ]
289         }],
290         ['OS=="mac"', {
291           'dependencies': [
292             '../events/events.gyp:events_test_support',
293             '../gfx/gfx.gyp:gfx_test_support',
294           ],
295           'conditions': [
296             ['component=="static_library"', {
297               # Needed to link to Obj-C static libraries.
298               'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
299             }],
300           ],
301         }, {  # OS!="mac"
302           'sources/': [
303             ['exclude', 'cocoa/'],
304           ],
305         }],
306         # See http://crbug.com/162998#c4 for why this is needed.
307         ['OS=="linux" and use_allocator!="none"', {
308           'dependencies': [
309             '../../base/allocator/allocator.gyp:allocator',
310           ],
311         }],
312         ['OS=="win" and win_use_allocator_shim==1', {
313           'dependencies': [
314             '../../base/allocator/allocator.gyp:allocator',
315           ],
316         }],
317       ],
318       # Disable c4267 warnings until we fix size_t to int truncations.
319       'msvs_disabled_warnings': [ 4267, ],
320     },
321   ],
322   'conditions': [
323     ['toolkit_views==1', {
324       'targets': [
325         {
326           'target_name': 'app_list_demo',
327           'type': 'executable',
328           'sources': [
329             'demo/app_list_demo_views.cc',
330           ],
331           'dependencies': [
332             '../../base/base.gyp:base',
333             '../../content/content.gyp:content',
334             '../../content/content.gyp:content_browser',
335             '../../skia/skia.gyp:skia',
336             '../../url/url.gyp:url_lib',
337             '../base/ui_base.gyp:ui_base',
338             '../events/events.gyp:events',
339             '../resources/ui_resources.gyp:ui_resources',
340             '../resources/ui_resources.gyp:ui_test_pak',
341             '../views/controls/webview/webview.gyp:webview',
342             '../views/views.gyp:views',
343             '../views_content_client/views_content_client.gyp:views_content_client',
344             'app_list',
345             'app_list_test_support',
346           ],
347           'conditions': [
348             ['OS=="win"', {
349               'msvs_settings': {
350                 'VCLinkerTool': {
351                   'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
352                 },
353               },
354               'dependencies': [
355                 '../../sandbox/sandbox.gyp:sandbox',
356                 '../../content/content.gyp:content_startup_helper_win',
357               ],
358             }],
359             ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
360               'dependencies': [
361                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
362               ],
363             }],
364           ],
365         },
366       ],
367     }],  # toolkit_views==1
368   ],