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 # GN version: //ui/app_list
12 'target_name': 'app_list',
13 'type': '<(component)',
15 '../../base/base.gyp:base',
16 '../../base/base.gyp:base_i18n',
17 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18 '../../skia/skia.gyp:skia',
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',
25 '../strings/ui_strings.gyp:ui_strings',
28 'APP_LIST_IMPLEMENTATION',
31 # Note: sources list duplicated in GN build.
32 'app_list_constants.cc',
33 'app_list_constants.h',
35 'app_list_folder_item.cc',
36 'app_list_folder_item.h',
39 'app_list_item_observer.h',
40 'app_list_item_list.cc',
41 'app_list_item_list.h',
42 'app_list_item_list_observer.h',
47 'app_list_model_observer.h',
48 'app_list_switches.cc',
49 'app_list_switches.h',
50 'app_list_view_delegate.cc',
51 'app_list_view_delegate.h',
52 'cocoa/app_list_pager_view.h',
53 'cocoa/app_list_pager_view.mm',
54 'cocoa/app_list_view_controller.h',
55 'cocoa/app_list_view_controller.mm',
56 'cocoa/app_list_window_controller.h',
57 'cocoa/app_list_window_controller.mm',
58 'cocoa/apps_collection_view_drag_manager.h',
59 'cocoa/apps_collection_view_drag_manager.mm',
60 'cocoa/apps_grid_controller.h',
61 'cocoa/apps_grid_controller.mm',
62 'cocoa/apps_grid_view_item.h',
63 'cocoa/apps_grid_view_item.mm',
64 'cocoa/apps_pagination_model_observer.h',
65 'cocoa/apps_search_box_controller.h',
66 'cocoa/apps_search_box_controller.mm',
67 'cocoa/apps_search_results_controller.h',
68 'cocoa/apps_search_results_controller.mm',
69 'cocoa/apps_search_results_model_bridge.h',
70 'cocoa/apps_search_results_model_bridge.mm',
71 'cocoa/item_drag_controller.h',
72 'cocoa/item_drag_controller.mm',
73 'cocoa/scroll_view_with_no_scrollbars.h',
74 'cocoa/scroll_view_with_no_scrollbars.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/speech_view.cc',
136 'views/speech_view.h',
137 'views/start_page_view.cc',
138 'views/start_page_view.h',
139 'views/tile_item_view.cc',
140 'views/tile_item_view.h',
141 'views/top_icon_animation_view.cc',
142 'views/top_icon_animation_view.h',
147 '../aura/aura.gyp:aura',
151 ['toolkit_views==1', {
153 '../events/events.gyp:events',
154 '../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 # GN version: //ui/app_list:test_support
181 'target_name': 'app_list_test_support',
182 'type': 'static_library',
184 '../../base/base.gyp:base',
185 '../gfx/gfx.gyp:gfx',
186 '../gfx/gfx.gyp:gfx_geometry',
187 '../resources/ui_resources.gyp:ui_resources',
191 # Note: sources list duplicated in GN build.
192 'test/app_list_test_model.cc',
193 'test/app_list_test_model.h',
194 'test/app_list_test_view_delegate.cc',
195 'test/app_list_test_view_delegate.h',
199 # GN version: //ui/app_list:app_list_unittests
200 'target_name': 'app_list_unittests',
201 'type': 'executable',
203 '../../base/base.gyp:base',
204 '../../base/base.gyp:test_support_base',
205 '../../skia/skia.gyp:skia',
206 '../../testing/gtest.gyp:gtest',
207 '../base/ui_base.gyp:ui_base',
208 '../compositor/compositor.gyp:compositor',
209 '../resources/ui_resources.gyp:ui_resources',
210 '../resources/ui_resources.gyp:ui_test_pak',
212 'app_list_test_support',
215 # Note: sources list duplicated in GN build.
216 'app_list_item_list_unittest.cc',
217 'app_list_model_unittest.cc',
218 'pagination_model_unittest.cc',
219 'cocoa/app_list_view_controller_unittest.mm',
220 'cocoa/app_list_window_controller_unittest.mm',
221 'cocoa/apps_grid_controller_unittest.mm',
222 'cocoa/apps_search_box_controller_unittest.mm',
223 'cocoa/apps_search_results_controller_unittest.mm',
224 'cocoa/test/apps_grid_controller_test_helper.h',
225 'cocoa/test/apps_grid_controller_test_helper.mm',
226 'test/run_all_unittests.cc',
227 'views/app_list_main_view_unittest.cc',
228 'views/app_list_view_unittest.cc',
229 'views/apps_grid_view_unittest.cc',
230 'views/folder_header_view_unittest.cc',
231 'views/search_box_view_unittest.cc',
232 'views/search_result_list_view_unittest.cc',
233 'views/speech_view_unittest.cc',
234 'views/test/apps_grid_view_test_api.cc',
235 'views/test/apps_grid_view_test_api.h',
238 ['toolkit_views==1', {
240 '../views/views.gyp:views',
241 '../views/views.gyp:views_test_support',
243 }, { # toolkit_views==0
245 ['exclude', 'views/'],
250 '../events/events.gyp:events_test_support',
251 '../gfx/gfx.gyp:gfx_test_support',
254 ['component=="static_library"', {
255 # Needed to link to Obj-C static libraries.
256 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
261 ['exclude', 'cocoa/'],
264 # See http://crbug.com/162998#c4 for why this is needed.
265 ['OS=="linux" and use_allocator!="none"', {
267 '../../base/allocator/allocator.gyp:allocator',
270 ['OS=="win" and win_use_allocator_shim==1', {
272 '../../base/allocator/allocator.gyp:allocator',
276 # Disable c4267 warnings until we fix size_t to int truncations.
277 'msvs_disabled_warnings': [ 4267, ],
281 ['toolkit_views==1', {
284 'target_name': 'app_list_demo',
285 'type': 'executable',
287 'demo/app_list_demo_views.cc',
290 '../../base/base.gyp:base',
291 '../../content/content.gyp:content',
292 '../../content/content.gyp:content_browser',
293 '../../skia/skia.gyp:skia',
294 '../../url/url.gyp:url_lib',
295 '../base/ui_base.gyp:ui_base',
296 '../events/events.gyp:events',
297 '../resources/ui_resources.gyp:ui_resources',
298 '../resources/ui_resources.gyp:ui_test_pak',
299 '../views/controls/webview/webview.gyp:webview',
300 '../views/views.gyp:views',
301 '../views_content_client/views_content_client.gyp:views_content_client',
303 'app_list_test_support',
309 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
313 '../../sandbox/sandbox.gyp:sandbox',
314 '../../content/content.gyp:content_startup_helper_win',
320 }], # toolkit_views==1