Home | History | Annotate | Download | only in app_list
      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         '../ui.gyp:ui',
     21         '../ui.gyp:ui_resources',
     22       ],
     23       'defines': [
     24         'APP_LIST_IMPLEMENTATION',
     25       ],
     26       'sources': [
     27         'app_list_constants.cc',
     28         'app_list_constants.h',
     29         'app_list_export.h',
     30         'app_list_item_model.cc',
     31         'app_list_item_model.h',
     32         'app_list_item_model_observer.h',
     33         'app_list_menu.cc',
     34         'app_list_menu.h',
     35         'app_list_model.cc',
     36         'app_list_model.h',
     37         'app_list_model_observer.h',
     38         'app_list_view_delegate.h',
     39         'apps_grid_view_delegate.h',
     40         'cocoa/app_list_pager_view.h',
     41         'cocoa/app_list_pager_view.mm',
     42         'cocoa/app_list_view_controller.h',
     43         'cocoa/app_list_view_controller.mm',
     44         'cocoa/app_list_window_controller.h',
     45         'cocoa/app_list_window_controller.mm',
     46         'cocoa/apps_collection_view_drag_manager.h',
     47         'cocoa/apps_collection_view_drag_manager.mm',
     48         'cocoa/apps_grid_controller.h',
     49         'cocoa/apps_grid_controller.mm',
     50         'cocoa/apps_grid_view_item.h',
     51         'cocoa/apps_grid_view_item.mm',
     52         'cocoa/apps_pagination_model_observer.h',
     53         'cocoa/apps_search_box_controller.h',
     54         'cocoa/apps_search_box_controller.mm',
     55         'cocoa/apps_search_results_controller.h',
     56         'cocoa/apps_search_results_controller.mm',
     57         'cocoa/apps_search_results_model_bridge.h',
     58         'cocoa/apps_search_results_model_bridge.mm',
     59         'cocoa/blue_label_button.h',
     60         'cocoa/blue_label_button.mm',
     61         'cocoa/current_user_menu_item_view.h',
     62         'cocoa/current_user_menu_item_view.mm',
     63         'cocoa/item_drag_controller.h',
     64         'cocoa/item_drag_controller.mm',
     65         'cocoa/scroll_view_with_no_scrollbars.h',
     66         'cocoa/scroll_view_with_no_scrollbars.mm',
     67         'cocoa/signin_view_controller.h',
     68         'cocoa/signin_view_controller.mm',
     69         'pagination_model.cc',
     70         'pagination_model.h',
     71         'pagination_model_observer.h',
     72         'search_box_model.cc',
     73         'search_box_model.h',
     74         'search_box_model_observer.h',
     75         'search_box_view_delegate.h',
     76         'search_result.cc',
     77         'search_result.h',
     78         'search_result_list_view_delegate.h',
     79         'signin_delegate.cc',
     80         'signin_delegate.h',
     81         'signin_delegate_observer.h',
     82         'views/app_list_background.cc',
     83         'views/app_list_background.h',
     84         'views/app_list_drag_and_drop_host.h',
     85         'views/app_list_item_view.cc',
     86         'views/app_list_item_view.h',
     87         'views/app_list_main_view.cc',
     88         'views/app_list_main_view.h',
     89         'views/app_list_menu_views.cc',
     90         'views/app_list_menu_views.h',
     91         'views/app_list_view.cc',
     92         'views/app_list_view.h',
     93         'views/apps_grid_view.cc',
     94         'views/apps_grid_view.h',
     95         'views/cached_label.cc',
     96         'views/cached_label.h',
     97         'views/contents_view.cc',
     98         'views/contents_view.h',
     99         'views/page_switcher.cc',
    100         'views/page_switcher.h',
    101         'views/progress_bar_view.cc',
    102         'views/progress_bar_view.h',
    103         'views/pulsing_block_view.cc',
    104         'views/pulsing_block_view.h',
    105         'views/search_box_view.cc',
    106         'views/search_box_view.h',
    107         'views/search_result_actions_view.cc',
    108         'views/search_result_actions_view.h',
    109         'views/search_result_list_view.cc',
    110         'views/search_result_list_view.h',
    111         'views/search_result_view.cc',
    112         'views/search_result_view.h',
    113         'views/search_result_view_delegate.h',
    114         'views/signin_view.cc',
    115         'views/signin_view.h',
    116       ],
    117       'conditions': [
    118         ['use_aura==1', {
    119           'dependencies': [
    120             '../aura/aura.gyp:aura',
    121           ],
    122         }],
    123         ['toolkit_views==1', {
    124           'dependencies': [
    125             '../views/views.gyp:views',
    126           ],
    127         }, {  # toolkit_views==0
    128           'sources/': [
    129             ['exclude', 'views/'],
    130           ],
    131         }],
    132         ['OS=="mac"', {
    133           'dependencies': [
    134             '../ui.gyp:ui_cocoa_third_party_toolkits',
    135           ],
    136           'include_dirs': [
    137             '../../third_party/GTM',
    138           ],
    139           'link_settings': {
    140             'libraries': [
    141               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
    142             ],
    143           },
    144         }, {  # OS!="mac"
    145           'sources/': [
    146             ['exclude', 'cocoa/'],
    147           ],
    148         }],
    149       ],
    150       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
    151       'msvs_disabled_warnings': [ 4267, ],
    152     },
    153     {
    154       'target_name': 'app_list_unittests',
    155       'type': 'executable',
    156       'dependencies': [
    157         '../../base/base.gyp:base',
    158         '../../base/base.gyp:test_support_base',
    159         '../../skia/skia.gyp:skia',
    160         '../../testing/gtest.gyp:gtest',
    161         '../compositor/compositor.gyp:compositor',
    162         '../ui.gyp:run_ui_unittests',
    163         'app_list',
    164       ],
    165       'sources': [
    166         'pagination_model_unittest.cc',
    167         'test/app_list_test_model.cc',
    168         'test/app_list_test_model.h',
    169         'test/app_list_test_view_delegate.cc',
    170         'test/app_list_test_view_delegate.h',
    171         'cocoa/app_list_view_controller_unittest.mm',
    172         'cocoa/app_list_window_controller_unittest.mm',
    173         'cocoa/apps_grid_controller_unittest.mm',
    174         'cocoa/apps_search_box_controller_unittest.mm',
    175         'cocoa/apps_search_results_controller_unittest.mm',
    176         'cocoa/blue_label_button_unittest.mm',
    177         'cocoa/signin_view_controller_unittest.mm',
    178         'cocoa/test/apps_grid_controller_test_helper.h',
    179         'cocoa/test/apps_grid_controller_test_helper.mm',
    180         'views/apps_grid_view_unittest.cc',
    181         'views/test/apps_grid_view_test_api.cc',
    182         'views/test/apps_grid_view_test_api.h',
    183       ],
    184       'conditions': [
    185         ['toolkit_views==1', {
    186           'dependencies': [
    187             '../views/views.gyp:views',
    188             '../views/views.gyp:views_test_support',
    189           ],
    190         }, {  # toolkit_views==0
    191           'sources/': [
    192             ['exclude', 'views/'],
    193           ]
    194         }],
    195         ['OS=="mac"', {
    196           'dependencies': [
    197             '../ui.gyp:ui_test_support',
    198           ],
    199           'conditions': [
    200             ['component=="static_library"', {
    201               # Needed to link to Obj-C static libraries.
    202               'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
    203             }],
    204           ],
    205         }, {  # OS!="mac"
    206           'sources/': [
    207             ['exclude', 'cocoa/'],
    208           ],
    209         }],
    210         # See http://crbug.com/162998#c4 for why this is needed.
    211         ['OS=="linux" and linux_use_tcmalloc==1', {
    212           'dependencies': [
    213             '../../base/allocator/allocator.gyp:allocator',
    214           ],
    215         }],
    216       ],
    217       # Disable c4267 warnings until we fix size_t to int truncations.
    218       'msvs_disabled_warnings': [ 4267, ],
    219     },
    220   ],
    221 }
    222