Permalink
Browse files

Move ARC check into .m file so it doesn't require the main applicatio…

…n to be ARC enabled.
  • Loading branch information...
1 parent ca2cd31 commit 204b1a82b4101c337fdb8a1d31a76da387716ce9 @lhunath lhunath committed May 15, 2012
@@ -2,10 +2,6 @@
#error PEARL_COCOS2D used but not enabled. If you want to use this library, first enable it with #define PEARL_COCOS2D in your Pearl prefix file.
#endif
-#if ! __has_feature(objc_arc)
-#error PEARL_COCOS2D requires ARC. Change your build settings to enable ARC support in your compiler and try again.
-#endif
-
#import "Pearl-Cocos2D-Dependencies.h"
#import "Pearl.h"
#import "PearlCCAutoTween.h"
@@ -0,0 +1,3 @@
+#if ! __has_feature(objc_arc)
+#error PEARL_COCOS2D requires ARC. Change your build settings to enable ARC support in your compiler and try again.
+#endif
@@ -2,10 +2,6 @@
#error PEARL_CRYPTO used but not enabled. If you want to use this library, first enable it with #define PEARL_CRYPTO in your Pearl prefix file.
#endif
-#if ! __has_feature(objc_arc)
-#error PEARL_CRYPTO requires ARC. Change your build settings to enable ARC support in your compiler and try again.
-#endif
-
#import "Pearl.h"
#import "PearlCryptUtils.h"
#import "PearlKeyChain.h"
@@ -0,0 +1,3 @@
+#if ! __has_feature(objc_arc)
+#error PEARL_CRYPTO requires ARC. Change your build settings to enable ARC support in your compiler and try again.
+#endif
@@ -2,9 +2,5 @@
#error PEARL_MEDIA used but not enabled. If you want to use this library, first enable it with #define PEARL_MEDIA in your Pearl prefix file.
#endif
-#if ! __has_feature(objc_arc)
-#error PEARL_MEDIA requires ARC. Change your build settings to enable ARC support in your compiler and try again.
-#endif
-
#import "Pearl.h"
#import "PearlAudioController.h"
@@ -0,0 +1,3 @@
+#if ! __has_feature(objc_arc)
+#error PEARL_MEDIA requires ARC. Change your build settings to enable ARC support in your compiler and try again.
+#endif
@@ -2,10 +2,6 @@
#error PEARL_UIKIT used but not enabled. If you want to use this library, first enable it with #define PEARL_UIKIT in your Pearl prefix file.
#endif
-#if ! __has_feature(objc_arc)
-#error PEARL_UIKIT requires ARC. Change your build settings to enable ARC support in your compiler and try again.
-#endif
-
#import "Pearl-UIKit-Dependencies.h"
#import "Pearl.h"
#import "PearlAlert.h"
@@ -0,0 +1,3 @@
+#if ! __has_feature(objc_arc)
+#error PEARL_UIKIT requires ARC. Change your build settings to enable ARC support in your compiler and try again.
+#endif
View
@@ -2,10 +2,6 @@
#error PEARL_WS used but not enabled. If you want to use this library, first enable it with #define PEARL_WS in your Pearl prefix file.
#endif
-#if ! __has_feature(objc_arc)
-#error PEARL_WS requires ARC. Change your build settings to enable ARC support in your compiler and try again.
-#endif
-
#import "Pearl.h"
#import "PearlWSController.h"
#import "PearlWSStrings.h"
View
@@ -0,0 +1,3 @@
+#if ! __has_feature(objc_arc)
+#error PEARL_WS requires ARC. Change your build settings to enable ARC support in your compiler and try again.
+#endif
View
@@ -2,10 +2,6 @@
#error PEARL used but not enabled. If you want to use this library, first enable it with #define PEARL in your Pearl prefix file.
#endif
-#if ! __has_feature(objc_arc)
-#error PEARL requires ARC. Change your build settings to enable ARC support in your compiler and try again.
-#endif
-
#import "NSObject_PearlExport.h"
#import "NSString_PearlNSArrayFormat.h"
#import "NSString_PearlSEL.h"
View
@@ -0,0 +1,3 @@
+#if ! __has_feature(objc_arc)
+#error PEARL requires ARC. Change your build settings to enable ARC support in your compiler and try again.
+#endif
@@ -18,10 +18,11 @@ for module in "$main"!(*Tests*)/; do
#error $define used but not enabled. If you want to use this library, first enable it with #define $define in your Pearl prefix file.
#endif
+.
+ cat > "$module.m" <<.
#if ! __has_feature(objc_arc)
#error $define requires ARC. Change your build settings to enable ARC support in your compiler and try again.
#endif
-
.
# All modules depend on Pearl.h
@@ -35,6 +36,6 @@ for module in "$main"!(*Tests*)/; do
(( headers++ ))
printf '#import "%s"\n' "${f##*/}"
done < <(find . -name private -prune -o '(' ! -name "$module.h" ! -name "$module-*.h" -name '*.h' -print ')')
- } > "$module".h
+ } > "$module.h"
echo "$headers")"
done

0 comments on commit 204b1a8

Please sign in to comment.