OLD | NEW |
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': { | 6 'variables': { |
7 'content_shell_product_name': 'Content Shell', | 7 'content_shell_product_name': 'Content Shell', |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 'shell/layout_test_controller_bindings.h', | 50 'shell/layout_test_controller_bindings.h', |
51 'shell/shell.cc', | 51 'shell/shell.cc', |
52 'shell/shell.h', | 52 'shell/shell.h', |
53 'shell/shell_gtk.cc', | 53 'shell/shell_gtk.cc', |
54 'shell/shell_mac.mm', | 54 'shell/shell_mac.mm', |
55 'shell/shell_win.cc', | 55 'shell/shell_win.cc', |
56 'shell/shell_browser_context.cc', | 56 'shell/shell_browser_context.cc', |
57 'shell/shell_browser_context.h', | 57 'shell/shell_browser_context.h', |
58 'shell/shell_browser_main.cc', | 58 'shell/shell_browser_main.cc', |
59 'shell/shell_browser_main.h', | 59 'shell/shell_browser_main.h', |
| 60 'shell/shell_browser_main_mac.mm', |
60 'shell/shell_content_browser_client.cc', | 61 'shell/shell_content_browser_client.cc', |
61 'shell/shell_content_browser_client.h', | 62 'shell/shell_content_browser_client.h', |
62 'shell/shell_content_client.cc', | 63 'shell/shell_content_client.cc', |
63 'shell/shell_content_client.h', | 64 'shell/shell_content_client.h', |
64 'shell/shell_content_plugin_client.cc', | 65 'shell/shell_content_plugin_client.cc', |
65 'shell/shell_content_plugin_client.h', | 66 'shell/shell_content_plugin_client.h', |
66 'shell/shell_content_renderer_client.cc', | 67 'shell/shell_content_renderer_client.cc', |
67 'shell/shell_content_renderer_client.h', | 68 'shell/shell_content_renderer_client.h', |
68 'shell/shell_content_utility_client.cc', | 69 'shell/shell_content_utility_client.cc', |
69 'shell/shell_content_utility_client.h', | 70 'shell/shell_content_utility_client.h', |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 '<(DEPTH)/build/linux/system.gyp:gtk', | 267 '<(DEPTH)/build/linux/system.gyp:gtk', |
267 ], | 268 ], |
268 }], # toolkit_uses_gtk | 269 }], # toolkit_uses_gtk |
269 ['OS=="mac"', { | 270 ['OS=="mac"', { |
270 'product_name': '<(content_shell_product_name)', | 271 'product_name': '<(content_shell_product_name)', |
271 'dependencies!': [ | 272 'dependencies!': [ |
272 'content_shell_lib', | 273 'content_shell_lib', |
273 ], | 274 ], |
274 'dependencies': [ | 275 'dependencies': [ |
275 'content_shell_framework', | 276 'content_shell_framework', |
| 277 'content_shell_helper_app', |
| 278 ], |
| 279 'copies': [ |
| 280 { |
| 281 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/C
ontents/Frameworks', |
| 282 'files': [ |
| 283 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app', |
| 284 ], |
| 285 }, |
276 ], | 286 ], |
277 'postbuilds': [ | 287 'postbuilds': [ |
278 { | 288 { |
279 'postbuild_name': 'Copy <(content_shell_product_name) Framework.fr
amework', | 289 'postbuild_name': 'Copy <(content_shell_product_name) Framework.fr
amework', |
280 'action': [ | 290 'action': [ |
281 '../build/mac/copy_framework_unversioned.sh', | 291 '../build/mac/copy_framework_unversioned.sh', |
282 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.f
ramework', | 292 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.f
ramework', |
283 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', | 293 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', |
284 ], | 294 ], |
285 }, | 295 }, |
286 { | 296 { |
287 'postbuild_name': 'Fix Framework Link', | 297 'postbuild_name': 'Fix Framework Link', |
288 'action': [ | 298 'action': [ |
289 'install_name_tool', | 299 'install_name_tool', |
290 '-change', | 300 '-change', |
291 '/Library/Frameworks/<(content_shell_product_name) Framework.fra
mework/Versions/A/<(content_shell_product_name) Framework', | 301 '/Library/Frameworks/<(content_shell_product_name) Framework.fra
mework/Versions/A/<(content_shell_product_name) Framework', |
292 '@executable_path/../Frameworks/<(content_shell_product_name) Fr
amework.framework/<(content_shell_product_name) Framework', | 302 '@executable_path/../Frameworks/<(content_shell_product_name) Fr
amework.framework/<(content_shell_product_name) Framework', |
293 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' | 303 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
294 ], | 304 ], |
295 }, | 305 }, |
296 { | 306 { |
297 # Modify the Info.plist as needed. | 307 # Modify the Info.plist as needed. |
298 'postbuild_name': 'Tweak Info.plist', | 308 'postbuild_name': 'Tweak Info.plist', |
299 'action': ['../build/mac/tweak_info_plist.py', | 309 'action': ['../build/mac/tweak_info_plist.py', |
300 '--svn=1'], | 310 '--svn=1'], |
301 }, | 311 }, |
302 { | 312 { |
| 313 # This postbuid step is responsible for creating the following |
| 314 # helpers: |
| 315 # |
| 316 # Content Shell Helper EH.app and Content Shell Helper NP.app are |
| 317 # created from Content Shell Helper.app. |
| 318 # |
| 319 # The EH helper is marked for an executable heap. The NP helper |
| 320 # is marked for no PIE (ASLR). |
| 321 'postbuild_name': 'Make More Helpers', |
| 322 'action': [ |
| 323 '../build/mac/make_more_helpers.sh', |
| 324 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks', |
| 325 '<(content_shell_product_name)', |
| 326 ], |
| 327 }, |
| 328 { |
303 # Make sure there isn't any Objective-C in the shell's | 329 # Make sure there isn't any Objective-C in the shell's |
304 # executable. | 330 # executable. |
305 'postbuild_name': 'Verify No Objective-C', | 331 'postbuild_name': 'Verify No Objective-C', |
306 'action': [ | 332 'action': [ |
307 '../build/mac/verify_no_objc.sh', | 333 '../build/mac/verify_no_objc.sh', |
308 ], | 334 ], |
309 }, | 335 }, |
310 ], | 336 ], |
311 }], # OS=="mac" | 337 }], # OS=="mac" |
312 ], | 338 ], |
(...skipping 14 matching lines...) Expand all Loading... |
327 'dependencies': [ | 353 'dependencies': [ |
328 'content_shell_lib', | 354 'content_shell_lib', |
329 ], | 355 ], |
330 'include_dirs': [ | 356 'include_dirs': [ |
331 '..', | 357 '..', |
332 ], | 358 ], |
333 'sources': [ | 359 'sources': [ |
334 'shell/shell_content_main.cc', | 360 'shell/shell_content_main.cc', |
335 'shell/shell_content_main.h', | 361 'shell/shell_content_main.h', |
336 ], | 362 ], |
337 }, | 363 }, # target content_shell_framework |
| 364 { |
| 365 'target_name': 'content_shell_helper_app', |
| 366 'type': 'executable', |
| 367 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 368 'product_name': '<(content_shell_product_name) Helper', |
| 369 'mac_bundle': 1, |
| 370 'dependencies': [ |
| 371 'content_shell_framework', |
| 372 ], |
| 373 'sources': [ |
| 374 'shell/shell_main.cc', |
| 375 'shell/mac/helper-Info.plist', |
| 376 ], |
| 377 # TODO(mark): Come up with a fancier way to do this. It should only |
| 378 # be necessary to list helper-Info.plist once, not the three times it |
| 379 # is listed here. |
| 380 'mac_bundle_resources!': [ |
| 381 'shell/mac/helper-Info.plist', |
| 382 ], |
| 383 # TODO(mark): For now, don't put any resources into this app. Its |
| 384 # resources directory will be a symbolic link to the browser app's |
| 385 # resources directory. |
| 386 'mac_bundle_resources/': [ |
| 387 ['exclude', '.*'], |
| 388 ], |
| 389 'xcode_settings': { |
| 390 'INFOPLIST_FILE': 'shell/mac/helper-Info.plist', |
| 391 }, |
| 392 'postbuilds': [ |
| 393 { |
| 394 # The framework defines its load-time path |
| 395 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable |
| 396 # (chrome). A different relative path needs to be used in |
| 397 # content_shell_helper_app. |
| 398 'postbuild_name': 'Fix Framework Link', |
| 399 'action': [ |
| 400 'install_name_tool', |
| 401 '-change', |
| 402 '/Library/Frameworks/<(content_shell_product_name) Framework.fra
mework/Versions/A/<(content_shell_product_name) Framework', |
| 403 '@executable_path/../../../../Frameworks/<(content_shell_product
_name) Framework.framework/<(content_shell_product_name) Framework', |
| 404 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 405 ], |
| 406 }, |
| 407 { |
| 408 # Modify the Info.plist as needed. The script explains why this |
| 409 # is needed. This is also done in the chrome and chrome_dll |
| 410 # targets. In this case, --breakpad=0, --keystone=0, and --svn=0 |
| 411 # are used because Breakpad, Keystone, and Subversion keys are |
| 412 # never placed into the helper. |
| 413 'postbuild_name': 'Tweak Info.plist', |
| 414 'action': ['../build/mac/tweak_info_plist.py', |
| 415 '--breakpad=0', |
| 416 '--keystone=0', |
| 417 '--svn=0'], |
| 418 }, |
| 419 { |
| 420 # Make sure there isn't any Objective-C in the helper app's |
| 421 # executable. |
| 422 'postbuild_name': 'Verify No Objective-C', |
| 423 'action': [ |
| 424 '../build/mac/verify_no_objc.sh', |
| 425 ], |
| 426 }, |
| 427 ], |
| 428 }, # target content_shell_helper_app |
338 ], | 429 ], |
339 }], # OS=="mac" | 430 }], # OS=="mac" |
340 ], | 431 ], |
341 } | 432 } |
OLD | NEW |