Qt5 build support (initial work)

This commit is contained in:
Thomas Perl 2013-07-16 12:51:09 +02:00 committed by Thomas Perl
parent ea3858fdf2
commit 62958c8321
5 changed files with 81 additions and 0 deletions

8
cocos2dx-qt5.pro Normal file
View File

@ -0,0 +1,8 @@
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += external/chipmunk/proj.qt5/chipmunk.pro
SUBDIRS += external/Box2D/proj.qt5/box2d.pro

View File

@ -0,0 +1,12 @@
OS_TYPE = linux
CONFIG(debug, debug|release) {
BUILD_TYPE = debug
} else {
BUILD_TYPE = release
}
OBJECTS_DIR = obj/$${BUILD_TYPE}
LIB_OUTPUT_DIR = $${PWD}/../../lib/$${OS_TYPE}/$${BUILD_TYPE}

18
external/Box2D/proj.qt5/box2d.pro vendored Normal file
View File

@ -0,0 +1,18 @@
include(../../../cocos2dx/proj.qt5/common.pri)
TEMPLATE = lib
CONFIG += static
SOURCES += $$files(../Collision/Shapes/*.cpp)
SOURCES += $$files(../Collision/*.cpp)
SOURCES += $$files(../Common/*.cpp)
SOURCES += $$files(../Dynamics/Contacts/*.cpp)
SOURCES += $$files(../Dynamics/Joints/*.cpp)
SOURCES += $$files(../Dynamics/*.cpp)
SOURCES += $$files(../Rope/*.cpp)
INCLUDEPATH += ../..
TARGET = $${LIB_OUTPUT_DIR}/box2d

13
external/chipmunk/proj.qt5/chipmunk.pro vendored Normal file
View File

@ -0,0 +1,13 @@
include(../../../cocos2dx/proj.qt5/common.pri)
TEMPLATE = lib
CONFIG += static
SOURCES += $$files(../src/*.c)
SOURCES += $$files(../src/constraints/*.c)
INCLUDEPATH += ../include/chipmunk
TARGET = $${LIB_OUTPUT_DIR}/chipmunk

View File

@ -0,0 +1,30 @@
include(../../../cocos2dx/proj.qt5/common.pri)
TEMPLATE = lib
CONFIG += static
CONFIG += c++11
SOURCES += $$files(../lua/*.c)
SOURCES += $$files(../tolua/*.c)
SOURCES += $$files(../cocos2dx_support/*.c)
SOURCES += $$files(../cocos2dx_support/*.cpp)
DEFINES += CC_TARGET_OS_MAC
INCLUDEPATH += ..
INCLUDEPATH += ../lua
INCLUDEPATH += ../tolua
INCLUDEPATH += ../Classes
INCLUDEPATH += ../../../CocosDenshion/include
INCLUDEPATH += ../../../extensions
INCLUDEPATH += ../../../external/chipmunk/include/chipmunk
INCLUDEPATH += ../../../cocos2dx/include
INCLUDEPATH += ../../../cocos2dx
INCLUDEPATH += ../../../cocos2dx/platform/qt5
INCLUDEPATH += ../../../cocos2dx/kazmath/include
# XXX SHAREDLIBS += -lextension
TARGET = $${LIB_OUTPUT_DIR}/lua