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

Side by Side Diff: chrome/chrome.gyp

Issue 334049: Move Mac build tool scripts only used by chrome.gyp from build/mac into chrome/tools/build/mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/app/tweak_mac_lproj_folders ('k') | chrome/tools/build/mac/README.chromium » ('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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 'chromium_code': 1, 7 'chromium_code': 1,
8 8
9 'variables': { 9 'variables': {
10 'version_py_path': 'tools/build/version.py', 10 'version_py_path': 'tools/build/version.py',
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 },], 138 },],
139 ['OS=="linux"', { 139 ['OS=="linux"', {
140 'nacl_defines': [ 140 'nacl_defines': [
141 'NACL_WINDOWS=0', 141 'NACL_WINDOWS=0',
142 'NACL_LINUX=1', 142 'NACL_LINUX=1',
143 'NACL_OSX=0', 143 'NACL_OSX=0',
144 ], 144 ],
145 },], 145 },],
146 ['OS=="mac"', { 146 ['OS=="mac"', {
147 'tweak_info_plist_path': 'tools/build/mac/tweak_info_plist', 147 'tweak_info_plist_path': 'tools/build/mac/tweak_info_plist',
148 'symlink_lprojs_path': 'tools/build/mac/symlink_lprojs',
148 'nacl_defines': [ 149 'nacl_defines': [
149 'NACL_WINDOWS=0', 150 'NACL_WINDOWS=0',
150 'NACL_LINUX=0', 151 'NACL_LINUX=0',
151 'NACL_OSX=1', 152 'NACL_OSX=1',
152 ], 153 ],
153 'conditions': [ 154 'conditions': [
154 ['branding=="Chrome"', { 155 ['branding=="Chrome"', {
155 'mac_bundle_id': 'com.google.Chrome', 156 'mac_bundle_id': 'com.google.Chrome',
156 'mac_creator': 'rimZ', 157 'mac_creator': 'rimZ',
157 }, { # else: branding!="Chrome" 158 }, { # else: branding!="Chrome"
(...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 '$(SDKROOT)/System/Library/Frameworks/SecurityInterface.framework' , 2561 '$(SDKROOT)/System/Library/Frameworks/SecurityInterface.framework' ,
2561 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 2562 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
2562 ], 2563 ],
2563 }, 2564 },
2564 'actions': [ 2565 'actions': [
2565 { 2566 {
2566 # This action is used to extract the localization data from xib 2567 # This action is used to extract the localization data from xib
2567 # files and generate table for the ui localizer from it. 2568 # files and generate table for the ui localizer from it.
2568 'variables': { 2569 'variables': {
2569 'xib_localizer_tool_path': 2570 'xib_localizer_tool_path':
2570 '<(DEPTH)/build/mac/generate_localizer', 2571 'tools/build/mac/generate_localizer',
2571 'xib_files_to_scan': [ 2572 'xib_files_to_scan': [
2572 # The xibs that need localization 2573 # The xibs that need localization
2573 'app/nibs/About.xib', 2574 'app/nibs/About.xib',
2574 'app/nibs/BookmarkBar.xib', 2575 'app/nibs/BookmarkBar.xib',
2575 'app/nibs/BookmarkBubble.xib', 2576 'app/nibs/BookmarkBubble.xib',
2576 'app/nibs/BookmarkEditor.xib', 2577 'app/nibs/BookmarkEditor.xib',
2577 'app/nibs/BookmarkNameFolder.xib', 2578 'app/nibs/BookmarkNameFolder.xib',
2578 'app/nibs/ClearBrowsingData.xib', 2579 'app/nibs/ClearBrowsingData.xib',
2579 'app/nibs/DownloadItem.xib', 2580 'app/nibs/DownloadItem.xib',
2580 'app/nibs/EditSearchEngine.xib', 2581 'app/nibs/EditSearchEngine.xib',
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
3528 # Symbols" must come second because "Strip If Needed" creates 3529 # Symbols" must come second because "Strip If Needed" creates
3529 # a fake .dSYM that dump_syms needs to fake dump. Since 3530 # a fake .dSYM that dump_syms needs to fake dump. Since
3530 # "Strip If Needed" is added in a target_conditions block in 3531 # "Strip If Needed" is added in a target_conditions block in
3531 # common.gypi, "Dump Symbols" needs to be in an (always true) 3532 # common.gypi, "Dump Symbols" needs to be in an (always true)
3532 # target_conditions block. 3533 # target_conditions block.
3533 'target_conditions': [ 3534 'target_conditions': [
3534 ['1 == 1', { 3535 ['1 == 1', {
3535 'postbuilds': [ 3536 'postbuilds': [
3536 { 3537 {
3537 'postbuild_name': 'Dump Symbols', 3538 'postbuild_name': 'Dump Symbols',
3538 'action': ['<(DEPTH)/build/mac/dump_app_syms', 3539 'variables': {
3540 'dump_product_syms_path':
3541 'tools/build/mac/dump_product_syms',
3542 },
3543 'action': ['<(dump_product_syms_path)',
3539 '<(branding)'], 3544 '<(branding)'],
3540 }, 3545 },
3541 ], 3546 ],
3542 }], 3547 }],
3543 ], 3548 ],
3544 }], # mac_breakpad 3549 }], # mac_breakpad
3545 ['mac_keystone==1', { 3550 ['mac_keystone==1', {
3546 'copies': [ 3551 'copies': [
3547 { 3552 {
3548 # Put keystone_install.sh where the packaging system will 3553 # Put keystone_install.sh where the packaging system will
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
3674 # Info.plist. Use -s1 to include Subversion information. 3679 # Info.plist. Use -s1 to include Subversion information.
3675 'postbuild_name': 'Tweak Info.plist', 3680 'postbuild_name': 'Tweak Info.plist',
3676 'action': ['<(tweak_info_plist_path)', 3681 'action': ['<(tweak_info_plist_path)',
3677 '-b0', 3682 '-b0',
3678 '-k0', 3683 '-k0',
3679 '-s1', 3684 '-s1',
3680 '<(branding)', 3685 '<(branding)',
3681 '<(mac_bundle_id)'], 3686 '<(mac_bundle_id)'],
3682 }, 3687 },
3683 { 3688 {
3684 'postbuild_name': 'Tweak Mac lproj folders', 3689 'postbuild_name': 'Make .lproj links',
3685 'action': ['app/tweak_mac_lproj_folders'], 3690 'action': ['<(symlink_lprojs_path)'],
3686 }, 3691 },
3687 { 3692 {
3688 'postbuild_name': 'Clean up old versions', 3693 'postbuild_name': 'Clean up old versions',
3689 'action': [ 3694 'action': [
3690 'tools/build/mac/clean_up_old_versions', 3695 'tools/build/mac/clean_up_old_versions',
3691 '<(version_full)' 3696 '<(version_full)'
3692 ], 3697 ],
3693 }, 3698 },
3694 ], # postbuilds 3699 ], # postbuilds
3695 }, { # else: OS != "mac" 3700 }, { # else: OS != "mac"
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
5392 # good place to store them. 5397 # good place to store them.
5393 'postbuild_name': 'Tweak Info.plist', 5398 'postbuild_name': 'Tweak Info.plist',
5394 'action': ['<(tweak_info_plist_path)', 5399 'action': ['<(tweak_info_plist_path)',
5395 '-b<(mac_breakpad)', 5400 '-b<(mac_breakpad)',
5396 '-k<(mac_keystone)', 5401 '-k<(mac_keystone)',
5397 '-s1', 5402 '-s1',
5398 '<(branding)', 5403 '<(branding)',
5399 '<(mac_bundle_id)'], 5404 '<(mac_bundle_id)'],
5400 }, 5405 },
5401 { 5406 {
5402 'postbuild_name': 'Tweak Mac lproj folders', 5407 'postbuild_name': 'Make .lproj links',
5403 'action': ['app/tweak_mac_lproj_folders'], 5408 'action': ['<(symlink_lprojs_path)'],
5404 }, 5409 },
5405 { 5410 {
5406 'postbuild_name': 'Symlink Libraries', 5411 'postbuild_name': 'Symlink Libraries',
5407 'action': [ 5412 'action': [
5408 'ln', 5413 'ln',
5409 '-fhs', 5414 '-fhs',
5410 'Versions/Current/Libraries', 5415 'Versions/Current/Libraries',
5411 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries' 5416 '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Libraries'
5412 ], 5417 ],
5413 }, 5418 },
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
5617 # placed into the main app. 5622 # placed into the main app.
5618 'postbuild_name': 'Tweak Info.plist', 5623 'postbuild_name': 'Tweak Info.plist',
5619 'action': ['<(tweak_info_plist_path)', 5624 'action': ['<(tweak_info_plist_path)',
5620 '-b0', 5625 '-b0',
5621 '-k0', 5626 '-k0',
5622 '-s0', 5627 '-s0',
5623 '<(branding)', 5628 '<(branding)',
5624 '<(mac_bundle_id)'], 5629 '<(mac_bundle_id)'],
5625 }, 5630 },
5626 { 5631 {
5627 'postbuild_name': 'Tweak Mac lproj folders', 5632 'postbuild_name': 'Make .lproj links',
5628 'action': ['app/tweak_mac_lproj_folders'], 5633 'action': ['<(symlink_lprojs_path)'],
5629 }, 5634 },
5630 ], 5635 ],
5631 'conditions': [ 5636 'conditions': [
5632 ['mac_breakpad==1', { 5637 ['mac_breakpad==1', {
5633 'variables': { 5638 'variables': {
5634 # A real .dSYM is needed for dump_syms to operate on. 5639 # A real .dSYM is needed for dump_syms to operate on.
5635 'mac_real_dsym': 1, 5640 'mac_real_dsym': 1,
5636 }, 5641 },
5637 }], 5642 }],
5638 ], 5643 ],
5639 }, # target helper_app 5644 }, # target helper_app
5640 { 5645 {
5641 # Convenience target to build a disk image. 5646 # Convenience target to build a disk image.
5642 'target_name': 'build_app_dmg', 5647 'target_name': 'build_app_dmg',
5643 # Don't place this in the 'all' list; most won't want it. 5648 # Don't place this in the 'all' list; most won't want it.
5644 # In GYP, booleans are 0/1, not True/False. 5649 # In GYP, booleans are 0/1, not True/False.
5645 'suppress_wildcard': 1, 5650 'suppress_wildcard': 1,
5646 'type': 'none', 5651 'type': 'none',
5647 'dependencies': [ 5652 'dependencies': [
5648 'chrome', 5653 'chrome',
5649 ], 5654 ],
5650 'variables': { 5655 'variables': {
5651 'build_app_dmg_script_path': '<(DEPTH)/build/mac/build_app_dmg', 5656 'build_app_dmg_script_path': 'tools/build/mac/build_app_dmg',
5652 }, 5657 },
5653 'actions': [ 5658 'actions': [
5654 { 5659 {
5655 'inputs': [ 5660 'inputs': [
5656 '<(build_app_dmg_script_path)', 5661 '<(build_app_dmg_script_path)',
5657 '<(PRODUCT_DIR)/<(branding).app', 5662 '<(PRODUCT_DIR)/<(branding).app',
5658 ], 5663 ],
5659 'outputs': [ 5664 'outputs': [
5660 '<(PRODUCT_DIR)/<(branding).dmg', 5665 '<(PRODUCT_DIR)/<(branding).dmg',
5661 ], 5666 ],
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
6960 ], # targets when browser_sync==1 6965 ], # targets when browser_sync==1
6961 }], 6966 }],
6962 ], # 'conditions' 6967 ], # 'conditions'
6963 } 6968 }
6964 6969
6965 # Local Variables: 6970 # Local Variables:
6966 # tab-width:2 6971 # tab-width:2
6967 # indent-tabs-mode:nil 6972 # indent-tabs-mode:nil
6968 # End: 6973 # End:
6969 # vim: set expandtab tabstop=2 shiftwidth=2: 6974 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « chrome/app/tweak_mac_lproj_folders ('k') | chrome/tools/build/mac/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698