summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 19:44:42 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 19:44:42 +0000
commit36a1abf0163a7c762149eae9dc827ab7ffb309df (patch)
tree35dab79940a83088b013e8969d17888dab6173d3 /build/common.gypi
parent61bd7d155e1ce5a3e14198b6170157faddf336e3 (diff)
downloadchromium_src-36a1abf0163a7c762149eae9dc827ab7ffb309df.zip
chromium_src-36a1abf0163a7c762149eae9dc827ab7ffb309df.tar.gz
chromium_src-36a1abf0163a7c762149eae9dc827ab7ffb309df.tar.bz2
Added a script to remove headers from the target.
Added a default in common.gypi to remove headers from all mac applications that are bundles. Added a var to control the inclusion of keystone to chrome.gyp defaulted on branding and then honor it for the shipping work. Review URL: http://codereview.chromium.org/113652 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16510 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 3219a26..c64efd7 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -354,6 +354,20 @@
['_mac_bundle', {
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
}],
+ ['_type=="executable" and _mac_bundle', {
+ 'postbuilds': [
+ {
+ 'variables': {
+ # Define remove_target_headers in a variable ending in _path
+ # so that gyp understands it's a path and performs proper
+ # relativization during dict merging.
+ 'remove_target_headers_path': 'mac/remove_target_headers',
+ },
+ 'postbuild_name': 'Remove Target Headers',
+ 'action': ['<(remove_target_headers_path)'],
+ },
+ ],
+ }],
['_type=="executable"', {
'postbuilds': [
{