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. 4 5{ 6 'variables': { 7 'chromium_code': 1, 8 }, 9 'targets': [ 10 { 11 'target_name': 'app_list', 12 'type': '<(component)', 13 'dependencies': [ 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 '../compositor/compositor.gyp:compositor', 20 '../gfx/gfx.gyp:gfx', 21 '../resources/ui_resources.gyp:ui_resources', 22 '../ui.gyp:ui', 23 ], 24 'defines': [ 25 'APP_LIST_IMPLEMENTATION', 26 ], 27 'sources': [ 28 'app_list_constants.cc', 29 'app_list_constants.h', 30 'app_list_export.h', 31 'app_list_folder_item.cc', 32 'app_list_folder_item.h', 33 'app_list_item_list.cc', 34 'app_list_item_list.h', 35 'app_list_item_list_observer.h', 36 'app_list_item_model.cc', 37 'app_list_item_model.h', 38 'app_list_item_model_observer.h', 39 'app_list_menu.cc', 40 'app_list_menu.h', 41 'app_list_model.cc', 42 'app_list_model.h', 43 'app_list_model_observer.h', 44 'app_list_switches.cc', 45 'app_list_switches.h', 46 'app_list_view_delegate.cc', 47 'app_list_view_delegate.h', 48 'cocoa/app_list_pager_view.h', 49 'cocoa/app_list_pager_view.mm', 50 'cocoa/app_list_view_controller.h', 51 'cocoa/app_list_view_controller.mm', 52 'cocoa/app_list_window_controller.h', 53 'cocoa/app_list_window_controller.mm', 54 'cocoa/apps_collection_view_drag_manager.h', 55 'cocoa/apps_collection_view_drag_manager.mm', 56 'cocoa/apps_grid_controller.h', 57 'cocoa/apps_grid_controller.mm', 58 'cocoa/apps_grid_view_item.h', 59 'cocoa/apps_grid_view_item.mm', 60 'cocoa/apps_pagination_model_observer.h', 61 'cocoa/apps_search_box_controller.h', 62 'cocoa/apps_search_box_controller.mm', 63 'cocoa/apps_search_results_controller.h', 64 'cocoa/apps_search_results_controller.mm', 65 'cocoa/apps_search_results_model_bridge.h', 66 'cocoa/apps_search_results_model_bridge.mm', 67 'cocoa/item_drag_controller.h', 68 'cocoa/item_drag_controller.mm', 69 'cocoa/scroll_view_with_no_scrollbars.h', 70 'cocoa/scroll_view_with_no_scrollbars.mm', 71 'cocoa/signin_view_controller.h', 72 'cocoa/signin_view_controller.mm', 73 'pagination_model.cc', 74 'pagination_model.h', 75 'pagination_model_observer.h', 76 'search_box_model.cc', 77 'search_box_model.h', 78 'search_box_model_observer.h', 79 'search_result.cc', 80 'search_result.h', 81 'signin_delegate.cc', 82 'signin_delegate.h', 83 'speech_ui_model.cc', 84 'speech_ui_model.h', 85 'speech_ui_model_observer.h', 86 'views/apps_container_view.cc', 87 'views/apps_container_view.h', 88 'views/app_list_background.cc', 89 'views/app_list_background.h', 90 'views/app_list_drag_and_drop_host.h', 91 'views/app_list_folder_view.cc', 92 'views/app_list_folder_view.h', 93 'views/app_list_item_view.cc', 94 'views/app_list_item_view.h', 95 'views/app_list_main_view.cc', 96 'views/app_list_main_view.h', 97 'views/app_list_menu_views.cc', 98 'views/app_list_menu_views.h', 99 'views/app_list_view.cc', 100 'views/app_list_view.h', 101 'views/app_list_view_observer.h', 102 'views/apps_grid_view.cc', 103 'views/apps_grid_view.h', 104 'views/apps_grid_view_delegate.h', 105 'views/cached_label.cc', 106 'views/cached_label.h', 107 'views/contents_view.cc', 108 'views/contents_view.h', 109 'views/folder_header_view.cc', 110 'views/folder_header_view.h', 111 'views/folder_header_view_delegate.h', 112 'views/page_switcher.cc', 113 'views/page_switcher.h', 114 'views/progress_bar_view.cc', 115 'views/progress_bar_view.h', 116 'views/pulsing_block_view.cc', 117 'views/pulsing_block_view.h', 118 'views/search_box_view.cc', 119 'views/search_box_view.h', 120 'views/search_box_view_delegate.h', 121 'views/search_result_actions_view.cc', 122 'views/search_result_actions_view.h', 123 'views/search_result_list_view.cc', 124 'views/search_result_list_view.h', 125 'views/search_result_list_view_delegate.h', 126 'views/search_result_view.cc', 127 'views/search_result_view.h', 128 'views/search_result_view_delegate.h', 129 'views/signin_view.cc', 130 'views/signin_view.h', 131 'views/speech_view.cc', 132 'views/speech_view.h', 133 ], 134 'conditions': [ 135 ['use_aura==1', { 136 'dependencies': [ 137 '../aura/aura.gyp:aura', 138 ], 139 }], 140 ['toolkit_views==1', { 141 'dependencies': [ 142 '../../content/content.gyp:content', 143 '../../content/content.gyp:content_browser', 144 '../events/events.gyp:events', 145 '../views/controls/webview/webview.gyp:webview', 146 '../views/views.gyp:views', 147 ], 148 }, { # toolkit_views==0 149 'sources/': [ 150 ['exclude', 'views/'], 151 ], 152 }], 153 ['OS=="mac"', { 154 'dependencies': [ 155 '../ui.gyp:ui_cocoa_third_party_toolkits', 156 ], 157 'include_dirs': [ 158 '../../third_party/GTM', 159 ], 160 'link_settings': { 161 'libraries': [ 162 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 163 ], 164 }, 165 }, { # OS!="mac" 166 'sources/': [ 167 ['exclude', 'cocoa/'], 168 ], 169 }], 170 ], 171 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 172 'msvs_disabled_warnings': [ 4267, ], 173 }, 174 { 175 'target_name': 'app_list_test_support', 176 'type': 'static_library', 177 'dependencies': [ 178 '../../base/base.gyp:base', 179 '../gfx/gfx.gyp:gfx', 180 'app_list', 181 ], 182 'sources': [ 183 'test/app_list_test_model.cc', 184 'test/app_list_test_model.h', 185 'test/app_list_test_view_delegate.cc', 186 'test/app_list_test_view_delegate.h', 187 ], 188 }, 189 { 190 'target_name': 'app_list_unittests', 191 'type': 'executable', 192 'dependencies': [ 193 '../../base/base.gyp:base', 194 '../../base/base.gyp:test_support_base', 195 # TODO: Remove this dependency. See comment for views_unittests. 196 '../../chrome/chrome_resources.gyp:packed_resources', 197 '../../skia/skia.gyp:skia', 198 '../../testing/gtest.gyp:gtest', 199 '../compositor/compositor.gyp:compositor', 200 '../resources/ui_resources.gyp:ui_resources', 201 '../ui.gyp:ui', 202 '../ui_unittests.gyp:run_ui_unittests', 203 'app_list', 204 'app_list_test_support', 205 ], 206 'sources': [ 207 'app_list_item_list_unittest.cc', 208 'app_list_model_unittest.cc', 209 'pagination_model_unittest.cc', 210 'cocoa/app_list_view_controller_unittest.mm', 211 'cocoa/app_list_window_controller_unittest.mm', 212 'cocoa/apps_grid_controller_unittest.mm', 213 'cocoa/apps_search_box_controller_unittest.mm', 214 'cocoa/apps_search_results_controller_unittest.mm', 215 'cocoa/signin_view_controller_unittest.mm', 216 'cocoa/test/apps_grid_controller_test_helper.h', 217 'cocoa/test/apps_grid_controller_test_helper.mm', 218 'views/app_list_main_view_unittest.cc', 219 'views/apps_grid_view_unittest.cc', 220 'views/test/apps_grid_view_test_api.cc', 221 'views/test/apps_grid_view_test_api.h', 222 ], 223 'conditions': [ 224 ['toolkit_views==1', { 225 'dependencies': [ 226 '../views/views.gyp:views', 227 '../views/views.gyp:views_test_support', 228 '../../content/content.gyp:content', 229 '../../content/content.gyp:content_browser', 230 ], 231 }, { # toolkit_views==0 232 'sources/': [ 233 ['exclude', 'views/'], 234 ] 235 }], 236 ['OS=="mac"', { 237 'dependencies': [ 238 '../ui_unittests.gyp:ui_test_support', 239 ], 240 'conditions': [ 241 ['component=="static_library"', { 242 # Needed to link to Obj-C static libraries. 243 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 244 }], 245 ], 246 }, { # OS!="mac" 247 'sources/': [ 248 ['exclude', 'cocoa/'], 249 ], 250 }], 251 ['desktop_linux == 1 or chromeos == 1 or OS == "ios"', { 252 'dependencies': [ 253 '../base/strings/ui_strings.gyp:ui_unittest_strings', 254 ], 255 }], 256 # See http://crbug.com/162998#c4 for why this is needed. 257 ['OS=="linux" and linux_use_tcmalloc==1', { 258 'dependencies': [ 259 '../../base/allocator/allocator.gyp:allocator', 260 # The following two dependencies provide the missing 261 # symbol HeapProfilerStart in Linux component builds. 262 # They probably can be removed after http://crbug.com/263316 263 '../../webkit/child/webkit_child.gyp:webkit_child', 264 '../../webkit/glue/webkit_glue.gyp:glue', 265 ], 266 }], 267 ['OS=="win" and win_use_allocator_shim==1', { 268 'dependencies': [ 269 '../../base/allocator/allocator.gyp:allocator', 270 ], 271 }], 272 ], 273 # Disable c4267 warnings until we fix size_t to int truncations. 274 'msvs_disabled_warnings': [ 4267, ], 275 }, 276 ], 277} 278