diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp index 7772bae0b0..9e6ebd9076 100644 --- a/cocos2dx/CCDirector.cpp +++ b/cocos2dx/CCDirector.cpp @@ -46,7 +46,10 @@ THE SOFTWARE. #include "CCGL.h" #include "CCAnimationCache.h" #include "CCTouch.h" + +#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) #include "CCUserDefault.h" +#endif #if CC_ENABLE_PROFILERS #include "support/CCProfiling.h" @@ -570,8 +573,10 @@ void CCDirector::purgeDirector() CCActionManager::sharedManager()->purgeSharedManager(); CCScheduler::purgeSharedScheduler(); CCTextureCache::purgeSharedTextureCache(); + +#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) CCUserDefault::purgeSharedUserDefault(); - +#endif // OpenGL view m_pobOpenGLView->release(); m_pobOpenGLView = NULL; diff --git a/cocos2dx/proj.airplay/cocos2dx.mkf b/cocos2dx/proj.airplay/cocos2dx.mkf index 7e73fb40d5..8a721d1d5c 100644 --- a/cocos2dx/proj.airplay/cocos2dx.mkf +++ b/cocos2dx/proj.airplay/cocos2dx.mkf @@ -98,8 +98,16 @@ files ("../support") [support] - "*.h" - "*.cpp" + "base64.cpp" + "base64.h" + "CCArray.cpp" + "CCPointExtension.cpp" + "CCProfiling.cpp" + "CCProfiling.h" + "ccUtils.cpp" + "ccUtils.h" + "TransformUtils.cpp" + "TransformUtils.h" ("../support/data_support") [support/data_support] diff --git a/tests/tests/controller.cpp b/tests/tests/controller.cpp index fc77df0aa1..db53d92ce7 100644 --- a/tests/tests/controller.cpp +++ b/tests/tests/controller.cpp @@ -104,9 +104,9 @@ static TestScene* CreateTestScene(int nIdx) pScene = new PerformanceTestScene(); break; case TEST_ZWOPTEX: pScene = new ZwoptexTestScene(); break; +#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) case TEST_CURL: pScene = new CurlTestScene(); break; -#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY) case TEST_USERDEFAULT: pScene = new UserDefaultTestScene(); break; #endif