Report errors from ChromiumEnv::GetChildren in Posix.
[chromium-blink-merge.git] / apps / apps.gypi
blobe956c460de82146fc19a37860975d546a5bf798d
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         '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         'shell_window.cc',
65         'shell_window.h',
66         'shell_window_geometry_cache.cc',
67         'shell_window_geometry_cache.h',
68         'shell_window_registry.cc',
69         'shell_window_registry.h',
70         'switches.cc',
71         'switches.h',
72         'ui/native_app_window.h',
73         'ui/views/shell_window_frame_view.cc',
74         'ui/views/shell_window_frame_view.h',
75       ],
76       'conditions': [
77         ['chromeos==1',
78           {
79             'dependencies': [
80               'browser_chromeos',
81             ]
82           }
83         ],
84         ['enable_extensions==0',
85           {
86             'sources/': [
87               ['exclude', '^apps/'],
88             ],
89           }
90         ],
91         ['toolkit_views==1', {
92           'dependencies': [
93             '../ui/base/strings/ui_strings.gyp:ui_strings',
94             '../ui/views/views.gyp:views',
95           ],
96         }, {  # toolkit_views==0
97           'sources/': [
98             ['exclude', 'ui/views/'],
99           ],
100         }],
101       ],
102       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
103       'msvs_disabled_warnings': [ 4267, ],
104     },
105   ],  # targets
106   'conditions': [
107     ['chromeos==1', {
108       'targets': [
109         {
110           'target_name': 'app_shell',
111           'type': 'executable',
112           'defines!': ['CONTENT_IMPLEMENTATION'],
113           'variables': {
114             'chromium_code': 1,
115           },
116           'dependencies': [
117             'apps',
118             '../base/base.gyp:base',
119             '../content/content.gyp:content',
120             '../content/content_shell_and_tests.gyp:content_shell_lib',
121             '../skia/skia.gyp:skia',
122             '../ui/shell/shell.gyp:shell',
123             '../ui/views/views.gyp:views',
124           ],
125           'include_dirs': [
126             '..',
127           ],
128           'sources': [
129             'shell/app_shell_browser_main_parts.cc',
130             'shell/app_shell_browser_main_parts.h',
131             'shell/app_shell_content_browser_client.cc',
132             'shell/app_shell_content_browser_client.h',
133             'shell/app_shell_content_client.cc',
134             'shell/app_shell_content_client.h',
135             'shell/app_shell_main_delegate.cc',
136             'shell/app_shell_main_delegate.h',
137             'shell/app_shell_main.cc',
138             'shell/web_view_window.cc',
139             'shell/web_view_window.cc',
140           ],
141         },
142       ],  # targets
143     }],  # chromeos==1
144   ],  # conditions