Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Side by Side Diff: content/content_shell.gypi

Issue 9513006: First pass at content shell for the Mac. Doesn't work yet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only, no code change Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/tools/build/mac/verify_no_objc.sh ('k') | content/shell/mac/English.lproj/MainMenu.xib » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': {
7 'content_shell_product_name': 'Content Shell',
8 },
6 'targets': [ 9 'targets': [
7 { 10 {
8 'target_name': 'content_shell_lib', 11 'target_name': 'content_shell_lib',
9 'type': 'static_library', 12 'type': 'static_library',
10 'defines!': ['CONTENT_IMPLEMENTATION'], 13 'defines!': ['CONTENT_IMPLEMENTATION'],
11 'variables': { 14 'variables': {
12 'chromium_code': 1, 15 'chromium_code': 1,
13 }, 16 },
14 'dependencies': [ 17 'dependencies': [
15 'content_app', 18 'content_app',
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 ], 110 ],
108 'configurations': { 111 'configurations': {
109 'Debug_Base': { 112 'Debug_Base': {
110 'msvs_settings': { 113 'msvs_settings': {
111 'VCLinkerTool': { 114 'VCLinkerTool': {
112 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 115 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
113 }, 116 },
114 }, 117 },
115 }, 118 },
116 }, 119 },
117 }], 120 }], # OS=="win"
118 ], 121 ],
119 }, 122 },
120 { 123 {
121 'target_name': 'content_shell_resources', 124 'target_name': 'content_shell_resources',
122 'type': 'none', 125 'type': 'none',
123 'variables': { 126 'variables': {
124 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', 127 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
125 }, 128 },
126 'actions': [ 129 'actions': [
127 { 130 {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 '<(PRODUCT_DIR)/content_shell.pak', 190 '<(PRODUCT_DIR)/content_shell.pak',
188 ], 191 ],
189 'action': ['python', '<(repack_path)', '<@(_outputs)', 192 'action': ['python', '<(repack_path)', '<@(_outputs)',
190 '<@(pak_inputs)'], 193 '<@(pak_inputs)'],
191 }, 194 },
192 ], 195 ],
193 }, 196 },
194 { 197 {
195 'target_name': 'content_shell', 198 'target_name': 'content_shell',
196 'type': 'executable', 199 'type': 'executable',
200 'mac_bundle': 1,
197 'defines!': ['CONTENT_IMPLEMENTATION'], 201 'defines!': ['CONTENT_IMPLEMENTATION'],
198 'variables': { 202 'variables': {
199 'chromium_code': 1, 203 'chromium_code': 1,
200 }, 204 },
201 'dependencies': [ 205 'dependencies': [
202 'content_shell_lib', 206 'content_shell_lib',
203 'content_shell_pak', 207 'content_shell_pak',
204 ], 208 ],
205 'include_dirs': [ 209 'include_dirs': [
206 '..', 210 '..',
207 ], 211 ],
208 'sources': [ 212 'sources': [
209 'app/startup_helper_win.cc', 213 'app/startup_helper_win.cc',
210 'shell/shell_main.cc', 214 'shell/shell_main.cc',
211 ], 215 ],
216 'mac_bundle_resources': [
217 'shell/mac/app.icns',
218 'shell/mac/app-Info.plist',
219 ],
220 # TODO(mark): Come up with a fancier way to do this. It should only
221 # be necessary to list app-Info.plist once, not the three times it is
222 # listed here.
223 'mac_bundle_resources!': [
224 'shell/mac/app-Info.plist',
225 ],
226 'xcode_settings': {
227 'INFOPLIST_FILE': 'shell/mac/app-Info.plist',
228 },
212 'msvs_settings': { 229 'msvs_settings': {
213 'VCLinkerTool': { 230 'VCLinkerTool': {
214 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS 231 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
215 }, 232 },
216 }, 233 },
217 'conditions': [ 234 'conditions': [
218 ['OS=="win" and win_use_allocator_shim==1', { 235 ['OS=="win" and win_use_allocator_shim==1', {
219 'dependencies': [ 236 'dependencies': [
220 '../base/allocator/allocator.gyp:allocator', 237 '../base/allocator/allocator.gyp:allocator',
221 ], 238 ],
222 }], 239 }],
223 ['OS=="win"', { 240 ['OS=="win"', {
224 'configurations': { 241 'configurations': {
225 'Debug_Base': { 242 'Debug_Base': {
226 'msvs_settings': { 243 'msvs_settings': {
227 'VCLinkerTool': { 244 'VCLinkerTool': {
228 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', 245 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
229 }, 246 },
230 }, 247 },
231 }, 248 },
232 }, 249 },
233 }], 250 }], # OS=="win"
234 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', { 251 ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', {
235 'dependencies': [ 252 'dependencies': [
236 '../sandbox/sandbox.gyp:sandbox', 253 '../sandbox/sandbox.gyp:sandbox',
237 ], 254 ],
238 }], 255 }], # OS=="win" or (toolkit_uses_gtk == 1 and selinux == 0)
239 ['toolkit_uses_gtk == 1', { 256 ['toolkit_uses_gtk == 1', {
240 'dependencies': [ 257 'dependencies': [
241 '<(DEPTH)/build/linux/system.gyp:gtk', 258 '<(DEPTH)/build/linux/system.gyp:gtk',
242 ], 259 ],
243 }], 260 }], # toolkit_uses_gtk
261 ['OS=="mac"', {
262 'product_name': '<(content_shell_product_name)',
263 'dependencies!': [
264 'content_shell_lib',
265 ],
266 'dependencies': [
267 'content_shell_framework',
268 ],
269 'postbuilds': [
270 {
271 'postbuild_name': 'Copy <(content_shell_product_name) Framework.fr amework',
272 'action': [
273 '../build/mac/copy_framework_unversioned.sh',
274 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.f ramework',
275 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
276 ],
277 },
278 {
279 'postbuild_name': 'Fix Framework Link',
280 'action': [
281 'install_name_tool',
282 '-change',
283 '/Library/Frameworks/<(content_shell_product_name) Framework.fra mework/Versions/A/<(content_shell_product_name) Framework',
284 '@executable_path/../Frameworks/<(content_shell_product_name) Fr amework.framework/<(content_shell_product_name) Framework',
285 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
286 ],
287 },
288 {
289 # Modify the Info.plist as needed.
290 'postbuild_name': 'Tweak Info.plist',
291 'action': ['../build/mac/tweak_info_plist.py',
292 '-s1',
293 'unused branding',
294 'unused bundle-id'],
295 },
296 {
297 # Make sure there isn't any Objective-C in the shell's
298 # executable.
299 'postbuild_name': 'Verify No Objective-C',
300 'action': [
301 '../build/mac/verify_no_objc.sh',
302 ],
303 },
304 ],
305 }], # OS=="mac"
244 ], 306 ],
245 }, 307 },
246 ], 308 ],
309 'conditions': [
310 ['OS=="mac"', {
311 'targets': [
312 {
313 'target_name': 'content_shell_framework',
314 'type': 'shared_library',
315 'product_name': '<(content_shell_product_name) Framework',
316 'mac_bundle': 1,
317 'mac_bundle_resources': [
318 'shell/mac/English.lproj/MainMenu.xib',
319 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
320 ],
321 'dependencies': [
322 'content_shell_lib',
323 ],
324 'include_dirs': [
325 '..',
326 ],
327 'sources': [
328 'shell/shell_content_main.cc',
329 'shell/shell_content_main.h',
330 ],
331 },
332 ],
333 }], # OS=="mac"
334 ],
247 } 335 }
OLDNEW
« no previous file with comments | « chrome/tools/build/mac/verify_no_objc.sh ('k') | content/shell/mac/English.lproj/MainMenu.xib » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698