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

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: Fix review comments 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@',
Mark Mentovai 2012/02/22 16:43:22 I think you can just move this out one level to be
jeremy 2012/02/23 14:21:13 Done.
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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 '-change', 781 '-change',
780 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework', 782 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework',
781 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework', 783 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework',
782 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' 784 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
783 ], 785 ],
784 }, 786 },
785 { 787 {
786 # Modify the Info.plist as needed. The script explains why this 788 # Modify the Info.plist as needed. The script explains why this
787 # is needed. This is also done in the chrome and chrome_dll 789 # is needed. This is also done in the chrome and chrome_dll
788 # targets. In this case, --breakpad=0, -k0, and -s0 are used 790 # targets. In this case, --breakpad=0, -k0, and -s0 are used
789 # because Breakpad, Keystone, and Subersion keys are never 791 # because Breakpad, Keystone, and Subversion keys are never
790 # placed into the helper. 792 # placed into the helper.
791 'postbuild_name': 'Tweak Info.plist', 793 'postbuild_name': 'Tweak Info.plist',
792 'action': ['<(tweak_info_plist_path)', 794 'action': ['<(tweak_info_plist_path)',
793 '--breakpad=0', 795 '--breakpad=0',
794 '-k0', 796 '-k0',
795 '-s0', 797 '-s0',
796 '<(branding)', 798 '<(branding)',
797 '<(mac_bundle_id)'], 799 '<(mac_bundle_id)'],
798 }, 800 },
799 { 801 {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 'common/mac/app_mode_chrome_locator.h', 841 'common/mac/app_mode_chrome_locator.h',
840 'common/mac/app_mode_chrome_locator.mm', 842 'common/mac/app_mode_chrome_locator.mm',
841 'common/mac/app_mode_common.h', 843 'common/mac/app_mode_common.h',
842 'common/mac/app_mode_common.mm', 844 'common/mac/app_mode_common.mm',
843 ], 845 ],
844 'include_dirs': [ 846 'include_dirs': [
845 '..', 847 '..',
846 ], 848 ],
847 }, # target app_mode_app_support 849 }, # target app_mode_app_support
848 { 850 {
849 # This produces the app mode loader, but not as a bundle. Chromium 851 # This produces the template for app mode loader bundles. It's a
850 # itself is responsible for producing bundles. 852 # template in the sense that parts of it need to be "filled in" by
853 # Chrome before it can be executed.
851 'target_name': 'app_mode_app', 854 'target_name': 'app_mode_app',
852 'type': 'executable', 855 'type': 'executable',
856 'mac_bundle' : 1,
853 'variables': { 'enable_wexit_time_destructors': 1, }, 857 'variables': { 'enable_wexit_time_destructors': 1, },
854 'product_name': '<(mac_product_name) App Mode Loader', 858 'product_name': 'app_mode_loader',
855 'dependencies': [ 859 'dependencies': [
856 'app_mode_app_support', 860 'app_mode_app_support',
861 'infoplist_strings_tool',
857 ], 862 ],
858 'sources': [ 863 'sources': [
859 'app/app_mode_loader_mac.mm', 864 'app/app_mode_loader_mac.mm',
865 'app/app_mode-Info.plist',
Mark Mentovai 2012/02/22 16:43:22 Is this needed here?
860 ], 866 ],
861 'include_dirs': [ 867 'include_dirs': [
862 '..', 868 '..',
863 ], 869 ],
864 'link_settings': { 870 'link_settings': {
865 'libraries': [ 871 'libraries': [
866 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 872 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
867 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 873 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
868 ], 874 ],
869 }, 875 },
876 'mac_bundle_resources!': [
877 'app/app_mode-Info.plist',
878 ],
879 'mac_bundle_resources/': [
880 ['exclude', '.*'],
881 ],
882 'xcode_settings': {
883 'INFOPLIST_FILE': 'app/app_mode-Info.plist',
884 'APP_MODE_APP_BUNDLE_ID': '<(app_mode_app_bundle_id)',
Mark Mentovai 2012/02/22 16:43:22 It would also be reasonable to just write '<(mac_b
jeremy 2012/02/23 14:21:13 Done.
885 },
886 'postbuilds' : [
887 {
888 # Modify the Info.plist as needed. The script explains why this
889 # is needed. This is also done in the chrome and chrome_dll
890 # targets. In this case, --breakpad=0, -k0, and -s0 are used
891 # because Breakpad, Keystone, and Subversion keys are never
892 # placed into the helper.
Mark Mentovai 2012/02/22 16:43:22 Not helper, but app mode loader.
jeremy 2012/02/23 14:21:13 Done.
893 'postbuild_name': 'Tweak Info.plist',
894 'action': ['<(tweak_info_plist_path)',
895 '--breakpad=0',
896 '-k0',
897 '-s0',
898 '<(branding)',
899 '<(mac_bundle_id)'],
900 },
901 ],
870 }, # target app_mode_app 902 }, # target app_mode_app
871 { 903 {
872 # Convenience target to build a disk image. 904 # Convenience target to build a disk image.
873 'target_name': 'build_app_dmg', 905 'target_name': 'build_app_dmg',
874 # Don't place this in the 'all' list; most won't want it. 906 # Don't place this in the 'all' list; most won't want it.
875 # In GYP, booleans are 0/1, not True/False. 907 # In GYP, booleans are 0/1, not True/False.
876 'suppress_wildcard': 1, 908 'suppress_wildcard': 1,
877 'type': 'none', 909 'type': 'none',
878 'dependencies': [ 910 'dependencies': [
879 'chrome', 911 'chrome',
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 'sources': [ 1355 'sources': [
1324 'browser/safe_browsing/signature_util.h', 1356 'browser/safe_browsing/signature_util.h',
1325 'browser/safe_browsing/signature_util_win.cc', 1357 'browser/safe_browsing/signature_util_win.cc',
1326 'tools/safe_browsing/sb_sigutil.cc', 1358 'tools/safe_browsing/sb_sigutil.cc',
1327 ], 1359 ],
1328 }, 1360 },
1329 ]}, # 'targets' 1361 ]}, # 'targets'
1330 ], # OS=="win" 1362 ], # OS=="win"
1331 ], # 'conditions' 1363 ], # 'conditions'
1332 } 1364 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698