Keep Chrome alive while packaged app background pages are running.
[chromium-blink-merge.git] / apps / apps.gypi
blobea177bdef5fb8515a5bcbc9dfaf7ff43df168170
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_keep_alive_service.cc',
27         'app_keep_alive_service.h',
28         'app_keep_alive_service_factory.cc',
29         'app_keep_alive_service_factory.h',
30         'app_lifetime_monitor.cc',
31         'app_lifetime_monitor.h',
32         'app_lifetime_monitor_factory.cc',
33         'app_lifetime_monitor_factory.h',
34         'app_load_service.cc',
35         'app_load_service.h',
36         'app_load_service_factory.cc',
37         'app_load_service_factory.h',
38         'app_restore_service.cc',
39         'app_restore_service.h',
40         'app_restore_service_factory.cc',
41         'app_restore_service_factory.h',
42         'app_shim/app_shim_handler_mac.cc',
43         'app_shim/app_shim_handler_mac.h',
44         'app_shim/app_shim_host_mac.cc',
45         'app_shim/app_shim_host_mac.h',
46         'app_shim/app_shim_host_manager_mac.h',
47         'app_shim/app_shim_host_manager_mac.mm',
48         'app_shim/app_shim_mac.cc',
49         'app_shim/app_shim_mac.h',
50         'app_shim/chrome_main_app_mode_mac.mm',
51         'app_shim/extension_app_shim_handler_mac.cc',
52         'app_shim/extension_app_shim_handler_mac.h',
53         'app_window_contents.cc',
54         'app_window_contents.h',
55         'apps_client.cc',
56         'apps_client.h',
57         'launcher.cc',
58         'launcher.h',
59         'metrics_names.h',
60         'pref_names.cc',
61         'pref_names.h',
62         'prefs.cc',
63         'prefs.h',
64         'saved_files_service.cc',
65         'saved_files_service.h',
66         'saved_files_service_factory.cc',
67         'saved_files_service_factory.h',
68         'shell_window.cc',
69         'shell_window.h',
70         'shell_window_geometry_cache.cc',
71         'shell_window_geometry_cache.h',
72         'shell_window_registry.cc',
73         'shell_window_registry.h',
74         'switches.cc',
75         'switches.h',
76         'ui/native_app_window.h',
77         'ui/views/shell_window_frame_view.cc',
78         'ui/views/shell_window_frame_view.h',
79       ],
80       'conditions': [
81         ['chromeos==1',
82           {
83             'dependencies': [
84               'browser_chromeos',
85             ]
86           }
87         ],
88         ['enable_extensions==0',
89           {
90             'sources/': [
91               ['exclude', '^apps/'],
92             ],
93           }
94         ],
95         ['toolkit_views==1', {
96           'dependencies': [
97             '../ui/base/strings/ui_strings.gyp:ui_strings',
98             '../ui/views/views.gyp:views',
99           ],
100         }, {  # toolkit_views==0
101           'sources/': [
102             ['exclude', 'ui/views/'],
103           ],
104         }],
105       ],
106       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
107       'msvs_disabled_warnings': [ 4267, ],
108     },
109   ],  # targets
110   'conditions': [
111     ['chromeos==1', {
112       'targets': [
113         {
114           'target_name': 'app_shell',
115           'type': 'executable',
116           'defines!': ['CONTENT_IMPLEMENTATION'],
117           'variables': {
118             'chromium_code': 1,
119           },
120           'dependencies': [
121             'apps',
122             '../base/base.gyp:base',
123             '../content/content.gyp:content',
124             '../content/content_shell_and_tests.gyp:content_shell_lib',
125             '../skia/skia.gyp:skia',
126             '../ui/shell/shell.gyp:shell',
127             '../ui/views/views.gyp:views',
128           ],
129           'include_dirs': [
130             '..',
131           ],
132           'sources': [
133             'shell/app_shell_browser_main_parts.cc',
134             'shell/app_shell_browser_main_parts.h',
135             'shell/app_shell_content_browser_client.cc',
136             'shell/app_shell_content_browser_client.h',
137             'shell/app_shell_content_client.cc',
138             'shell/app_shell_content_client.h',
139             'shell/app_shell_main_delegate.cc',
140             'shell/app_shell_main_delegate.h',
141             'shell/app_shell_main.cc',
142             'shell/web_view_window.cc',
143             'shell/web_view_window.cc',
144           ],
145         },
146       ],  # targets
147     }],  # chromeos==1
148   ],  # conditions