From 8676523433a1fd9556681b73a7c3f0600b5dfce2 Mon Sep 17 00:00:00 2001 From: James Chen Date: Sat, 2 Nov 2013 14:44:54 +0800 Subject: [PATCH] Adding CMakeLists.txt --- cocos/2d/CMakeLists.txt | 125 ++++++++++++++++++++++++++++++ cocos/base/CMakeLists.txt | 20 +++++ cocos/math/kazmath/CMakeLists.txt | 17 ++++ cocos/physics/CMakeLists.txt | 17 ++++ external/tinyxml2/CMakeLists.txt | 7 ++ external/unzip/CMakeLists.txt | 8 ++ 6 files changed, 194 insertions(+) create mode 100644 cocos/2d/CMakeLists.txt create mode 100644 cocos/base/CMakeLists.txt create mode 100644 cocos/math/kazmath/CMakeLists.txt create mode 100644 cocos/physics/CMakeLists.txt create mode 100644 external/tinyxml2/CMakeLists.txt create mode 100644 external/unzip/CMakeLists.txt diff --git a/cocos/2d/CMakeLists.txt b/cocos/2d/CMakeLists.txt new file mode 100644 index 0000000000..fdcd28a564 --- /dev/null +++ b/cocos/2d/CMakeLists.txt @@ -0,0 +1,125 @@ +set(COCOS2D_SRC + CCAction.cpp + CCActionCamera.cpp + CCActionEase.cpp + CCActionGrid.cpp + CCActionGrid3D.cpp + CCActionInstant.cpp + CCActionInterval.cpp + CCActionManager.cpp + CCActionPageTurn3D.cpp + CCActionProgressTimer.cpp + CCActionTiledGrid.cpp + CCActionCatmullRom.cpp + CCActionTween.cpp + CCAtlasNode.cpp + CCNode.cpp + CCEventAcceleration.cpp + CCEventListenerAcceleration.cpp + CCEvent.cpp + CCEventDispatcher.cpp + CCEventListener.cpp + CCEventKeyboard.cpp + CCEventListenerKeyboard.cpp + CCEventMouse.cpp + CCEventListenerMouse.cpp + CCTouch.cpp + CCEventTouch.cpp + CCEventListenerTouch.cpp + CCEventCustom.cpp + CCEventListenerCustom.cpp + CCDrawingPrimitives.cpp + CCDrawNode.cpp + CCGrabber.cpp + CCGrid.cpp + CCFont.cpp + CCFontAtlas.cpp + CCFontAtlasCache.cpp + CCFontAtlasFactory.cpp + CCFontDefinition.cpp + CCFontFNT.cpp + CCFontFreeType.cpp + CCLabel.cpp + CCLabelAtlas.cpp + CCLabelBMFont.cpp + CCLabelTTF.cpp + CCLabelTextFormatter.cpp + CCTextImage.cpp + CCLayer.cpp + CCScene.cpp + CCTransition.cpp + CCTransitionPageTurn.cpp + CCTransitionProgress.cpp + CCMenu.cpp + CCMenuItem.cpp + CCMotionStreak.cpp + CCProgressTimer.cpp + CCClippingNode.cpp + CCRenderTexture.cpp + CCParticleExamples.cpp + CCParticleSystem.cpp + CCParticleSystemQuad.cpp + CCParticleBatchNode.cpp + CCScriptSupport.cpp + CCAnimation.cpp + CCAnimationCache.cpp + CCSprite.cpp + CCSpriteBatchNode.cpp + CCSpriteFrame.cpp + CCSpriteFrameCache.cpp + ccUTF8.cpp + CCProfiling.cpp + CCUserDefault.cpp + TransformUtils.cpp + base64.cpp + ccUtils.cpp + CCVertex.cpp + CCNotificationCenter.cpp + TGAlib.cpp + ZipUtils.cpp + ccCArray.cpp + CCComponent.cpp + CCComponentContainer.cpp + CCIMEDispatcher.cpp + CCTextFieldTTF.cpp + CCTexture2D.cpp + CCTextureAtlas.cpp + CCTextureCache.cpp + CCParallaxNode.cpp + CCTMXLayer.cpp + CCTMXObjectGroup.cpp + CCTMXTiledMap.cpp + CCTMXXMLParser.cpp + CCTileMapAtlas.cpp + CCGLProgram.cpp + ccGLStateCache.cpp + CCShaderCache.cpp + ccShaders.cpp + CCCamera.cpp + CCConfiguration.cpp + CCDirector.cpp + CCScheduler.cpp + ccFPSImages.c + ccTypes.cpp + cocos2d.cpp + CCDeprecated.cpp + platform/CCSAXParser.cpp + platform/CCThread.cpp + platform/CCEGLViewProtocol.cpp + platform/CCFileUtils.cpp + platform/linux/CCStdC.cpp + platform/linux/CCFileUtilsLinux.cpp + platform/linux/CCCommon.cpp + platform/linux/CCApplication.cpp + platform/linux/CCEGLView.cpp + platform/linux/CCImage.cpp + platform/linux/CCDevice.cpp +) + +include(../physics/CMakeLists.txt) + +add_library(cocos2d STATIC + ${COCOS2D_SRC} + ${COCOS_PHYSICS_SRC} +) + diff --git a/cocos/base/CMakeLists.txt b/cocos/base/CMakeLists.txt new file mode 100644 index 0000000000..c46e07c114 --- /dev/null +++ b/cocos/base/CMakeLists.txt @@ -0,0 +1,20 @@ +set(COCOS_BASE_SRC + CCAffineTransform.cpp + CCAutoreleasePool.cpp + CCGeometry.cpp + CCNS.cpp + CCObject.cpp + CCSet.cpp + CCArray.cpp + CCDictionary.cpp + CCString.cpp + CCDataVisitor.cpp + CCData.cpp + etc1.cpp + s3tc.cpp + atitc.cpp +) + +add_library(cocosbase STATIC + ${COCOS_BASE_SRC} +) diff --git a/cocos/math/kazmath/CMakeLists.txt b/cocos/math/kazmath/CMakeLists.txt new file mode 100644 index 0000000000..1dc636037d --- /dev/null +++ b/cocos/math/kazmath/CMakeLists.txt @@ -0,0 +1,17 @@ + +SET(KAZMATH_SOURCES + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/mat4.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/mat3.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/plane.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/vec4.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/quaternion.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/vec2.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/vec3.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/utility.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/aabb.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/ray2.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/GL/mat4stack.c + ${CMAKE_SOURCE_DIR}/cocos/math/kazmath/src/GL/matrix.c + ) + +ADD_SUBDIRECTORY(src) \ No newline at end of file diff --git a/cocos/physics/CMakeLists.txt b/cocos/physics/CMakeLists.txt new file mode 100644 index 0000000000..2ca5a7f532 --- /dev/null +++ b/cocos/physics/CMakeLists.txt @@ -0,0 +1,17 @@ +set(COCOS_PHYSICS_SRC + ${CMAKE_SOURCE_DIR}/cocos/physics/box2d/CCPhysicsContactInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/box2d/CCPhysicsJointInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/box2d/CCPhysicsShapeInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/box2d/CCPhysicsBodyInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/box2d/CCPhysicsWorldInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/chipmunk/CCPhysicsContactInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/chipmunk/CCPhysicsJointInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/chipmunk/CCPhysicsShapeInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/chipmunk/CCPhysicsBodyInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/chipmunk/CCPhysicsWorldInfo.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/CCPhysicsBody.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/CCPhysicsContact.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/CCPhysicsShape.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/CCPhysicsJoint.cpp + ${CMAKE_SOURCE_DIR}/cocos/physics/CCPhysicsWorld.cpp +) diff --git a/external/tinyxml2/CMakeLists.txt b/external/tinyxml2/CMakeLists.txt new file mode 100644 index 0000000000..42822a3bc4 --- /dev/null +++ b/external/tinyxml2/CMakeLists.txt @@ -0,0 +1,7 @@ +set(TINYXML2_SRC + tinyxml2.cpp +) + +add_library(tinyxml2 STATIC + ${TINYXML2_SRC} +) diff --git a/external/unzip/CMakeLists.txt b/external/unzip/CMakeLists.txt new file mode 100644 index 0000000000..8d15111c8e --- /dev/null +++ b/external/unzip/CMakeLists.txt @@ -0,0 +1,8 @@ +set(UNZIP_SRC + ioapi.cpp + unzip.cpp +) + +add_library(unzip STATIC + ${UNZIP_SRC} +)