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.
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.
18 'common/extensions/api/api.gyp:chrome_api',
19 '../skia/skia.gyp:skia',
22 '<(INTERMEDIATE_DIR)',
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',
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',
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',
48 'browser_context_keyed_service_factories.cc',
49 'browser_context_keyed_service_factories.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',
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',
79 ['enable_extensions==0',
82 ['exclude', '^apps/'],
86 ['toolkit_views==1', {
88 '../ui/base/strings/ui_strings.gyp:ui_strings',
89 '../ui/views/views.gyp:views',
91 }, { # toolkit_views==0
93 ['exclude', 'ui/views/'],
97 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
98 'msvs_disabled_warnings': [ 4267, ],
102 ['chromeos==1 or (OS=="linux" and use_aura==1) or (OS=="win" and use_aura==1)', {
105 'target_name': 'app_shell_pak',
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',
121 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
125 'action_name': 'repack_app_shell_pack',
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',
148 '<(PRODUCT_DIR)/app_shell.pak',
150 'action': ['python', '<(repack_path)', '<@(_outputs)',
156 'target_name': 'app_shell_lib',
157 'type': 'static_library',
158 'defines!': ['CONTENT_IMPLEMENTATION'],
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',
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',
213 'target_name': 'app_shell',
214 'type': 'executable',
215 'defines!': ['CONTENT_IMPLEMENTATION'],
227 'shell/app/shell_main.cc',
233 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
238 '../sandbox/sandbox.gyp:sandbox',
244 'target_name': 'apps_browsertests',
245 'type': '<(gtest_target_type)',
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',
259 'HAS_OUT_OF_PROC_TEST_RUNNER',
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',
271 }], # chromeos==1 or linux aura or win aura