From 8044c52d6d80b92beacac49335fa9ded2a85f12a Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 23 Jul 2013 09:37:52 +0000 Subject: [PATCH] Qt 5: Add support for building libextension --- cocos2dx-qt5.pro | 1 + cocos2dx/proj.qt5/common.pri | 6 ++ extensions/proj.qt5/extensions.pro | 117 +++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 extensions/proj.qt5/extensions.pro diff --git a/cocos2dx-qt5.pro b/cocos2dx-qt5.pro index efe7d5cb62..5924d87082 100644 --- a/cocos2dx-qt5.pro +++ b/cocos2dx-qt5.pro @@ -10,6 +10,7 @@ SUBDIRS += cocos2dx/proj.qt5/cocos2dx.pro # Cocos2D-X Additional Libraries SUBDIRS += CocosDenshion/proj.qt5/cocosdenshion.pro +SUBDIRS += extensions/proj.qt5/extensions.pro # Examples SUBDIRS += samples/Cpp/HelloCpp/proj.qt5/HelloCpp.pro diff --git a/cocos2dx/proj.qt5/common.pri b/cocos2dx/proj.qt5/common.pri index a271d7768f..063cf7b169 100644 --- a/cocos2dx/proj.qt5/common.pri +++ b/cocos2dx/proj.qt5/common.pri @@ -34,3 +34,9 @@ QT += multimedia INCLUDEPATH += $${PWD}/../../CocosDenshion/include LINK_AGAINST_COCOSDENSHION = -L$${LIB_OUTPUT_DIR} -lcocosdenshion +# Physics engines (pick one) +DEFINES += CC_ENABLE_CHIPMUNK_INTEGRATION +#DEFINES += CC_ENABLE_BOX2D_INTEGRATION +INCLUDEPATH += $${PWD}/../../external/chipmunk/include/chipmunk +INCLUDEPATH += $${PWD}/../../external + diff --git a/extensions/proj.qt5/extensions.pro b/extensions/proj.qt5/extensions.pro new file mode 100644 index 0000000000..a31162bffb --- /dev/null +++ b/extensions/proj.qt5/extensions.pro @@ -0,0 +1,117 @@ + +include(../../cocos2dx/proj.qt5/common.pri) + +TEMPLATE = lib +CONFIG += static + +#SOURCES += $$files(../qt5/*.cpp) + +SOURCES += ../CCBReader/CCBFileLoader.cpp \ +../CCBReader/CCMenuItemImageLoader.cpp \ +../CCBReader/CCBReader.cpp \ +../CCBReader/CCMenuItemLoader.cpp \ +../CCBReader/CCControlButtonLoader.cpp \ +../CCBReader/CCNodeLoader.cpp \ +../CCBReader/CCControlLoader.cpp \ +../CCBReader/CCNodeLoaderLibrary.cpp \ +../CCBReader/CCLabelBMFontLoader.cpp \ +../CCBReader/CCParticleSystemQuadLoader.cpp \ +../CCBReader/CCLabelTTFLoader.cpp \ +../CCBReader/CCScale9SpriteLoader.cpp \ +../CCBReader/CCLayerColorLoader.cpp \ +../CCBReader/CCScrollViewLoader.cpp \ +../CCBReader/CCLayerGradientLoader.cpp \ +../CCBReader/CCSpriteLoader.cpp \ +../CCBReader/CCLayerLoader.cpp \ +../CCBReader/CCBAnimationManager.cpp \ +../CCBReader/CCBKeyframe.cpp \ +../CCBReader/CCBSequence.cpp \ +../CCBReader/CCBSequenceProperty.cpp \ +../CCBReader/CCBValue.cpp \ +../CCBReader/CCData.cpp \ +../CCBReader/CCNode+CCBRelativePositioning.cpp \ +../GUI/CCScrollView/CCScrollView.cpp \ +../GUI/CCScrollView/CCSorting.cpp \ +../GUI/CCScrollView/CCTableView.cpp \ +../GUI/CCScrollView/CCTableViewCell.cpp \ +../GUI/CCControlExtension/CCControlButton.cpp \ +../GUI/CCControlExtension/CCControlColourPicker.cpp \ +../GUI/CCControlExtension/CCControl.cpp \ +../GUI/CCControlExtension/CCControlHuePicker.cpp \ +../GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp \ +../GUI/CCControlExtension/CCControlSlider.cpp \ +../GUI/CCControlExtension/CCControlSwitch.cpp \ +../GUI/CCControlExtension/CCControlUtils.cpp \ +../GUI/CCControlExtension/CCInvocation.cpp \ +../GUI/CCControlExtension/CCScale9Sprite.cpp \ +../GUI/CCControlExtension/CCControlPotentiometer.cpp \ +../GUI/CCControlExtension/CCControlStepper.cpp \ +../GUI/CCEditBox/CCEditBox.cpp \ +../GUI/CCEditBox/CCEditBoxImplNone.cpp \ +../network/HttpClient.cpp \ +../physics_nodes/CCPhysicsDebugNode.cpp \ +../physics_nodes/CCPhysicsSprite.cpp \ +../spine/Animation.cpp \ +../spine/AnimationState.cpp \ +../spine/AnimationStateData.cpp \ +../spine/Atlas.cpp \ +../spine/AtlasAttachmentLoader.cpp \ +../spine/Attachment.cpp \ +../spine/AttachmentLoader.cpp \ +../spine/Bone.cpp \ +../spine/BoneData.cpp \ +../spine/Json.cpp \ +../spine/RegionAttachment.cpp \ +../spine/Skeleton.cpp \ +../spine/SkeletonData.cpp \ +../spine/SkeletonJson.cpp \ +../spine/Skin.cpp \ +../spine/Slot.cpp \ +../spine/SlotData.cpp \ +../spine/extension.cpp \ +../spine/spine-cocos2dx.cpp \ +../spine/CCSkeleton.cpp \ +../spine/CCSkeletonAnimation.cpp \ +../Components/CCComAttribute.cpp \ +../Components/CCComAudio.cpp \ +../Components/CCComController.cpp \ +../Components/CCInputDelegate.cpp \ +../CCArmature/CCArmature.cpp \ +../CCArmature/CCBone.cpp \ +../CCArmature/animation/CCArmatureAnimation.cpp \ +../CCArmature/animation/CCProcessBase.cpp \ +../CCArmature/animation/CCTween.cpp \ +../CCArmature/datas/CCDatas.cpp \ +../CCArmature/display/CCBatchNode.cpp \ +../CCArmature/display/CCDecorativeDisplay.cpp \ +../CCArmature/display/CCDisplayFactory.cpp \ +../CCArmature/display/CCDisplayManager.cpp \ +../CCArmature/display/CCShaderNode.cpp \ +../CCArmature/display/CCSkin.cpp \ +../CCArmature/external_tool/GLES-Render.cpp \ +../CCArmature/external_tool/Json/CSContentJsonDictionary.cpp \ +../CCArmature/external_tool/Json/lib_json/json_value.cpp \ +../CCArmature/external_tool/Json/lib_json/json_reader.cpp \ +../CCArmature/external_tool/Json/lib_json/json_writer.cpp \ +../CCArmature/physics/CCColliderDetector.cpp \ +../CCArmature/physics/CCPhysicsWorld.cpp \ +../CCArmature/utils/CCArmatureDataManager.cpp \ +../CCArmature/utils/CCDataReaderHelper.cpp \ +../CCArmature/utils/CCSpriteFrameCacheHelper.cpp \ +../CCArmature/utils/CCTransformHelp.cpp \ +../CCArmature/utils/CCTweenFunction.cpp \ +../CCArmature/utils/CCUtilMath.cpp + +INCLUDEPATH += .. +INCLUDEPATH += ../include +INCLUDEPATH += ../CCBReader +INCLUDEPATH += ../GUI/CCControlExtension +INCLUDEPATH += ../GUI/CCEditBox +INCLUDEPATH += ../network +INCLUDEPATH += ../Components +INCLUDEPATH += ../CCArmature + +#INCLUDES = -I$(COCOS_ROOT)/external \ + +TARGET = $${LIB_OUTPUT_DIR}/extension +