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.
11 'target_name': 'app_list',
12 'type': '<(component)',
14 '../../base/base.gyp:base',
15 '../../base/base.gyp:base_i18n',
16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17 '../../skia/skia.gyp:skia',
18 '../base/strings/ui_strings.gyp:ui_strings',
19 '../base/ui_base.gyp:ui_base',
20 '../compositor/compositor.gyp:compositor',
21 '../events/events.gyp:events_base',
23 '../gfx/gfx.gyp:gfx_geometry',
24 '../resources/ui_resources.gyp:ui_resources',
27 'APP_LIST_IMPLEMENTATION',
30 'app_list_constants.cc',
31 'app_list_constants.h',
33 'app_list_folder_item.cc',
34 'app_list_folder_item.h',
37 'app_list_item_observer.h',
38 'app_list_item_list.cc',
39 'app_list_item_list.h',
40 'app_list_item_list_observer.h',
45 'app_list_model_observer.h',
46 'app_list_switches.cc',
47 'app_list_switches.h',
48 'app_list_view_delegate.cc',
49 'app_list_view_delegate.h',
50 'cocoa/app_list_pager_view.h',
51 'cocoa/app_list_pager_view.mm',
52 'cocoa/app_list_view_controller.h',
53 'cocoa/app_list_view_controller.mm',
54 'cocoa/app_list_window_controller.h',
55 'cocoa/app_list_window_controller.mm',
56 'cocoa/apps_collection_view_drag_manager.h',
57 'cocoa/apps_collection_view_drag_manager.mm',
58 'cocoa/apps_grid_controller.h',
59 'cocoa/apps_grid_controller.mm',
60 'cocoa/apps_grid_view_item.h',
61 'cocoa/apps_grid_view_item.mm',
62 'cocoa/apps_pagination_model_observer.h',
63 'cocoa/apps_search_box_controller.h',
64 'cocoa/apps_search_box_controller.mm',
65 'cocoa/apps_search_results_controller.h',
66 'cocoa/apps_search_results_controller.mm',
67 'cocoa/apps_search_results_model_bridge.h',
68 'cocoa/apps_search_results_model_bridge.mm',
69 'cocoa/item_drag_controller.h',
70 'cocoa/item_drag_controller.mm',
71 'cocoa/scroll_view_with_no_scrollbars.h',
72 'cocoa/scroll_view_with_no_scrollbars.mm',
73 'cocoa/signin_view_controller.h',
74 'cocoa/signin_view_controller.mm',
75 'pagination_model.cc',
77 'pagination_model_observer.h',
78 'search_box_model.cc',
80 'search_box_model_observer.h',
87 'speech_ui_model_observer.h',
88 'views/apps_container_view.cc',
89 'views/apps_container_view.h',
90 'views/app_list_background.cc',
91 'views/app_list_background.h',
92 'views/app_list_drag_and_drop_host.h',
93 'views/app_list_folder_view.cc',
94 'views/app_list_folder_view.h',
95 'views/app_list_item_view.cc',
96 'views/app_list_item_view.h',
97 'views/app_list_main_view.cc',
98 'views/app_list_main_view.h',
99 'views/app_list_menu_views.cc',
100 'views/app_list_menu_views.h',
101 'views/app_list_view.cc',
102 'views/app_list_view.h',
103 'views/app_list_view_observer.h',
104 'views/apps_grid_view.cc',
105 'views/apps_grid_view.h',
106 'views/apps_grid_view_delegate.h',
107 'views/apps_grid_view_folder_delegate.h',
108 'views/cached_label.cc',
109 'views/cached_label.h',
110 'views/contents_switcher_view.cc',
111 'views/contents_switcher_view.h',
112 'views/contents_view.cc',
113 'views/contents_view.h',
114 'views/folder_background_view.cc',
115 'views/folder_background_view.h',
116 'views/folder_header_view.cc',
117 'views/folder_header_view.h',
118 'views/folder_header_view_delegate.h',
119 'views/page_switcher.cc',
120 'views/page_switcher.h',
121 'views/progress_bar_view.cc',
122 'views/progress_bar_view.h',
123 'views/pulsing_block_view.cc',
124 'views/pulsing_block_view.h',
125 'views/search_box_view.cc',
126 'views/search_box_view.h',
127 'views/search_box_view_delegate.h',
128 'views/search_result_actions_view.cc',
129 'views/search_result_actions_view.h',
130 'views/search_result_list_view.cc',
131 'views/search_result_list_view.h',
132 'views/search_result_list_view_delegate.h',
133 'views/search_result_view.cc',
134 'views/search_result_view.h',
135 'views/signin_view.cc',
136 'views/signin_view.h',
137 'views/speech_view.cc',
138 'views/speech_view.h',
139 'views/top_icon_animation_view.cc',
140 'views/top_icon_animation_view.h',
145 '../aura/aura.gyp:aura',
148 ['toolkit_views==1', {
150 '../../content/content.gyp:content_browser',
151 '../events/events.gyp:events',
152 '../views/controls/webview/webview.gyp:webview',
153 '../views/views.gyp:views',
156 }, { # toolkit_views==0
158 ['exclude', 'views/'],
163 '../../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
167 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
172 ['exclude', 'cocoa/'],
176 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
177 'msvs_disabled_warnings': [ 4267, ],
180 'target_name': 'app_list_test_support',
181 'type': 'static_library',
183 '../../base/base.gyp:base',
184 '../gfx/gfx.gyp:gfx',
185 '../gfx/gfx.gyp:gfx_geometry',
189 'test/app_list_test_model.cc',
190 'test/app_list_test_model.h',
191 'test/app_list_test_view_delegate.cc',
192 'test/app_list_test_view_delegate.h',
196 'target_name': 'app_list_unittests',
197 'type': 'executable',
199 '../../base/base.gyp:base',
200 '../../base/base.gyp:test_support_base',
201 '../../skia/skia.gyp:skia',
202 '../../testing/gtest.gyp:gtest',
203 '../base/ui_base.gyp:ui_base',
204 '../compositor/compositor.gyp:compositor',
205 '../resources/ui_resources.gyp:ui_resources',
206 '../resources/ui_resources.gyp:ui_test_pak',
208 'app_list_test_support',
211 'app_list_item_list_unittest.cc',
212 'app_list_model_unittest.cc',
213 'pagination_model_unittest.cc',
214 'cocoa/app_list_view_controller_unittest.mm',
215 'cocoa/app_list_window_controller_unittest.mm',
216 'cocoa/apps_grid_controller_unittest.mm',
217 'cocoa/apps_search_box_controller_unittest.mm',
218 'cocoa/apps_search_results_controller_unittest.mm',
219 'cocoa/signin_view_controller_unittest.mm',
220 'cocoa/test/apps_grid_controller_test_helper.h',
221 'cocoa/test/apps_grid_controller_test_helper.mm',
222 'test/run_all_unittests.cc',
223 'views/app_list_main_view_unittest.cc',
224 'views/apps_grid_view_unittest.cc',
225 'views/folder_header_view_unittest.cc',
226 'views/search_box_view_unittest.cc',
227 'views/search_result_list_view_unittest.cc',
228 'views/test/apps_grid_view_test_api.cc',
229 'views/test/apps_grid_view_test_api.h',
232 ['toolkit_views==1', {
234 '../views/views.gyp:views',
235 '../views/views.gyp:views_test_support',
236 '../../content/content.gyp:content',
237 '../../content/content.gyp:content_browser',
239 }, { # toolkit_views==0
241 ['exclude', 'views/'],
246 '../events/events.gyp:events_test_support',
247 '../gfx/gfx.gyp:gfx_test_support',
250 ['component=="static_library"', {
251 # Needed to link to Obj-C static libraries.
252 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
257 ['exclude', 'cocoa/'],
260 # See http://crbug.com/162998#c4 for why this is needed.
261 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
262 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
264 '../../base/allocator/allocator.gyp:allocator',
265 # The following two dependencies provide the missing
266 # symbol HeapProfilerStart in Linux component builds.
267 # They probably can be removed after http://crbug.com/263316
268 '../../webkit/child/webkit_child.gyp:webkit_child',
271 ['OS=="win" and win_use_allocator_shim==1', {
273 '../../base/allocator/allocator.gyp:allocator',
277 # Disable c4267 warnings until we fix size_t to int truncations.
278 'msvs_disabled_warnings': [ 4267, ],