Enable the ChaCha20+Poly1305 (kCC12) AEAD algorithm.
[chromium-blink-merge.git] / apps / apps.gypi
blobbead5d86d7c3c5776b05637a6f37bdd033471fb0
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         '../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_window.cc',
39         'app_window.h',
40         'app_window_contents.cc',
41         'app_window_contents.h',
42         'app_window_geometry_cache.cc',
43         'app_window_geometry_cache.h',
44         'app_window_registry.cc',
45         'app_window_registry.h',
46         'apps_client.cc',
47         'apps_client.h',
48         'browser_context_keyed_service_factories.cc',
49         'browser_context_keyed_service_factories.h',
50         'launcher.cc',
51         'launcher.h',
52         'metrics_names.h',
53         'pref_names.cc',
54         'pref_names.h',
55         'prefs.cc',
56         'prefs.h',
57         'saved_files_service.cc',
58         'saved_files_service.h',
59         'saved_files_service_factory.cc',
60         'saved_files_service_factory.h',
61         'size_constraints.cc',
62         'size_constraints.h',
63         'switches.cc',
64         'switches.h',
65         'ui/native_app_window.h',
66         'ui/views/app_window_frame_view.cc',
67         'ui/views/app_window_frame_view.h',
68         'ui/views/native_app_window_views.cc',
69         'ui/views/native_app_window_views.h',
70       ],
71       'conditions': [
72         ['chromeos==1',
73           {
74             'dependencies': [
75               'browser_chromeos',
76             ]
77           }
78         ],
79         ['enable_extensions==0',
80           {
81             'sources/': [
82               ['exclude', '^apps/'],
83             ],
84           }
85         ],
86         ['toolkit_views==1', {
87           'dependencies': [
88             '../ui/base/strings/ui_strings.gyp:ui_strings',
89             '../ui/views/views.gyp:views',
90           ],
91         }, {  # toolkit_views==0
92           'sources/': [
93             ['exclude', 'ui/views/'],
94           ],
95         }],
96       ],
97       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
98       'msvs_disabled_warnings': [ 4267, ],
99     },
100   ],  # targets
101   'conditions': [
102     ['chromeos==1 or (OS=="linux" and use_aura==1) or (OS=="win" and use_aura==1)', {
103       'targets': [
104         {
105           'target_name': 'app_shell_pak',
106           'type': 'none',
107           'dependencies': [
108             # Need extension related resources in common_resources.pak and
109             # renderer_resources_100_percent.pak
110             'chrome_resources.gyp:chrome_resources',
111             # Need app related resources in theme_resources_100_percent.pak
112             'chrome_resources.gyp:theme_resources',
113             # Need dev-tools related resources in shell_resources.pak and
114             # devtools_resources.pak.
115             '../content/content_shell_and_tests.gyp:generate_content_shell_resources',
116             '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
117             '../ui/base/strings/ui_strings.gyp:ui_strings',
118             '../ui/resources/ui_resources.gyp:ui_resources',
119           ],
120           'variables': {
121             'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
122           },
123           'actions': [
124             {
125               'action_name': 'repack_app_shell_pack',
126               'variables': {
127                 'pak_inputs': [
128                   '<(grit_out_dir)/common_resources.pak',
129                   '<(grit_out_dir)/extensions_api_resources.pak',
130                   # TODO(jamescook): extra the extension/app related resources
131                   # from generated_resources_en-US.pak and
132                   # theme_resources_100_percent.pak.
133                   '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_en-US.pak',
134                   '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources_100_percent.pak',
135                   '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_100_percent.pak',
136                   '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
137                   '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
138                   '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
139                   '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
140                   '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
141                 ],
142               },
143               'inputs': [
144                 '<(repack_path)',
145                 '<@(pak_inputs)',
146               ],
147               'outputs': [
148                 '<(PRODUCT_DIR)/app_shell.pak',
149               ],
150               'action': ['python', '<(repack_path)', '<@(_outputs)',
151                          '<@(pak_inputs)'],
152             },
153           ],
154         },
155         {
156           'target_name': 'app_shell_lib',
157           'type': 'static_library',
158           'defines!': ['CONTENT_IMPLEMENTATION'],
159           'variables': {
160             'chromium_code': 1,
161           },
162           'dependencies': [
163             'app_shell_pak',
164             'apps',
165             'common/extensions/api/api.gyp:chrome_api',
166             'test_support_common',
167             '../base/base.gyp:base',
168             '../base/base.gyp:base_prefs_test_support',
169             '../content/content.gyp:content',
170             '../content/content_shell_and_tests.gyp:content_shell_lib',
171             '../extensions/common/api/api.gyp:extensions_api',
172             '../skia/skia.gyp:skia',
173             '../ui/views/views.gyp:views',
174             '../ui/wm/wm.gyp:wm_test_support',
175           ],
176           'include_dirs': [
177             '..',
178           ],
179           'sources': [
180             'shell/app/shell_main_delegate.cc',
181             'shell/app/shell_main_delegate.h',
182             'shell/browser/shell_app_sorting.cc',
183             'shell/browser/shell_app_sorting.h',
184             'shell/browser/shell_app_window_delegate.cc',
185             'shell/browser/shell_app_window_delegate.h',
186             'shell/browser/shell_apps_client.cc',
187             'shell/browser/shell_apps_client.h',
188             'shell/browser/shell_browser_context.cc',
189             'shell/browser/shell_browser_context.h',
190             'shell/browser/shell_browser_main_parts.cc',
191             'shell/browser/shell_browser_main_parts.h',
192             'shell/browser/shell_content_browser_client.cc',
193             'shell/browser/shell_content_browser_client.h',
194             'shell/browser/shell_desktop_controller.cc',
195             'shell/browser/shell_desktop_controller.h',
196             'shell/browser/shell_extension_system.cc',
197             'shell/browser/shell_extension_system.h',
198             'shell/browser/shell_extension_system_factory.cc',
199             'shell/browser/shell_extension_system_factory.h',
200             'shell/browser/shell_extension_web_contents_observer.cc',
201             'shell/browser/shell_extension_web_contents_observer.h',
202             'shell/browser/shell_extensions_browser_client.cc',
203             'shell/browser/shell_extensions_browser_client.h',
204             'shell/common/shell_content_client.cc',
205             'shell/common/shell_content_client.h',
206             'shell/common/shell_extensions_client.cc',
207             'shell/common/shell_extensions_client.h',
208             'shell/renderer/shell_content_renderer_client.cc',
209             'shell/renderer/shell_content_renderer_client.h',
210           ],
211         },
212         {
213           'target_name': 'app_shell',
214           'type': 'executable',
215           'defines!': ['CONTENT_IMPLEMENTATION'],
216           'variables': {
217             'chromium_code': 1,
218           },
219           'dependencies': [
220             'app_shell_lib',
221             'app_shell_pak',
222           ],
223           'include_dirs': [
224             '..',
225           ],
226           'sources': [
227             'shell/app/shell_main.cc',
228           ],
229           'conditions': [
230             ['OS=="win"', {
231               'msvs_settings': {
232                 'VCLinkerTool': {
233                   'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
234                 },
235               },
236               'msvs_large_pdb': 1,
237               'dependencies': [
238                 '../sandbox/sandbox.gyp:sandbox',
239               ],
240             }],
241           ],
242         },
243         {
244           'target_name': 'apps_browsertests',
245           'type': '<(gtest_target_type)',
246           'variables': {
247             'chromium_code': 1,
248           },
249           'dependencies': [
250             'app_shell_lib',
251             # TODO(yoz): find the right deps
252             '../base/base.gyp:test_support_base',
253             '../content/content.gyp:content_app_both',
254             '../content/content_shell_and_tests.gyp:content_browser_test_support',
255             '../content/content_shell_and_tests.gyp:test_support_content',
256             '../testing/gtest.gyp:gtest',
257           ],
258           'defines': [
259             'HAS_OUT_OF_PROC_TEST_RUNNER',
260           ],
261           'sources': [
262             # TODO(yoz): Refactor once we have a second test target.
263             'test/app_shell_test.h',
264             'test/app_shell_test.cc',
265             'test/apps_test_launcher_delegate.cc',
266             'test/apps_test_launcher_delegate.h',
267             'test/apps_tests_main.cc',
268           ],
269         },
270       ],  # targets
271     }],  # chromeos==1 or linux aura or win aura
272   ],  # conditions