diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 13:29:07 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 13:29:07 +0000 |
commit | 27a126d6b700e05534deb0e947f25f342ff3fa42 (patch) | |
tree | d159890130d18ef69e12d4e59846dd673ce3b407 /chrome/chrome.gyp | |
parent | db862f9cf8152f77949a3d896cb7aa87d0916593 (diff) | |
download | chromium_src-27a126d6b700e05534deb0e947f25f342ff3fa42.zip chromium_src-27a126d6b700e05534deb0e947f25f342ff3fa42.tar.gz chromium_src-27a126d6b700e05534deb0e947f25f342ff3fa42.tar.bz2 |
Put a proper info.plist into the framework so we can codesign it.
Update the tweak info.plist script to work on frameworks as well as apps.
Remove the bundle version since the script manages that.
BUG=20503
TEST=The framework should now have an valid info.plist file in it's resources folder.
Review URL: http://codereview.chromium.org/178055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25027 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 1e02c2c..e96870d 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -4696,6 +4696,8 @@ 'mac_bundle': 1, 'xcode_settings': { 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../Frameworks', + 'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)', + 'INFOPLIST_FILE': 'app/framework-Info.plist', }, 'sources': [ 'app/chrome_dll_main.cc', @@ -4704,10 +4706,18 @@ 'app/keystone_glue.h', 'app/keystone_glue.m', ], + # TODO(mark): Come up with a fancier way to do this. It should + # only be necessary to list framework-Info.plist once, not the + # three times it is listed here. + 'mac_bundle_resources': [ + 'app/framework-Info.plist', + ], + 'mac_bundle_resources!': [ + 'app/framework-Info.plist', + ], 'dependencies': [ '../build/util/support/support.gyp:*', ], - # For now, don't put any resources into the framework. Exclude # them all and push them into the bundle resources of the sole # app bundle, the only dependent of this target. @@ -4748,6 +4758,21 @@ 'renderer/renderer.sb', ], }, + 'postbuilds': [ + { + # Modify the Info.plist as needed. The script explains why + # this is needed. This is also done in the chrome target. + # The framework does not need the breakpad, keystone, or + # subversion keys as those are only needed on the main + # or helper app. + 'postbuild_name': 'Tweak Info.plist', + 'action': ['<(DEPTH)/build/mac/tweak_app_infoplist', + '-b0', + '-k0', + '-s0', + '<(branding)'], + }, + ], 'conditions': [ ['mac_breakpad==1', { @@ -4799,8 +4824,8 @@ 'app/helper-Info.plist', ], # TODO(mark): Come up with a fancier way to do this. It should only - # be necessary to list app-Info.plist once, not the three times it is - # listed here. + # be necessary to list helper-Info.plist once, not the three times it + # is listed here. 'mac_bundle_resources!': [ 'app/helper-Info.plist', ], |