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 '../../components/components.gyp:keyed_service_core',
19 '../../skia/skia.gyp:skia',
20 '../base/ui_base.gyp:ui_base',
21 '../base/ime/ui_base_ime.gyp:ui_base_ime',
22 '../compositor/compositor.gyp:compositor',
23 '../events/events.gyp:events_base',
25 '../gfx/gfx.gyp:gfx_geometry',
26 '../resources/ui_resources.gyp:ui_resources',
27 '../strings/ui_strings.gyp:ui_strings',
28 '../../third_party/icu/icu.gyp:icuuc',
29 'resources/app_list_resources.gyp:app_list_resources',
32 'APP_LIST_IMPLEMENTATION',
35 # Note: sources list duplicated in GN build.
36 'app_list_constants.cc',
37 'app_list_constants.h',
39 'app_list_folder_item.cc',
40 'app_list_folder_item.h',
43 'app_list_item_list.cc',
44 'app_list_item_list.h',
45 'app_list_item_list_observer.h',
46 'app_list_item_observer.h',
51 'app_list_model_observer.h',
52 'app_list_switches.cc',
53 'app_list_switches.h',
54 'app_list_view_delegate.cc',
55 'app_list_view_delegate.h',
56 'cocoa/app_list_pager_view.h',
57 'cocoa/app_list_pager_view.mm',
58 'cocoa/app_list_view_controller.h',
59 'cocoa/app_list_view_controller.mm',
60 'cocoa/app_list_window_controller.h',
61 'cocoa/app_list_window_controller.mm',
62 'cocoa/apps_collection_view_drag_manager.h',
63 'cocoa/apps_collection_view_drag_manager.mm',
64 'cocoa/apps_grid_controller.h',
65 'cocoa/apps_grid_controller.mm',
66 'cocoa/apps_grid_view_item.h',
67 'cocoa/apps_grid_view_item.mm',
68 'cocoa/apps_pagination_model_observer.h',
69 'cocoa/apps_search_box_controller.h',
70 'cocoa/apps_search_box_controller.mm',
71 'cocoa/apps_search_results_controller.h',
72 'cocoa/apps_search_results_controller.mm',
73 'cocoa/apps_search_results_model_bridge.h',
74 'cocoa/apps_search_results_model_bridge.mm',
75 'cocoa/item_drag_controller.h',
76 'cocoa/item_drag_controller.mm',
77 'cocoa/scroll_view_with_no_scrollbars.h',
78 'cocoa/scroll_view_with_no_scrollbars.mm',
81 'pagination_controller.cc',
82 'pagination_controller.h',
83 'pagination_model.cc',
85 'pagination_model_observer.h',
86 'search/dictionary_data_store.cc',
87 'search/dictionary_data_store.h',
90 'search/history_data.cc',
91 'search/history_data.h',
92 'search/history_data_store.cc',
93 'search/history_data_store.h',
94 'search/history_types.h',
97 'search/term_break_iterator.cc',
98 'search/term_break_iterator.h',
99 'search/tokenized_string.cc',
100 'search/tokenized_string.h',
101 'search/tokenized_string_char_iterator.cc',
102 'search/tokenized_string_char_iterator.h',
103 'search/tokenized_string_match.cc',
104 'search/tokenized_string_match.h',
105 'search_box_model.cc',
106 'search_box_model.h',
107 'search_box_model_observer.h',
108 'search_controller.cc',
109 'search_controller.h',
110 'search_provider.cc',
114 'speech_ui_model.cc',
116 'speech_ui_model_observer.h',
117 'views/all_apps_tile_item_view.cc',
118 'views/all_apps_tile_item_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_page.cc',
131 'views/app_list_page.h',
132 'views/app_list_view.cc',
133 'views/app_list_view.h',
134 'views/app_list_view_observer.h',
135 'views/apps_container_view.cc',
136 'views/apps_container_view.h',
137 'views/apps_grid_view.cc',
138 'views/apps_grid_view.h',
139 'views/apps_grid_view_delegate.h',
140 'views/apps_grid_view_folder_delegate.h',
141 'views/cached_label.cc',
142 'views/cached_label.h',
143 'views/contents_view.cc',
144 'views/contents_view.h',
145 'views/custom_launcher_page_view.cc',
146 'views/custom_launcher_page_view.h',
147 'views/folder_background_view.cc',
148 'views/folder_background_view.h',
149 'views/folder_header_view.cc',
150 'views/folder_header_view.h',
151 'views/folder_header_view_delegate.h',
152 'views/image_shadow_animator.cc',
153 'views/image_shadow_animator.h',
154 'views/page_switcher.cc',
155 'views/page_switcher.h',
156 'views/progress_bar_view.cc',
157 'views/progress_bar_view.h',
158 'views/pulsing_block_view.cc',
159 'views/pulsing_block_view.h',
160 'views/search_box_view.cc',
161 'views/search_box_view.h',
162 'views/search_box_view_delegate.h',
163 'views/search_result_actions_view.cc',
164 'views/search_result_actions_view.h',
165 'views/search_result_container_view.cc',
166 'views/search_result_container_view.h',
167 'views/search_result_list_view.cc',
168 'views/search_result_list_view.h',
169 'views/search_result_list_view_delegate.h',
170 'views/search_result_page_view.cc',
171 'views/search_result_page_view.h',
172 'views/search_result_tile_item_list_view.cc',
173 'views/search_result_tile_item_list_view.h',
174 'views/search_result_tile_item_view.cc',
175 'views/search_result_tile_item_view.h',
176 'views/search_result_view.cc',
177 'views/search_result_view.h',
178 'views/speech_view.cc',
179 'views/speech_view.h',
180 'views/start_page_view.cc',
181 'views/start_page_view.h',
182 'views/tile_item_view.cc',
183 'views/tile_item_view.h',
184 'views/top_icon_animation_view.cc',
185 'views/top_icon_animation_view.h',
190 '../aura/aura.gyp:aura',
194 ['toolkit_views==1', {
196 '../events/events.gyp:events',
197 '../views/views.gyp:views',
199 'export_dependent_settings': [
200 '../views/views.gyp:views',
202 }, { # toolkit_views==0
204 ['exclude', 'views/'],
209 '../../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
213 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
218 ['exclude', 'cocoa/'],
222 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
223 'msvs_disabled_warnings': [ 4267, ],
226 # GN version: //ui/app_list:test_support
227 'target_name': 'app_list_test_support',
228 'type': 'static_library',
230 '../../base/base.gyp:base',
231 '../gfx/gfx.gyp:gfx',
232 '../gfx/gfx.gyp:gfx_geometry',
236 # Note: sources list duplicated in GN build.
237 'test/app_list_test_model.cc',
238 'test/app_list_test_model.h',
239 'test/app_list_test_view_delegate.cc',
240 'test/app_list_test_view_delegate.h',
241 'test/test_search_result.cc',
242 'test/test_search_result.h',
246 # GN version: //ui/app_list:app_list_unittests
247 'target_name': 'app_list_unittests',
248 'type': 'executable',
250 '../../base/base.gyp:base',
251 '../../base/base.gyp:test_support_base',
252 '../../skia/skia.gyp:skia',
253 '../../testing/gtest.gyp:gtest',
254 '../base/ui_base.gyp:ui_base',
255 '../compositor/compositor.gyp:compositor',
256 '../resources/ui_resources.gyp:ui_resources',
257 '../resources/ui_resources.gyp:ui_test_pak',
259 'app_list_test_support',
262 # Note: sources list duplicated in GN build.
263 'app_list_item_list_unittest.cc',
264 'app_list_model_unittest.cc',
265 'cocoa/app_list_view_controller_unittest.mm',
266 'cocoa/app_list_window_controller_unittest.mm',
267 'cocoa/apps_grid_controller_unittest.mm',
268 'cocoa/apps_search_box_controller_unittest.mm',
269 'cocoa/apps_search_results_controller_unittest.mm',
270 'cocoa/test/apps_grid_controller_test_helper.h',
271 'cocoa/test/apps_grid_controller_test_helper.mm',
272 'folder_image_unittest.cc',
273 'pagination_model_unittest.cc',
274 'search/history_data_store_unittest.cc',
275 'search/mixer_unittest.cc',
276 'search/term_break_iterator_unittest.cc',
277 'search/tokenized_string_char_iterator_unittest.cc',
278 'search/tokenized_string_match_unittest.cc',
279 'search/tokenized_string_unittest.cc',
280 'test/run_all_unittests.cc',
281 'views/app_list_main_view_unittest.cc',
282 'views/app_list_view_unittest.cc',
283 'views/apps_grid_view_unittest.cc',
284 'views/folder_header_view_unittest.cc',
285 'views/image_shadow_animator_unittest.cc',
286 'views/search_box_view_unittest.cc',
287 'views/search_result_list_view_unittest.cc',
288 'views/search_result_page_view_unittest.cc',
289 'views/speech_view_unittest.cc',
290 'views/test/apps_grid_view_test_api.cc',
291 'views/test/apps_grid_view_test_api.h',
294 ['toolkit_views==1', {
296 '../views/views.gyp:views',
297 '../views/views.gyp:views_test_support',
299 }, { # toolkit_views==0
301 ['exclude', 'views/'],
306 '../events/events.gyp:events_test_support',
307 '../gfx/gfx.gyp:gfx_test_support',
310 ['component=="static_library"', {
311 # Needed to link to Obj-C static libraries.
312 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
317 ['exclude', 'cocoa/'],
320 # See http://crbug.com/162998#c4 for why this is needed.
321 ['OS=="linux" and use_allocator!="none"', {
323 '../../base/allocator/allocator.gyp:allocator',
326 ['OS=="win" and win_use_allocator_shim==1', {
328 '../../base/allocator/allocator.gyp:allocator',
332 # Disable c4267 warnings until we fix size_t to int truncations.
333 'msvs_disabled_warnings': [ 4267, ],
337 ['toolkit_views==1', {
340 'target_name': 'app_list_demo',
341 'type': 'executable',
343 'demo/app_list_demo_views.cc',
346 '../../base/base.gyp:base',
347 '../../content/content.gyp:content',
348 '../../content/content.gyp:content_browser',
349 '../../skia/skia.gyp:skia',
350 '../../url/url.gyp:url_lib',
351 '../base/ui_base.gyp:ui_base',
352 '../events/events.gyp:events',
353 '../resources/ui_resources.gyp:ui_resources',
354 '../resources/ui_resources.gyp:ui_test_pak',
355 '../views/controls/webview/webview.gyp:webview',
356 '../views/views.gyp:views',
357 '../views_content_client/views_content_client.gyp:views_content_client',
359 'app_list_test_support',
365 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
369 '../../sandbox/sandbox.gyp:sandbox',
370 '../../content/content.gyp:content_startup_helper_win',
373 ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
375 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
381 }], # toolkit_views==1
382 ['test_isolation_mode != "noop"', {
385 'target_name': 'app_list_unittests_run',
388 'app_list_unittests',
391 '../../build/isolate.gypi',
394 'app_list_unittests.isolate',
399 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',