mirror of https://github.com/axmolengine/axmol.git
Add new platform: CC_PLATFORM_QT5
This commit is contained in:
parent
309269e8e2
commit
4860e3551c
|
@ -25,7 +25,7 @@
|
|||
#define __NEON_MATRIX_IMPL_H__
|
||||
|
||||
#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__
|
||||
#else
|
||||
#include "arm/arch.h"
|
||||
|
|
|
@ -46,6 +46,7 @@ Config of cocos2d-x project, per target platform.
|
|||
#define CC_PLATFORM_NACL 9
|
||||
#define CC_PLATFORM_EMSCRIPTEN 10
|
||||
#define CC_PLATFORM_TIZEN 11
|
||||
#define CC_PLATFORM_QT5 12
|
||||
|
||||
// Determine target platform by compile environment macro.
|
||||
#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
|
||||
#endif
|
||||
|
||||
// qt5
|
||||
#if defined(CC_TARGET_QT5)
|
||||
#undef CC_TARGET_PLATFORM
|
||||
#define CC_TARGET_PLATFORM CC_PLATFORM_QT5
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// post configure
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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
|
||||
|
||||
CONFIG(debug, debug|release) {
|
||||
|
|
Loading…
Reference in New Issue