mirror of https://github.com/axmolengine/axmol.git
added CC_PLATFORM_WINRT and WP8
This commit is contained in:
parent
347f91fcb6
commit
a14728f184
|
@ -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
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue