Roll src/third_party/WebKit 3aa9dd9:183b2b0 (svn 201777:201778)
[chromium-blink-merge.git] / apps / apps.gypi
blob130cb8cda205bea5a44edbf606f810ce95f2e01e
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       # GN version: //apps
9       'target_name': 'apps',
10       'type': 'static_library',
11       'variables': { 'enable_wexit_time_destructors': 1, },
12       # Since browser and browser_extensions actually depend on each other,
13       # we must omit the dependency from browser_extensions to browser.
14       # However, this means browser_extensions and browser should more or less
15       # have the same dependencies. Once browser_extensions is untangled from
16       # browser, then we can clean up these dependencies.
17       'dependencies': [
18         'browser_extensions',
19         'chrome_resources.gyp:theme_resources',
20         'common/extensions/api/api.gyp:chrome_api',
21         '../skia/skia.gyp:skia',
22       ],
23       'include_dirs': [
24         '<(INTERMEDIATE_DIR)',
25         '<(grit_out_dir)',
26       ],
27       'sources': [
28         # Note: file list duplicated in GN build.
29         'app_lifetime_monitor.cc',
30         'app_lifetime_monitor.h',
31         'app_lifetime_monitor_factory.cc',
32         'app_lifetime_monitor_factory.h',
33         'app_load_service.cc',
34         'app_load_service.h',
35         'app_load_service_factory.cc',
36         'app_load_service_factory.h',
37         'app_restore_service.cc',
38         'app_restore_service.h',
39         'app_restore_service_factory.cc',
40         'app_restore_service_factory.h',
41         'browser_context_keyed_service_factories.cc',
42         'browser_context_keyed_service_factories.h',
43         'custom_launcher_page_contents.cc',
44         'custom_launcher_page_contents.h',
45         'launcher.cc',
46         'launcher.h',
47         'metrics_names.h',
48         'saved_files_service.cc',
49         'saved_files_service.h',
50         'saved_files_service_factory.cc',
51         'saved_files_service_factory.h',
52         'switches.cc',
53         'switches.h',
54         'ui/views/app_window_frame_view.cc',
55         'ui/views/app_window_frame_view.h',
56       ],
57       'conditions': [
58         ['chromeos==1',
59           {
60             'dependencies': [
61               'browser_chromeos',
62             ]
63           }
64         ],
65         ['enable_extensions==0',
66           {
67             'dependencies!': [
68               'browser_extensions',
69               'common/extensions/api/api.gyp:chrome_api',
70             ],
71             'sources/': [
72               ['exclude', '.*'],
73             ],
74           }
75         ],
76         ['toolkit_views==1', {
77           'dependencies': [
78             '../ui/strings/ui_strings.gyp:ui_strings',
79             '../ui/views/views.gyp:views',
80           ],
81         }, {  # toolkit_views==0
82           'sources/': [
83             ['exclude', 'ui/views/'],
84           ],
85         }],
86         ['toolkit_views==1 and enable_extensions==1', {
87           'dependencies': [
88             '../extensions/extensions.gyp:extensions_browser',
89           ],
90         }],
91       ],
92       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
93       'msvs_disabled_warnings': [ 4267, ],
94     },
95   ],  # targets