Prevent Windows app list from servicing stale synchronous drags.
[chromium-blink-merge.git] / apps / apps.gypi
blob25611b01521c872c1de4f8bbbcd7096e71f72290
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         '../apps/common/api/api.gyp:apps_api',
20         '../skia/skia.gyp:skia',
21       ],
22       'include_dirs': [
23         '<(INTERMEDIATE_DIR)',
24         '<(grit_out_dir)',
25       ],
26       'sources': [
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         'apps_client.cc',
48         'apps_client.h',
49         'browser_context_keyed_service_factories.cc',
50         'browser_context_keyed_service_factories.h',
51         'browser/api/app_runtime/app_runtime_api.cc',
52         'browser/api/app_runtime/app_runtime_api.h',
53         'browser/file_handler_util.cc',
54         'browser/file_handler_util.h',
55         'launcher.cc',
56         'launcher.h',
57         'metrics_names.h',
58         'pref_names.cc',
59         'pref_names.h',
60         'prefs.cc',
61         'prefs.h',
62         'saved_files_service.cc',
63         'saved_files_service.h',
64         'saved_files_service_factory.cc',
65         'saved_files_service_factory.h',
66         'size_constraints.cc',
67         'size_constraints.h',
68         'switches.cc',
69         'switches.h',
70         'ui/native_app_window.h',
71         'ui/views/app_window_frame_view.cc',
72         'ui/views/app_window_frame_view.h',
73         'ui/views/native_app_window_views.cc',
74         'ui/views/native_app_window_views.h',
75         'ui/web_contents_sizer.h',
76       ],
77       'conditions': [
78         ['OS=="mac"', {
79           'sources': [
80             'ui/web_contents_sizer.mm',
81           ],
82         }, {  # OS!=mac
83           'sources': [
84             'ui/web_contents_sizer.cc',
85           ],
86         }],
87         ['chromeos==1',
88           {
89             'dependencies': [
90               'browser_chromeos',
91             ]
92           }
93         ],
94         ['enable_extensions==0',
95           {
96             'sources/': [
97               ['exclude', '^apps/'],
98             ],
99           }
100         ],
101         ['toolkit_views==1', {
102           'dependencies': [
103             '../ui/base/strings/ui_strings.gyp:ui_strings',
104             '../ui/views/views.gyp:views',
105           ],
106         }, {  # toolkit_views==0
107           'sources/': [
108             ['exclude', 'ui/views/'],
109           ],
110         }],
111       ],
112       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
113       'msvs_disabled_warnings': [ 4267, ],
114     },
115   ],  # targets