aboutsummaryrefslogtreecommitdiff
path: root/GTM.xcodeproj
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-03-16 18:15:16 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-03-16 18:15:16 +0000
commitc7ab0fbed82f2a997eea65343a62472a4df77a15 (patch)
tree9dbd993e0c0f57a152c98bca4762bf8ed3987249 /GTM.xcodeproj
parent1c1c70beb8fcba6bbcb3f6ca58215e646dca7888 (diff)
[Author: thomasvl]
Add a simple script to the framework target to remove the gcda files when it builds so we always have up to date coverage data. R=dmaclach DELTA=16 (16 added, 0 deleted, 0 changed)
Diffstat (limited to 'GTM.xcodeproj')
-rw-r--r--GTM.xcodeproj/project.pbxproj16
1 files changed, 16 insertions, 0 deletions
diff --git a/GTM.xcodeproj/project.pbxproj b/GTM.xcodeproj/project.pbxproj
index 83cb77f..ca7d88d 100644
--- a/GTM.xcodeproj/project.pbxproj
+++ b/GTM.xcodeproj/project.pbxproj
@@ -1185,6 +1185,7 @@
F42E08690D199A5B00D5DDE0 /* Resources */,
F42E086A0D199A5B00D5DDE0 /* Sources */,
F42E086B0D199A5B00D5DDE0 /* Frameworks */,
+ F4D9A60D0F6B6E3000BB52C5 /* Clean gcov data */,
);
buildRules = (
);
@@ -1344,6 +1345,21 @@
shellPath = /bin/sh;
shellScript = "# Nuke coverage data earch run\nexport GTM_REMOVE_GCOV_DATA=1\n# Run the unit tests in this test bundle.\n\"${SRCROOT}/UnitTesting/RunMacOSUnitTests.sh\"\n";
};
+ F4D9A60D0F6B6E3000BB52C5 /* Clean gcov data */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Clean gcov data";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "# Since the unittests link the framework, we just nuke any gcda's each time\n# we build to be sure we get coverage data for the unittesting runs.\n\nOBJ_FILE_DIR_VAR=\"${OBJECT_FILE_DIR}-${CURRENT_VARIANT}\"\nif [ ${OBJ_FILE_DIR_VAR} != \"-\" ]; then\n if [ -d ${OBJ_FILE_DIR_VAR} ]; then\n (cd ${OBJ_FILE_DIR_VAR} && \\\n find . -type f -name \"*.gcda\" -print0 | xargs -0 rm -f )\n fi\nfi\n";
+ showEnvVarsInLog = 0;
+ };
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */