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',
26 '../../third_party/icu/icu.gyp:icuuc',
29 'APP_LIST_IMPLEMENTATION',
32 # Note: sources list duplicated in GN build.
33 'app_list_constants.cc',
34 'app_list_constants.h',
36 'app_list_folder_item.cc',
37 'app_list_folder_item.h',
40 'app_list_item_observer.h',
41 'app_list_item_list.cc',
42 'app_list_item_list.h',
43 'app_list_item_list_observer.h',
48 'app_list_model_observer.h',
49 'app_list_switches.cc',
50 'app_list_switches.h',
51 'app_list_view_delegate.cc',
52 'app_list_view_delegate.h',
53 'cocoa/app_list_pager_view.h',
54 'cocoa/app_list_pager_view.mm',
55 'cocoa/app_list_view_controller.h',
56 'cocoa/app_list_view_controller.mm',
57 'cocoa/app_list_window_controller.h',
58 'cocoa/app_list_window_controller.mm',
59 'cocoa/apps_collection_view_drag_manager.h',
60 'cocoa/apps_collection_view_drag_manager.mm',
61 'cocoa/apps_grid_controller.h',
62 'cocoa/apps_grid_controller.mm',
63 'cocoa/apps_grid_view_item.h',
64 'cocoa/apps_grid_view_item.mm',
65 'cocoa/apps_pagination_model_observer.h',
66 'cocoa/apps_search_box_controller.h',
67 'cocoa/apps_search_box_controller.mm',
68 'cocoa/apps_search_results_controller.h',
69 'cocoa/apps_search_results_controller.mm',
70 'cocoa/apps_search_results_model_bridge.h',
71 'cocoa/apps_search_results_model_bridge.mm',
72 'cocoa/item_drag_controller.h',
73 'cocoa/item_drag_controller.mm',
74 'cocoa/scroll_view_with_no_scrollbars.h',
75 'cocoa/scroll_view_with_no_scrollbars.mm',
76 'pagination_controller.cc',
77 'pagination_controller.h',
78 'pagination_model.cc',
80 'pagination_model_observer.h',
81 'search_box_model.cc',
83 'search_box_model_observer.h',
88 'search/term_break_iterator.cc',
89 'search/term_break_iterator.h',
90 'search/tokenized_string.cc',
91 'search/tokenized_string.h',
92 'search/tokenized_string_char_iterator.cc',
93 'search/tokenized_string_char_iterator.h',
94 'search/tokenized_string_match.cc',
95 'search/tokenized_string_match.h',
98 'speech_ui_model_observer.h',
99 'views/apps_container_view.cc',
100 'views/apps_container_view.h',
101 'views/app_list_background.cc',
102 'views/app_list_background.h',
103 'views/app_list_drag_and_drop_host.h',
104 'views/app_list_folder_view.cc',
105 'views/app_list_folder_view.h',
106 'views/app_list_item_view.cc',
107 'views/app_list_item_view.h',
108 'views/app_list_main_view.cc',
109 'views/app_list_main_view.h',
110 'views/app_list_menu_views.cc',
111 'views/app_list_menu_views.h',
112 'views/app_list_view.cc',
113 'views/app_list_view.h',
114 'views/app_list_view_observer.h',
115 'views/apps_grid_view.cc',
116 'views/apps_grid_view.h',
117 'views/apps_grid_view_delegate.h',
118 'views/apps_grid_view_folder_delegate.h',
119 'views/cached_label.cc',
120 'views/cached_label.h',
121 'views/contents_switcher_view.cc',
122 'views/contents_switcher_view.h',
123 'views/contents_view.cc',
124 'views/contents_view.h',
125 'views/folder_background_view.cc',
126 'views/folder_background_view.h',
127 'views/folder_header_view.cc',
128 'views/folder_header_view.h',
129 'views/folder_header_view_delegate.h',
130 'views/page_switcher.cc',
131 'views/page_switcher.h',
132 'views/progress_bar_view.cc',
133 'views/progress_bar_view.h',
134 'views/pulsing_block_view.cc',
135 'views/pulsing_block_view.h',
136 'views/search_box_view.cc',
137 'views/search_box_view.h',
138 'views/search_box_view_delegate.h',
139 'views/search_result_actions_view.cc',
140 'views/search_result_actions_view.h',
141 'views/search_result_list_view.cc',
142 'views/search_result_list_view.h',
143 'views/search_result_list_view_delegate.h',
144 'views/search_result_view.cc',
145 'views/search_result_view.h',
146 'views/speech_view.cc',
147 'views/speech_view.h',
148 'views/start_page_view.cc',
149 'views/start_page_view.h',
150 'views/tile_item_view.cc',
151 'views/tile_item_view.h',
152 'views/top_icon_animation_view.cc',
153 'views/top_icon_animation_view.h',
158 '../aura/aura.gyp:aura',
162 ['toolkit_views==1', {
164 '../events/events.gyp:events',
165 '../views/views.gyp:views',
167 }, { # toolkit_views==0
169 ['exclude', 'views/'],
174 '../../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
178 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
183 ['exclude', 'cocoa/'],
187 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
188 'msvs_disabled_warnings': [ 4267, ],
191 # GN version: //ui/app_list:test_support
192 'target_name': 'app_list_test_support',
193 'type': 'static_library',
195 '../../base/base.gyp:base',
196 '../gfx/gfx.gyp:gfx',
197 '../gfx/gfx.gyp:gfx_geometry',
198 '../resources/ui_resources.gyp:ui_resources',
202 # Note: sources list duplicated in GN build.
203 'test/app_list_test_model.cc',
204 'test/app_list_test_model.h',
205 'test/app_list_test_view_delegate.cc',
206 'test/app_list_test_view_delegate.h',
210 # GN version: //ui/app_list:app_list_unittests
211 'target_name': 'app_list_unittests',
212 'type': 'executable',
214 '../../base/base.gyp:base',
215 '../../base/base.gyp:test_support_base',
216 '../../skia/skia.gyp:skia',
217 '../../testing/gtest.gyp:gtest',
218 '../base/ui_base.gyp:ui_base',
219 '../compositor/compositor.gyp:compositor',
220 '../resources/ui_resources.gyp:ui_resources',
221 '../resources/ui_resources.gyp:ui_test_pak',
223 'app_list_test_support',
226 # Note: sources list duplicated in GN build.
227 'app_list_item_list_unittest.cc',
228 'app_list_model_unittest.cc',
229 'pagination_model_unittest.cc',
230 'cocoa/app_list_view_controller_unittest.mm',
231 'cocoa/app_list_window_controller_unittest.mm',
232 'cocoa/apps_grid_controller_unittest.mm',
233 'cocoa/apps_search_box_controller_unittest.mm',
234 'cocoa/apps_search_results_controller_unittest.mm',
235 'cocoa/test/apps_grid_controller_test_helper.h',
236 'cocoa/test/apps_grid_controller_test_helper.mm',
237 'search/term_break_iterator_unittest.cc',
238 'search/tokenized_string_char_iterator_unittest.cc',
239 'search/tokenized_string_match_unittest.cc',
240 'search/tokenized_string_unittest.cc',
241 'test/run_all_unittests.cc',
242 'views/app_list_main_view_unittest.cc',
243 'views/app_list_view_unittest.cc',
244 'views/apps_grid_view_unittest.cc',
245 'views/folder_header_view_unittest.cc',
246 'views/search_box_view_unittest.cc',
247 'views/search_result_list_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',
253 ['toolkit_views==1', {
255 '../views/views.gyp:views',
256 '../views/views.gyp:views_test_support',
258 }, { # toolkit_views==0
260 ['exclude', 'views/'],
265 '../events/events.gyp:events_test_support',
266 '../gfx/gfx.gyp:gfx_test_support',
269 ['component=="static_library"', {
270 # Needed to link to Obj-C static libraries.
271 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
276 ['exclude', 'cocoa/'],
279 # See http://crbug.com/162998#c4 for why this is needed.
280 ['OS=="linux" and use_allocator!="none"', {
282 '../../base/allocator/allocator.gyp:allocator',
285 ['OS=="win" and win_use_allocator_shim==1', {
287 '../../base/allocator/allocator.gyp:allocator',
291 # Disable c4267 warnings until we fix size_t to int truncations.
292 'msvs_disabled_warnings': [ 4267, ],
296 ['toolkit_views==1', {
299 'target_name': 'app_list_demo',
300 'type': 'executable',
302 'demo/app_list_demo_views.cc',
305 '../../base/base.gyp:base',
306 '../../content/content.gyp:content',
307 '../../content/content.gyp:content_browser',
308 '../../skia/skia.gyp:skia',
309 '../../url/url.gyp:url_lib',
310 '../base/ui_base.gyp:ui_base',
311 '../events/events.gyp:events',
312 '../resources/ui_resources.gyp:ui_resources',
313 '../resources/ui_resources.gyp:ui_test_pak',
314 '../views/controls/webview/webview.gyp:webview',
315 '../views/views.gyp:views',
316 '../views_content_client/views_content_client.gyp:views_content_client',
318 'app_list_test_support',
324 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
328 '../../sandbox/sandbox.gyp:sandbox',
329 '../../content/content.gyp:content_startup_helper_win',
335 }], # toolkit_views==1