blob: fd9cd0b672b2381a62a23ead10ae1d59309e096f [file] [log] [blame]
[email protected]81f30ce2012-01-18 22:10:331# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]5629e0c2011-09-12 22:07:362# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'targets': [
7 {
[email protected]c1f87b22011-10-05 21:59:338 'target_name': 'content_shell_lib',
9 'type': 'static_library',
[email protected]03ff5e52011-09-30 00:28:1410 'defines!': ['CONTENT_IMPLEMENTATION'],
[email protected]9fbd3f862011-09-20 23:31:3411 'variables': {
12 'chromium_code': 1,
13 },
[email protected]5629e0c2011-09-12 22:07:3614 'dependencies': [
15 'content_app',
16 'content_browser',
17 'content_common',
18 'content_gpu',
19 'content_plugin',
20 'content_ppapi_plugin',
21 'content_renderer',
[email protected]ee75b8992012-01-27 07:53:5722 'content_shell_resources',
[email protected]5629e0c2011-09-12 22:07:3623 'content_utility',
24 'content_worker',
[email protected]0faa0a2b2011-11-15 18:03:1425 'content_resources.gyp:content_resources',
[email protected]aa6e79762011-09-29 20:53:5226 '../base/base.gyp:base',
27 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
28 '../build/temp_gyp/googleurl.gyp:googleurl',
29 '../ipc/ipc.gyp:ipc',
30 '../net/net.gyp:net',
[email protected]5629e0c2011-09-12 22:07:3631 '../skia/skia.gyp:skia',
[email protected]97efb8e2011-10-04 17:16:1632 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
[email protected]5629e0c2011-09-12 22:07:3633 '../ui/ui.gyp:ui',
[email protected]12bc28fcb2011-09-21 15:53:5034 '../v8/tools/gyp/v8.gyp:v8',
[email protected]aa6e79762011-09-29 20:53:5235 '../webkit/support/webkit_support.gyp:appcache',
36 '../webkit/support/webkit_support.gyp:database',
37 '../webkit/support/webkit_support.gyp:fileapi',
38 '../webkit/support/webkit_support.gyp:glue',
39 '../webkit/support/webkit_support.gyp:quota',
[email protected]5629e0c2011-09-12 22:07:3640 ],
41 'include_dirs': [
42 '..',
43 ],
44 'sources': [
[email protected]b0f146f2011-09-15 22:14:2545 'browser/tab_contents/tab_contents_view_win.cc',
46 'browser/tab_contents/tab_contents_view_win.h',
[email protected]9fbd3f862011-09-20 23:31:3447 'shell/shell.cc',
48 'shell/shell.h',
49 'shell/shell_gtk.cc',
50 'shell/shell_mac.mm',
51 'shell/shell_win.cc',
[email protected]b0f146f2011-09-15 22:14:2552 'shell/shell_browser_context.cc',
53 'shell/shell_browser_context.h',
[email protected]5629e0c2011-09-12 22:07:3654 'shell/shell_browser_main.cc',
55 'shell/shell_browser_main.h',
56 'shell/shell_content_browser_client.cc',
57 'shell/shell_content_browser_client.h',
58 'shell/shell_content_client.cc',
59 'shell/shell_content_client.h',
60 'shell/shell_content_plugin_client.cc',
61 'shell/shell_content_plugin_client.h',
62 'shell/shell_content_renderer_client.cc',
63 'shell/shell_content_renderer_client.h',
64 'shell/shell_content_utility_client.cc',
65 'shell/shell_content_utility_client.h',
[email protected]ee75b8992012-01-27 07:53:5766 'shell/shell_devtools_delegate.cc',
67 'shell/shell_devtools_delegate.h',
[email protected]98d6f152011-09-29 19:35:5168 'shell/shell_download_manager_delegate.cc',
69 'shell/shell_download_manager_delegate.h',
[email protected]c1f87b22011-10-05 21:59:3370 'shell/shell_main_delegate.cc',
71 'shell/shell_main_delegate.h',
[email protected]31d71b02012-01-26 03:42:3172 'shell/shell_render_view_observer.cc',
73 'shell/shell_render_view_observer.h',
[email protected]c5f1e332011-09-27 01:08:0374 'shell/shell_resource_context.cc',
75 'shell/shell_resource_context.h',
76 'shell/shell_url_request_context_getter.cc',
77 'shell/shell_url_request_context_getter.h',
[email protected]5629e0c2011-09-12 22:07:3678 ],
79 'msvs_settings': {
80 'VCLinkerTool': {
81 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
82 },
83 },
84 'conditions': [
85 ['OS=="win" and win_use_allocator_shim==1', {
86 'dependencies': [
87 '../base/allocator/allocator.gyp:allocator',
88 ],
89 }],
[email protected]9fbd3f862011-09-20 23:31:3490 ['OS=="win"', {
91 'resource_include_dirs': [
92 '<(SHARED_INTERMEDIATE_DIR)/webkit',
93 ],
[email protected]9fbd3f862011-09-20 23:31:3494 'dependencies': [
95 '<(DEPTH)/net/net.gyp:net_resources',
96 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
97 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
98 ],
99 'configurations': {
100 'Debug_Base': {
101 'msvs_settings': {
102 'VCLinkerTool': {
103 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
104 },
105 },
106 },
107 },
108 }],
[email protected]5629e0c2011-09-12 22:07:36109 ],
110 },
[email protected]c1f87b22011-10-05 21:59:33111 {
[email protected]ee75b8992012-01-27 07:53:57112 'target_name': 'content_shell_resources',
113 'type': 'none',
114 'variables': {
115 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
116 },
117 'actions': [
118 {
119 'action_name': 'content_shell_resources',
120 'variables': {
121 'grit_grd_file': 'shell/shell_resources.grd',
122 },
123 'includes': [ '../build/grit_action.gypi' ],
124 },
125 ],
126 'includes': [ '../build/grit_target.gypi' ],
127 'copies': [
128 {
129 'destination': '<(PRODUCT_DIR)',
130 'files': [
131 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
132 ],
133 },
134 ],
135 },
136 {
[email protected]81f30ce2012-01-18 22:10:33137 # We build a minimal set of resources so WebKit in content_shell has
138 # access to necessary resources.
139 'target_name': 'content_shell_pak',
140 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57141 'dependencies': [
142 'browser/debugger/devtools_resources.gyp:devtools_resources',
143 'content_shell_resources',
144 ],
[email protected]81f30ce2012-01-18 22:10:33145 'variables': {
146 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
147 },
148 'actions': [
149 {
150 'action_name': 'repack_content_shell_pack',
151 'variables': {
152 'pak_inputs': [
153 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57154 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33155 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
156 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.pak',
157 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.pak',
[email protected]ee75b8992012-01-27 07:53:57158 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33159 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
160 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
161 ],
162 'conditions': [
163 ['OS != "mac"', {
164 'pak_inputs': [
165 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak',
166 ]
167 }],
168 ],
169 },
170 'inputs': [
171 '<(repack_path)',
172 '<@(pak_inputs)',
173 ],
174 'outputs': [
175 '<(PRODUCT_DIR)/content_shell.pak',
176 ],
177 'action': ['python', '<(repack_path)', '<@(_outputs)',
178 '<@(pak_inputs)'],
179 },
180 ],
181 },
182 {
[email protected]c1f87b22011-10-05 21:59:33183 'target_name': 'content_shell',
184 'type': 'executable',
185 'defines!': ['CONTENT_IMPLEMENTATION'],
186 'variables': {
187 'chromium_code': 1,
188 },
189 'dependencies': [
190 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33191 'content_shell_pak',
[email protected]c1f87b22011-10-05 21:59:33192 ],
193 'include_dirs': [
194 '..',
195 ],
196 'sources': [
[email protected]27315ce42011-10-14 01:25:12197 'app/startup_helper_win.cc',
[email protected]c1f87b22011-10-05 21:59:33198 'shell/shell_main.cc',
199 ],
200 'msvs_settings': {
201 'VCLinkerTool': {
202 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
203 },
204 },
205 'conditions': [
206 ['OS=="win" and win_use_allocator_shim==1', {
207 'dependencies': [
208 '../base/allocator/allocator.gyp:allocator',
209 ],
210 }],
211 ['OS=="win"', {
212 'configurations': {
213 'Debug_Base': {
214 'msvs_settings': {
215 'VCLinkerTool': {
216 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
217 },
218 },
219 },
220 },
221 }],
[email protected]27315ce42011-10-14 01:25:12222 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', {
223 'dependencies': [
224 '../sandbox/sandbox.gyp:sandbox',
225 ],
226 }],
[email protected]398990892012-01-20 03:25:58227 ['toolkit_uses_gtk == 1', {
228 'dependencies': [
229 '<(DEPTH)/build/linux/system.gyp:gtk',
230 ],
231 }],
[email protected]c1f87b22011-10-05 21:59:33232 ],
233 },
[email protected]5629e0c2011-09-12 22:07:36234 ],
235}