2013-07-16 18:51:09 +08:00
|
|
|
|
2013-07-19 09:29:04 +08:00
|
|
|
DEFINES += CC_TARGET_QT5
|
|
|
|
|
|
|
|
CONFIG += silent
|
|
|
|
|
2013-07-26 16:55:46 +08:00
|
|
|
# Disable some warnings to make compiler output easier to read during development
|
|
|
|
DISABLED_WARNINGS = -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-psabi
|
|
|
|
QMAKE_CXXFLAGS += $${DISABLED_WARNINGS} -Wno-reorder
|
|
|
|
QMAKE_CFLAGS += $${DISABLED_WARNINGS}
|
|
|
|
|
2013-08-01 15:20:17 +08:00
|
|
|
# C++11 support (Pick the first one if you have an old GCC version)
|
|
|
|
#QMAKE_CXXFLAGS += -Doverride= -std=c++0x
|
|
|
|
CONFIG += c++11
|
2013-07-19 09:29:04 +08:00
|
|
|
|
2013-07-16 18:51:09 +08:00
|
|
|
OS_TYPE = linux
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
BUILD_TYPE = debug
|
|
|
|
} else {
|
|
|
|
BUILD_TYPE = release
|
|
|
|
}
|
|
|
|
|
|
|
|
OBJECTS_DIR = obj/$${BUILD_TYPE}
|
2013-07-23 21:30:07 +08:00
|
|
|
MOC_DIR = obj/$${BUILD_TYPE}
|
2013-07-16 18:51:09 +08:00
|
|
|
LIB_OUTPUT_DIR = $${PWD}/../../lib/$${OS_TYPE}/$${BUILD_TYPE}
|
|
|
|
|
2013-07-23 18:20:20 +08:00
|
|
|
# Installation location of binaries
|
|
|
|
LIB_INSTALL_DIR = /usr/lib
|
|
|
|
BIN_INSTALL_DIR = /usr/bin
|
|
|
|
DESKTOP_INSTALL_DIR = /usr/share/applications
|
|
|
|
|
2013-07-23 01:58:48 +08:00
|
|
|
INCLUDEPATH += $${PWD}/..
|
|
|
|
INCLUDEPATH += $${PWD}/../include
|
|
|
|
INCLUDEPATH += $${PWD}/../platform
|
|
|
|
INCLUDEPATH += $${PWD}/../platform/qt5
|
|
|
|
INCLUDEPATH += $${PWD}/../kazmath/include
|
|
|
|
|
|
|
|
COCOS2DX_SYSTEM_LIBS += -lz
|
|
|
|
COCOS2DX_SYSTEM_LIBS += -ljpeg -ltiff -lpng
|
|
|
|
COCOS2DX_SYSTEM_LIBS += -lfontconfig -lfreetype
|
|
|
|
|
2013-07-23 21:30:07 +08:00
|
|
|
# Sensors module needed for CCAccelerometer
|
|
|
|
QT += sensors
|
|
|
|
|
2013-07-23 01:58:48 +08:00
|
|
|
LINK_AGAINST_COCOS2DX = -L$${LIB_OUTPUT_DIR} -lcocos2d $${COCOS2DX_SYSTEM_LIBS}
|
|
|
|
|
2013-07-23 15:45:45 +08:00
|
|
|
# CocosDenshion (audio library)
|
|
|
|
QT += multimedia
|
|
|
|
INCLUDEPATH += $${PWD}/../../CocosDenshion/include
|
2013-07-23 17:57:54 +08:00
|
|
|
LINK_AGAINST_COCOSDENSHION = -lcocosdenshion
|
|
|
|
|
|
|
|
# Extensions library
|
|
|
|
INCLUDEPATH += $${PWD}/../../extensions
|
|
|
|
LINK_AGAINST_COCOSEXTENSION = -lextension -lbox2d -lchipmunk -lcurl
|
2013-07-23 02:08:46 +08:00
|
|
|
|
2013-07-23 17:37:52 +08:00
|
|
|
# Physics engines (pick one)
|
|
|
|
DEFINES += CC_ENABLE_CHIPMUNK_INTEGRATION
|
|
|
|
#DEFINES += CC_ENABLE_BOX2D_INTEGRATION
|
|
|
|
INCLUDEPATH += $${PWD}/../../external/chipmunk/include/chipmunk
|
|
|
|
INCLUDEPATH += $${PWD}/../../external
|
|
|
|
|