Add new platform: CC_PLATFORM_QT5

This commit is contained in:
Thomas Perl 2013-07-19 01:29:04 +00:00
parent 309269e8e2
commit 4860e3551c
3 changed files with 15 additions and 1 deletions

View File

@ -25,7 +25,7 @@
#define __NEON_MATRIX_IMPL_H__ #define __NEON_MATRIX_IMPL_H__
#ifdef __arm__ #ifdef __arm__
#if defined(__QNX__) || defined(ANDROID) || defined(I3D_ARCH_ARM) || defined(__native_client__) || defined(TIZEN) // MARMALADE CHANGE: Added for Marmalade support #if defined(__QNX__) || defined(CC_TARGET_QT5)|| defined(ANDROID) || defined(I3D_ARCH_ARM) || defined(__native_client__) || defined(TIZEN) // MARMALADE CHANGE: Added for Marmalade support
// blackberry and android don't have arm/arch.h but it defines __arm__ // blackberry and android don't have arm/arch.h but it defines __arm__
#else #else
#include "arm/arch.h" #include "arm/arch.h"

View File

@ -46,6 +46,7 @@ Config of cocos2d-x project, per target platform.
#define CC_PLATFORM_NACL 9 #define CC_PLATFORM_NACL 9
#define CC_PLATFORM_EMSCRIPTEN 10 #define CC_PLATFORM_EMSCRIPTEN 10
#define CC_PLATFORM_TIZEN 11 #define CC_PLATFORM_TIZEN 11
#define CC_PLATFORM_QT5 12
// Determine target platform by compile environment macro. // Determine target platform by compile environment macro.
#define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN #define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN
@ -116,6 +117,12 @@ Config of cocos2d-x project, per target platform.
#define CC_TARGET_PLATFORM CC_PLATFORM_TIZEN #define CC_TARGET_PLATFORM CC_PLATFORM_TIZEN
#endif #endif
// qt5
#if defined(CC_TARGET_QT5)
#undef CC_TARGET_PLATFORM
#define CC_TARGET_PLATFORM CC_PLATFORM_QT5
#endif
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// post configure // post configure
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,11 @@
DEFINES += CC_TARGET_QT5
CONFIG += silent
QMAKE_CXXFLAGS += -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-psabi
QMAKE_CFLAGS += -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-psabi
OS_TYPE = linux OS_TYPE = linux
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {