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

Side by Side Diff: chrome/chrome.gyp

Issue 9416012: Mac: Generate App Mode Loader bundle + cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased against trunk 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/browser/web_applications/web_app_mac_unittest.mm ('k') | chrome/chrome_dll.gypi » ('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 'variables': { 5 'variables': {
6 'chromium_code': 1, 6 'chromium_code': 1,
7 7
8 'variables': { 8 'variables': {
9 'version_py_path': 'tools/build/version.py', 9 'version_py_path': 'tools/build/version.py',
10 'version_path': 'VERSION', 10 'version_path': 'VERSION',
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 '-change', 774 '-change',
775 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework', 775 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework',
776 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework', 776 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework',
777 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' 777 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
778 ], 778 ],
779 }, 779 },
780 { 780 {
781 # Modify the Info.plist as needed. The script explains why this 781 # Modify the Info.plist as needed. The script explains why this
782 # is needed. This is also done in the chrome and chrome_dll 782 # is needed. This is also done in the chrome and chrome_dll
783 # targets. In this case, --breakpad=0, -k0, and -s0 are used 783 # targets. In this case, --breakpad=0, -k0, and -s0 are used
784 # because Breakpad, Keystone, and Subersion keys are never 784 # because Breakpad, Keystone, and Subversion keys are never
785 # placed into the helper. 785 # placed into the helper.
786 'postbuild_name': 'Tweak Info.plist', 786 'postbuild_name': 'Tweak Info.plist',
787 'action': ['<(tweak_info_plist_path)', 787 'action': ['<(tweak_info_plist_path)',
788 '--breakpad=0', 788 '--breakpad=0',
789 '-k0', 789 '-k0',
790 '-s0', 790 '-s0',
791 '<(branding)', 791 '<(branding)',
792 '<(mac_bundle_id)'], 792 '<(mac_bundle_id)'],
793 }, 793 },
794 { 794 {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 'common/mac/app_mode_chrome_locator.h', 834 'common/mac/app_mode_chrome_locator.h',
835 'common/mac/app_mode_chrome_locator.mm', 835 'common/mac/app_mode_chrome_locator.mm',
836 'common/mac/app_mode_common.h', 836 'common/mac/app_mode_common.h',
837 'common/mac/app_mode_common.mm', 837 'common/mac/app_mode_common.mm',
838 ], 838 ],
839 'include_dirs': [ 839 'include_dirs': [
840 '..', 840 '..',
841 ], 841 ],
842 }, # target app_mode_app_support 842 }, # target app_mode_app_support
843 { 843 {
844 # This produces the app mode loader, but not as a bundle. Chromium 844 # This produces the template for app mode loader bundles. It's a
845 # itself is responsible for producing bundles. 845 # template in the sense that parts of it need to be "filled in" by
846 # Chrome before it can be executed.
846 'target_name': 'app_mode_app', 847 'target_name': 'app_mode_app',
847 'type': 'executable', 848 'type': 'executable',
849 'mac_bundle' : 1,
848 'variables': { 'enable_wexit_time_destructors': 1, }, 850 'variables': { 'enable_wexit_time_destructors': 1, },
849 'product_name': '<(mac_product_name) App Mode Loader', 851 'product_name': 'app_mode_loader',
850 'dependencies': [ 852 'dependencies': [
851 'app_mode_app_support', 853 'app_mode_app_support',
854 'infoplist_strings_tool',
852 ], 855 ],
853 'sources': [ 856 'sources': [
854 'app/app_mode_loader_mac.mm', 857 'app/app_mode_loader_mac.mm',
858 'app/app_mode-Info.plist',
855 ], 859 ],
856 'include_dirs': [ 860 'include_dirs': [
857 '..', 861 '..',
858 ], 862 ],
859 'link_settings': { 863 'link_settings': {
860 'libraries': [ 864 'libraries': [
861 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 865 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
862 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 866 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
863 ], 867 ],
864 }, 868 },
869 'mac_bundle_resources!': [
870 'app/app_mode-Info.plist',
871 ],
872 'mac_bundle_resources/': [
873 ['exclude', '.*'],
874 ],
875 'xcode_settings': {
876 'INFOPLIST_FILE': 'app/app_mode-Info.plist',
877 'APP_MODE_APP_BUNDLE_ID': '<(mac_bundle_id).app.@APP_MODE_SHORTCUT_I D@',
878 },
879 'postbuilds' : [
880 {
881 # Modify the Info.plist as needed. The script explains why this
882 # is needed. This is also done in the chrome and chrome_dll
883 # targets. In this case, --breakpad=0, -k0, and -s0 are used
884 # because Breakpad, Keystone, and Subversion keys are never
885 # placed into the app mode loader.
886 'postbuild_name': 'Tweak Info.plist',
887 'action': ['<(tweak_info_plist_path)',
888 '--breakpad=0',
889 '-k0',
890 '-s0',
891 '<(branding)',
892 '<(mac_bundle_id)'],
893 },
894 ],
865 }, # target app_mode_app 895 }, # target app_mode_app
866 { 896 {
867 # Convenience target to build a disk image. 897 # Convenience target to build a disk image.
868 'target_name': 'build_app_dmg', 898 'target_name': 'build_app_dmg',
869 # Don't place this in the 'all' list; most won't want it. 899 # Don't place this in the 'all' list; most won't want it.
870 # In GYP, booleans are 0/1, not True/False. 900 # In GYP, booleans are 0/1, not True/False.
871 'suppress_wildcard': 1, 901 'suppress_wildcard': 1,
872 'type': 'none', 902 'type': 'none',
873 'dependencies': [ 903 'dependencies': [
874 'chrome', 904 'chrome',
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 'sources': [ 1359 'sources': [
1330 'browser/safe_browsing/signature_util.h', 1360 'browser/safe_browsing/signature_util.h',
1331 'browser/safe_browsing/signature_util_win.cc', 1361 'browser/safe_browsing/signature_util_win.cc',
1332 'tools/safe_browsing/sb_sigutil.cc', 1362 'tools/safe_browsing/sb_sigutil.cc',
1333 ], 1363 ],
1334 }, 1364 },
1335 ]}, # 'targets' 1365 ]}, # 'targets'
1336 ], # OS=="win" 1366 ], # OS=="win"
1337 ], # 'conditions' 1367 ], # 'conditions'
1338 } 1368 }
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app_mac_unittest.mm ('k') | chrome/chrome_dll.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698