make test can compile on wophone and airplay.

This commit is contained in:
yangws 2011-04-28 10:31:51 +08:00
parent f8dc140840
commit 323c065934
3 changed files with 15 additions and 0 deletions

View File

@ -83,7 +83,11 @@ THE SOFTWARE.
#include "CCTouchDispatcher.h"
#include "CCDrawingPrimitives.h"
#include "CCScheduler.h"
// havn't implement on wophone and airplay
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WOPHONE) && (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
#include "CCTextFieldTTF.h"
#endif
//
// cocoa includes

View File

@ -64,8 +64,10 @@ static TestScene* CreateTestScene(int nIdx)
#endif
case TEST_LABEL:
pScene = new AtlasTestScene(); break;
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WOPHONE) && (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
case TEST_TEXT_INPUT:
pScene = new TextInputTestScene(); break;
#endif
case TEST_SPRITE:
pScene = new SpriteTestScene(); break;
case TEST_SCHEDULER:

View File

@ -21,7 +21,10 @@
#include "TileMapTest/TileMapTest.h"
#include "IntervalTest/IntervalTest.h"
#include "LabelTest/LabelTest.h"
// havn't implement on wophone and airplay
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WOPHONE) && (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
#include "TextInputTest/TextInputTest.h"
#endif
#include "SpriteTest/SpriteTest.h"
#include "SchedulerTest/SchedulerTest.h"
#include "RenderTextureTest/RenderTextureTest.h"
@ -69,7 +72,10 @@ enum
TEST_INTERVAL,
TEST_CHIPMUNK,
TEST_LABEL,
// havn't implement on wophone and airplay
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WOPHONE) && (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
TEST_TEXT_INPUT,
#endif
TEST_SPRITE,
TEST_SCHEDULER,
TEST_RENDERTEXTURE,
@ -109,7 +115,10 @@ const std::string g_aTestNames[TESTS_COUNT] = {
"IntervalTest",
"ChipmunkTest",
"LabelTest",
// havn't implement on wophone and airplay
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WOPHONE) && (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
"TextInputTest",
#endif
"SpriteTest",
"SchdulerTest",
"RenderTextureTest",