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

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: Created 8 years, 10 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'NACL_WINDOWS=0', 79 'NACL_WINDOWS=0',
80 'NACL_LINUX=0', 80 'NACL_LINUX=0',
81 'NACL_OSX=1', 81 'NACL_OSX=1',
82 ], 82 ],
83 'platform_locale_settings_grd': 83 'platform_locale_settings_grd':
84 'app/resources/locale_settings_mac.grd', 84 'app/resources/locale_settings_mac.grd',
85 'conditions': [ 85 'conditions': [
86 ['branding=="Chrome"', { 86 ['branding=="Chrome"', {
87 'mac_bundle_id': 'com.google.Chrome', 87 'mac_bundle_id': 'com.google.Chrome',
88 'mac_creator': 'rimZ', 88 'mac_creator': 'rimZ',
89 'app_mode_app_bundle_id': 'com.google.Chrome.app.@APP_MODE_SHORTCUT_ ID@',
89 # The policy .grd file also needs the bundle id. 90 # The policy .grd file also needs the bundle id.
90 'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'], 91 'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'],
91 }, { # else: branding!="Chrome" 92 }, { # else: branding!="Chrome"
92 'mac_bundle_id': 'org.chromium.Chromium', 93 'mac_bundle_id': 'org.chromium.Chromium',
93 'mac_creator': 'Cr24', 94 'mac_creator': 'Cr24',
95 'app_mode_app_bundle_id': 'com.google.Chromium.app.@APP_MODE_SHORTCU T_ID@',
94 # The policy .grd file also needs the bundle id. 96 # The policy .grd file also needs the bundle id.
95 'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'], 97 'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'],
96 }], # branding 98 }], # branding
97 ], # conditions 99 ], # conditions
98 }], # OS=="mac" 100 }], # OS=="mac"
99 # TODO(mcgrathr): This duplicates native_client/build/common.gypi; 101 # TODO(mcgrathr): This duplicates native_client/build/common.gypi;
100 # we should figure out a way to unify the settings. 102 # we should figure out a way to unify the settings.
101 ['target_arch=="ia32"', { 103 ['target_arch=="ia32"', {
102 'nacl_defines': [ 104 'nacl_defines': [
103 'NACL_TARGET_SUBARCH=32', 105 'NACL_TARGET_SUBARCH=32',
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 '-change', 780 '-change',
779 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework', 781 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework',
780 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework', 782 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework',
781 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' 783 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
782 ], 784 ],
783 }, 785 },
784 { 786 {
785 # Modify the Info.plist as needed. The script explains why this 787 # Modify the Info.plist as needed. The script explains why this
786 # is needed. This is also done in the chrome and chrome_dll 788 # is needed. This is also done in the chrome and chrome_dll
787 # targets. In this case, --breakpad=0, -k0, and -s0 are used 789 # targets. In this case, --breakpad=0, -k0, and -s0 are used
788 # because Breakpad, Keystone, and Subersion keys are never 790 # because Breakpad, Keystone, and Subversion keys are never
789 # placed into the helper. 791 # placed into the helper.
790 'postbuild_name': 'Tweak Info.plist', 792 'postbuild_name': 'Tweak Info.plist',
791 'action': ['<(tweak_info_plist_path)', 793 'action': ['<(tweak_info_plist_path)',
792 '--breakpad=0', 794 '--breakpad=0',
793 '-k0', 795 '-k0',
794 '-s0', 796 '-s0',
795 '<(branding)', 797 '<(branding)',
796 '<(mac_bundle_id)'], 798 '<(mac_bundle_id)'],
797 }, 799 },
798 { 800 {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 'common/mac/app_mode_chrome_locator.h', 840 'common/mac/app_mode_chrome_locator.h',
839 'common/mac/app_mode_chrome_locator.mm', 841 'common/mac/app_mode_chrome_locator.mm',
840 'common/mac/app_mode_common.h', 842 'common/mac/app_mode_common.h',
841 'common/mac/app_mode_common.mm', 843 'common/mac/app_mode_common.mm',
842 ], 844 ],
843 'include_dirs': [ 845 'include_dirs': [
844 '..', 846 '..',
845 ], 847 ],
846 }, # target app_mode_app_support 848 }, # target app_mode_app_support
847 { 849 {
848 # This produces the app mode loader, but not as a bundle. Chromium 850 # This produces the template for app mode loader bundles. It's a
849 # itself is responsible for producing bundles. 851 # template in the sense that parts of it need to be "filled in" by
852 # Chrome before it can be executed.
850 'target_name': 'app_mode_app', 853 'target_name': 'app_mode_app',
851 'type': 'executable', 854 'type': 'executable',
855 'mac_bundle' : 1,
852 'variables': { 'enable_wexit_time_destructors': 1, }, 856 'variables': { 'enable_wexit_time_destructors': 1, },
853 'product_name': '<(mac_product_name) App Mode Loader', 857 'product_name': 'app_mode_loader',
854 'dependencies': [ 858 'dependencies': [
855 'app_mode_app_support', 859 'app_mode_app_support',
860 'infoplist_strings_tool',
856 ], 861 ],
857 'sources': [ 862 'sources': [
858 'app/app_mode_loader_mac.mm', 863 'app/app_mode_loader_mac.mm',
864 'app/app_mode-Info.plist',
859 ], 865 ],
860 'include_dirs': [ 866 'include_dirs': [
861 '..', 867 '..',
862 ], 868 ],
863 'link_settings': { 869 'link_settings': {
864 'libraries': [ 870 'libraries': [
865 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 871 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
866 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 872 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
867 ], 873 ],
868 }, 874 },
875 'mac_bundle_resources!': [
876 'app/app_mode-Info.plist',
877 ],
878 'mac_bundle_resources/': [
879 ['exclude', '.*'],
880 ],
881 'xcode_settings': {
882 'INFOPLIST_FILE': 'app/app_mode-Info.plist',
883 'APP_MODE_APP_BUNDLE_ID': '<(app_mode_app_bundle_id)',
884 },
885 'postbuilds' : [
886 {
887 # Modify the Info.plist as needed. The script explains why this
888 # is needed. This is also done in the chrome and chrome_dll
889 # targets. In this case, --breakpad=0, -k0, and -s0 are used
890 # because Breakpad, Keystone, and Subversion keys are never
891 # placed into the helper.
892 'postbuild_name': 'Tweak Info.plist',
893 'action': ['<(tweak_info_plist_path)',
894 '--breakpad=0',
895 '-k0',
896 '-s0',
897 '<(branding)',
898 '<(mac_bundle_id)'],
899 },
900 ],
869 }, # target app_mode_app 901 }, # target app_mode_app
870 { 902 {
871 # Convenience target to build a disk image. 903 # Convenience target to build a disk image.
872 'target_name': 'build_app_dmg', 904 'target_name': 'build_app_dmg',
873 # Don't place this in the 'all' list; most won't want it. 905 # Don't place this in the 'all' list; most won't want it.
874 # In GYP, booleans are 0/1, not True/False. 906 # In GYP, booleans are 0/1, not True/False.
875 'suppress_wildcard': 1, 907 'suppress_wildcard': 1,
876 'type': 'none', 908 'type': 'none',
877 'dependencies': [ 909 'dependencies': [
878 'chrome', 910 'chrome',
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 'sources': [ 1354 'sources': [
1323 'browser/safe_browsing/signature_util.h', 1355 'browser/safe_browsing/signature_util.h',
1324 'browser/safe_browsing/signature_util_win.cc', 1356 'browser/safe_browsing/signature_util_win.cc',
1325 'tools/safe_browsing/sb_sigutil.cc', 1357 'tools/safe_browsing/sb_sigutil.cc',
1326 ], 1358 ],
1327 }, 1359 },
1328 ]}, # 'targets' 1360 ]}, # 'targets'
1329 ], # OS=="win" 1361 ], # OS=="win"
1330 ], # 'conditions' 1362 ], # 'conditions'
1331 } 1363 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698