Media Galleries API: Add some CHECKs to try to catch and fix a crash.
[chromium-blink-merge.git] / apps / apps.gypi
blobe2b4e7e71261e7eb59dc7692c697ca42a060f21f
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', '.*'],
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