cc: Reset resource update controller on closing of layer tree host
[chromium-blink-merge.git] / apps / apps.gypi
blob74ff723a148a551e0076ca3d685a1a86915b97c6
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:api',
19         '../skia/skia.gyp:skia',
20       ],
21       'include_dirs': [
22         '<(INTERMEDIATE_DIR)',
23         '<(grit_out_dir)',
24       ],
25       'sources': [
26         'app_lifetime_monitor.cc',
27         'app_lifetime_monitor.h',
28         'app_lifetime_monitor_factory.cc',
29         'app_lifetime_monitor_factory.h',
30         'app_load_service.cc',
31         'app_load_service.h',
32         'app_load_service_factory.cc',
33         'app_load_service_factory.h',
34         'app_restore_service.cc',
35         'app_restore_service.h',
36         'app_restore_service_factory.cc',
37         'app_restore_service_factory.h',
38         'app_shim/app_shim_handler_mac.cc',
39         'app_shim/app_shim_handler_mac.h',
40         'app_shim/app_shim_host_mac.cc',
41         'app_shim/app_shim_host_mac.h',
42         'app_shim/app_shim_host_manager_mac.h',
43         'app_shim/app_shim_host_manager_mac.mm',
44         'app_shim/app_shim_mac.cc',
45         'app_shim/app_shim_mac.h',
46         'app_shim/chrome_main_app_mode_mac.mm',
47         'app_shim/extension_app_shim_handler_mac.cc',
48         'app_shim/extension_app_shim_handler_mac.h',
49         'app_window_contents.cc',
50         'app_window_contents.h',
51         'apps_client.cc',
52         'apps_client.h',
53         'launcher.cc',
54         'launcher.h',
55         'metrics_names.h',
56         'native_app_window.h',
57         'pref_names.cc',
58         'pref_names.h',
59         'prefs.cc',
60         'prefs.h',
61         'saved_files_service.cc',
62         'saved_files_service.h',
63         'saved_files_service_factory.cc',
64         'saved_files_service_factory.h',
65         'shell_window.cc',
66         'shell_window.h',
67         'shell_window_geometry_cache.cc',
68         'shell_window_geometry_cache.h',
69         'shell_window_registry.cc',
70         'shell_window_registry.h',
71         'switches.cc',
72         'switches.h',
73       ],
74       'conditions': [
75         ['chromeos==1',
76           {
77             'dependencies': [
78               'browser_chromeos',
79             ]
80           }
81         ],
82         ['enable_extensions==0',
83           {
84             'sources/': [
85               ['exclude', '^apps/'],
86             ],
87           }
88         ],
89       ],
90       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
91       'msvs_disabled_warnings': [ 4267, ],
92     },
93   ],  # targets
94   'conditions': [
95     ['chromeos==1', {
96       'targets': [
97         {
98           'target_name': 'app_shell',
99           'type': 'executable',
100           'defines!': ['CONTENT_IMPLEMENTATION'],
101           'variables': {
102             'chromium_code': 1,
103           },
104           'dependencies': [
105             'apps',
106             '../base/base.gyp:base',
107             '../content/content.gyp:content',
108             '../content/content.gyp:content_shell_lib',
109             '../skia/skia.gyp:skia',
110             '../ui/shell/shell.gyp:shell',
111             '../ui/views/views.gyp:views',
112           ],
113           'include_dirs': [
114             '..',
115           ],
116           'sources': [
117             'shell/app_shell_browser_main_parts.cc',
118             'shell/app_shell_browser_main_parts.h',
119             'shell/app_shell_content_browser_client.cc',
120             'shell/app_shell_content_browser_client.h',
121             'shell/app_shell_main_delegate.cc',
122             'shell/app_shell_main_delegate.h',
123             'shell/app_shell_main.cc',
124             'shell/web_view_window.cc',
125             'shell/web_view_window.cc',
126           ],
127         },
128       ],  # targets
129     }],  # chromeos==1
130   ],  # conditions