summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@78cadc50-ecff-11dd-a971-7dbc132099af>2009-02-25 18:20:24 +0000
committermark@chromium.org <mark@chromium.org@78cadc50-ecff-11dd-a971-7dbc132099af>2009-02-25 18:20:24 +0000
commit6d246822bc38b8fb10f1b7b1e583e47f4babf765 (patch)
tree9e38d5293d004e352282b012519c2b3479b35ffd /samples
parent66eaa5dfc80f1d2f10262f402200656949fb73da (diff)
downloadgyp-6d246822bc38b8fb10f1b7b1e583e47f4babf765.tar.gz
Add "postbuilds" section. Use this to support the "strip if needed" step in
the Chromium Mac build after linking applications and executables. git-svn-id: http://gyp.googlecode.com/svn/trunk@316 78cadc50-ecff-11dd-a971-7dbc132099af
Diffstat (limited to 'samples')
-rw-r--r--samples/common.gypi14
1 files changed, 14 insertions, 0 deletions
diff --git a/samples/common.gypi b/samples/common.gypi
index 63e751b9..e9fcd2eb 100644
--- a/samples/common.gypi
+++ b/samples/common.gypi
@@ -90,6 +90,20 @@
['_type!="static_library"', {
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
}],
+ ['_type=="application" or _type=="executable"', {
+ 'postbuilds': [
+ {
+ 'variables': {
+ # Define strip_from_xcode in a variable ending in _path so
+ # that gyp understands it's a path and performs proper
+ # relativization during dict merging.
+ 'strip_from_xcode_path': 'mac/strip_from_xcode',
+ },
+ 'postbuild_name': 'Strip If Needed',
+ 'action': ['<(strip_from_xcode_path)'],
+ },
+ ],
+ }],
],
},
}],