From a14728f1848d73d5db2ab50c7da2d88196d4cb07 Mon Sep 17 00:00:00 2001 From: Dale Stammen Date: Sat, 22 Mar 2014 06:11:27 -0700 Subject: [PATCH] added CC_PLATFORM_WINRT and WP8 --- cocos/base/CCPlatformConfig.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cocos/base/CCPlatformConfig.h b/cocos/base/CCPlatformConfig.h index 7d171b8d8b..f9e5e698a3 100644 --- a/cocos/base/CCPlatformConfig.h +++ b/cocos/base/CCPlatformConfig.h @@ -48,6 +48,8 @@ Config of cocos2d-x project, per target platform. #define CC_PLATFORM_EMSCRIPTEN 10 #define CC_PLATFORM_TIZEN 11 #define CC_PLATFORM_QT5 12 +#define CC_PLATFORM_WP8 13 +#define CC_PLATFORM_WINRT 14 // Determine target platform by compile environment macro. #define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN @@ -124,6 +126,19 @@ Config of cocos2d-x project, per target platform. #define CC_TARGET_PLATFORM CC_PLATFORM_QT5 #endif +// WinRT (Windows Store App) +#if defined(WINRT) + #undef CC_TARGET_PLATFORM + #define CC_TARGET_PLATFORM CC_PLATFORM_WINRT +#endif + +// WP8 (Windows Phone 8 App) +#if defined(WP8) + #undef CC_TARGET_PLATFORM + #define CC_TARGET_PLATFORM CC_PLATFORM_WP8 +#endif + + ////////////////////////////////////////////////////////////////////////// // post configure //////////////////////////////////////////////////////////////////////////