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: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',
55 'saved_files_service.cc',
56 'saved_files_service.h',
57 'saved_files_service_factory.cc',
58 'saved_files_service_factory.h',
59 'size_constraints.cc',
63 'ui/native_app_window.h',
64 'ui/views/app_window_frame_view.cc',
65 'ui/views/app_window_frame_view.h',
66 'ui/views/native_app_window_views.cc',
67 'ui/views/native_app_window_views.h',
77 ['enable_extensions==0',
80 ['exclude', '^apps/'],
84 ['toolkit_views==1', {
86 '../ui/base/strings/ui_strings.gyp:ui_strings',
87 '../ui/views/views.gyp:views',
89 }, { # toolkit_views==0
91 ['exclude', 'ui/views/'],
95 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96 'msvs_disabled_warnings': [ 4267, ],
100 ['chromeos==1 or (OS=="linux" and use_aura==1) or (OS=="win" and use_aura==1)', {
103 'target_name': 'app_shell_pak',
106 # Need dev-tools related resources in shell_resources.pak and devtools_resources.pak.
107 '../content/content_shell_and_tests.gyp:generate_content_shell_resources',
108 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
109 # Need features JSON files in common_resources.pak.
110 'chrome_resources.gyp:chrome_resources',
113 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
117 'action_name': 'repack_app_shell_pack',
120 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
121 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
122 '<(grit_out_dir)/common_resources.pak',
123 '<(grit_out_dir)/extensions_api_resources.pak',
131 '<(PRODUCT_DIR)/app_shell.pak',
133 'action': ['python', '<(repack_path)', '<@(_outputs)',
139 'target_name': 'app_shell',
140 'type': 'executable',
141 'defines!': ['CONTENT_IMPLEMENTATION'],
148 'test_support_common',
149 '../base/base.gyp:base',
150 '../base/base.gyp:base_prefs_test_support',
151 '../content/content.gyp:content',
152 '../content/content_shell_and_tests.gyp:content_shell_lib',
153 '../skia/skia.gyp:skia',
154 '../ui/views/views.gyp:views',
155 '../ui/wm/wm.gyp:wm_test_support',
161 'shell/app/shell_main_delegate.cc',
162 'shell/app/shell_main_delegate.h',
163 'shell/app/shell_main.cc',
164 'shell/browser/shell_app_sorting.cc',
165 'shell/browser/shell_app_sorting.h',
166 'shell/browser/shell_app_window_delegate.cc',
167 'shell/browser/shell_app_window_delegate.h',
168 'shell/browser/shell_apps_client.cc',
169 'shell/browser/shell_apps_client.h',
170 'shell/browser/shell_browser_context.cc',
171 'shell/browser/shell_browser_context.h',
172 'shell/browser/shell_browser_main_parts.cc',
173 'shell/browser/shell_browser_main_parts.h',
174 'shell/browser/shell_content_browser_client.cc',
175 'shell/browser/shell_content_browser_client.h',
176 'shell/browser/shell_extension_system.cc',
177 'shell/browser/shell_extension_system.h',
178 'shell/browser/shell_extension_system_factory.cc',
179 'shell/browser/shell_extension_system_factory.h',
180 'shell/browser/shell_extensions_browser_client.cc',
181 'shell/browser/shell_extensions_browser_client.h',
182 'shell/browser/web_view_window.cc',
183 'shell/browser/web_view_window.cc',
184 'shell/common/shell_content_client.cc',
185 'shell/common/shell_content_client.h',
186 'shell/common/shell_extensions_client.cc',
187 'shell/common/shell_extensions_client.h',
188 'shell/renderer/shell_content_renderer_client.cc',
189 'shell/renderer/shell_content_renderer_client.h',
195 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
200 '../sandbox/sandbox.gyp:sandbox',