Fix memory leak in app_list_view_unittest.
[chromium-blink-merge.git] / apps / apps.gypi
blobe6580c53093b4785f9dce5da48595f52c2629246
1 # Copyright 2013 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.
6   'targets': [
7     {
8       'target_name': 'apps',
9       'type': 'static_library',
10       'variables': { 'enable_wexit_time_destructors': 1, },
11       # Since browser and browser_extensions actually depend on each other,
12       # we must omit the dependency from browser_extensions to browser.
13       # However, this means browser_extensions and browser should more or less
14       # have the same dependencies. Once browser_extensions is untangled from
15       # browser, then we can clean up these dependencies.
16       'dependencies': [
17         'browser_extensions',
18         'common/extensions/api/api.gyp:chrome_api',
19         '../skia/skia.gyp:skia',
20       ],
21       'include_dirs': [
22         '<(INTERMEDIATE_DIR)',
23         '<(grit_out_dir)',
24       ],
25       'sources': [
26         'app_delegate.h',
27         'app_lifetime_monitor.cc',
28         'app_lifetime_monitor.h',
29         'app_lifetime_monitor_factory.cc',
30         'app_lifetime_monitor_factory.h',
31         'app_load_service.cc',
32         'app_load_service.h',
33         'app_load_service_factory.cc',
34         'app_load_service_factory.h',
35         'app_restore_service.cc',
36         'app_restore_service.h',
37         'app_restore_service_factory.cc',
38         'app_restore_service_factory.h',
39         'app_window.cc',
40         'app_window.h',
41         'app_window_contents.cc',
42         'app_window_contents.h',
43         'app_window_geometry_cache.cc',
44         'app_window_geometry_cache.h',
45         'app_window_registry.cc',
46         'app_window_registry.h',
47         'app_web_contents_helper.cc',
48         'app_web_contents_helper.h',
49         'browser_context_keyed_service_factories.cc',
50         'browser_context_keyed_service_factories.h',
51         'custom_launcher_page_contents.cc',
52         'custom_launcher_page_contents.h',
53         'launcher.cc',
54         'launcher.h',
55         'metrics_names.h',
56         'pref_names.cc',
57         'pref_names.h',
58         'prefs.cc',
59         'prefs.h',
60         'saved_files_service.cc',
61         'saved_files_service.h',
62         'saved_files_service_factory.cc',
63         'saved_files_service_factory.h',
64         'switches.cc',
65         'switches.h',
66         'ui/apps_client.cc',
67         'ui/apps_client.h',
68         'ui/views/app_window_frame_view.cc',
69         'ui/views/app_window_frame_view.h',
70         'ui/views/native_app_window_views.cc',
71         'ui/views/native_app_window_views.h',
72         'ui/web_contents_sizer.h',
73       ],
74       'conditions': [
75         ['OS=="mac"', {
76           'sources': [
77             'ui/web_contents_sizer.mm',
78           ],
79         }, {  # OS!=mac
80           'sources': [
81             'ui/web_contents_sizer.cc',
82           ],
83         }],
84         ['chromeos==1',
85           {
86             'dependencies': [
87               'browser_chromeos',
88             ]
89           }
90         ],
91         ['enable_extensions==0',
92           {
93             'dependencies!': [
94               'browser_extensions',
95             ],
96             'sources/': [
97               ['exclude', '.*'],
98               ['include', 'ui/web_contents_sizer\.cc$'],
99               ['include', 'ui/web_contents_sizer\.mm$'],
100             ],
101           }
102         ],
103         ['toolkit_views==1', {
104           'dependencies': [
105             '../ui/strings/ui_strings.gyp:ui_strings',
106             '../ui/views/views.gyp:views',
107           ],
108         }, {  # toolkit_views==0
109           'sources/': [
110             ['exclude', 'ui/views/'],
111           ],
112         }],
113       ],
114       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
115       'msvs_disabled_warnings': [ 4267, ],
116     },
117   ],  # targets