aboutsummaryrefslogtreecommitdiff
path: root/GTM_Prefix.pch
diff options
context:
space:
mode:
Diffstat (limited to 'GTM_Prefix.pch')
-rw-r--r--GTM_Prefix.pch17
1 files changed, 17 insertions, 0 deletions
diff --git a/GTM_Prefix.pch b/GTM_Prefix.pch
index c745642..6740ffb 100644
--- a/GTM_Prefix.pch
+++ b/GTM_Prefix.pch
@@ -14,6 +14,23 @@
// the License.
//
+// We don't require a prefix to use any GTM code, so this prefix is just to
+// speed up the basic compiles of *all* of the GTM projects/targets.
+
+// We don't want to drag GTMDefines into the prefix so we make sure each file
+// that directly needs it includes it, so we just use the iphone test directly
+// instead of our GTM_IPHONE_SDK symbol.
#ifdef __OBJC__
+ #include <TargetConditionals.h>
+ #if TARGET_OS_IPHONE // iPhone SDK
+ #import <Foundation/Foundation.h>
+ #import <UIKit/UIKit.h>
+ #else
#import <Cocoa/Cocoa.h>
+ #endif
+ // This turns on unit test logging so that we can track unittests if we are
+ // doing them. See GTMUnitTestDevLog.h for details.
+ #define _GTMDevLog _GTMUnittestDevLog
#endif
+
+