From faf617bc37651b32144f1fc5f527086f035c5d8a Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Fri, 9 May 2014 16:57:11 -0700 Subject: [PATCH] fixes for Linux --- cocos/2d/CMakeLists.txt | 46 ++++++++++++++++------------------- cocos/renderer/CMakeLists.txt | 6 +++++ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/cocos/2d/CMakeLists.txt b/cocos/2d/CMakeLists.txt index c0fb594217..89c61a8636 100644 --- a/cocos/2d/CMakeLists.txt +++ b/cocos/2d/CMakeLists.txt @@ -28,12 +28,13 @@ endif() set(COCOS_2D_SRC + 2d/ccFPSImages.c + 2d/CCAction.cpp 2d/CCActionCamera.cpp 2d/CCActionCatmullRom.cpp - 2d/CCAction.cpp 2d/CCActionEase.cpp - 2d/CCActionGrid3D.cpp 2d/CCActionGrid.cpp + 2d/CCActionGrid3D.cpp 2d/CCActionInstant.cpp 2d/CCActionInterval.cpp 2d/CCActionManager.cpp @@ -41,32 +42,29 @@ set(COCOS_2D_SRC 2d/CCActionProgressTimer.cpp 2d/CCActionTiledGrid.cpp 2d/CCActionTween.cpp - 2d/CCAnimationCache.cpp 2d/CCAnimation.cpp + 2d/CCAnimationCache.cpp 2d/CCAtlasNode.cpp - 2d/ccCArray.cpp 2d/CCClippingNode.cpp - 2d/CCComponentContainer.cpp 2d/CCComponent.cpp - 2d/CCDrawingPrimitives.cpp + 2d/CCComponentContainer.cpp 2d/CCDrawNode.cpp - 2d/CCFontAtlasCache.cpp - 2d/CCFontAtlas.cpp - 2d/CCFontCharMap.cpp + 2d/CCDrawingPrimitives.cpp 2d/CCFont.cpp + 2d/CCFontAtlas.cpp + 2d/CCFontAtlasCache.cpp + 2d/CCFontCharMap.cpp 2d/CCFontFNT.cpp 2d/CCFontFreeType.cpp 2d/CCGLBufferedNode.cpp - 2d/CCGLProgram.cpp - 2d/ccGLStateCache.cpp 2d/CCGrabber.cpp 2d/CCGrid.cpp 2d/CCIMEDispatcher.cpp + 2d/CCLabel.cpp 2d/CCLabelAtlas.cpp 2d/CCLabelBMFont.cpp - 2d/CCLabel.cpp - 2d/CCLabelTextFormatter.cpp 2d/CCLabelTTF.cpp + 2d/CCLabelTextFormatter.cpp 2d/CCLayer.cpp 2d/CCMenu.cpp 2d/CCMenuItem.cpp @@ -82,37 +80,35 @@ set(COCOS_2D_SRC 2d/CCRenderTexture.cpp 2d/CCScene.cpp 2d/CCScriptSupport.cpp - 2d/CCShaderCache.cpp - 2d/ccShaders.cpp - 2d/CCSpriteBatchNode.cpp 2d/CCSprite.cpp - 2d/CCSpriteFrameCache.cpp + 2d/CCSpriteBatchNode.cpp 2d/CCSpriteFrame.cpp + 2d/CCSpriteFrameCache.cpp + 2d/CCTMXLayer.cpp + 2d/CCTMXObjectGroup.cpp + 2d/CCTMXTiledMap.cpp + 2d/CCTMXXMLParser.cpp 2d/CCTextFieldTTF.cpp 2d/CCTexture2D.cpp 2d/CCTextureAtlas.cpp 2d/CCTextureCache.cpp 2d/CCTileMapAtlas.cpp - 2d/CCTMXLayer.cpp - 2d/CCTMXObjectGroup.cpp - 2d/CCTMXTiledMap.cpp - 2d/CCTMXXMLParser.cpp 2d/CCTransition.cpp 2d/CCTransitionPageTurn.cpp 2d/CCTransitionProgress.cpp 2d/CCTweenFunction.cpp - 2d/CCUserDefaultAndroid.cpp 2d/CCUserDefault.cpp - 2d/ccUTF8.cpp - 2d/ccUtils.cpp + 2d/CCUserDefaultAndroid.cpp 2d/CCVertex.cpp 2d/TGAlib.cpp + 2d/ccCArray.cpp + 2d/ccUTF8.cpp + 2d/ccUtils.cpp 2d/platform/CCSAXParser.cpp 2d/platform/CCThread.cpp 2d/platform/CCGLViewProtocol.cpp 2d/platform/CCFileUtils.cpp 2d/platform/CCImage.cpp - 2d/ccFPSImages.c ../external/edtaa3func/edtaa3func.cpp ) diff --git a/cocos/renderer/CMakeLists.txt b/cocos/renderer/CMakeLists.txt index 10cda1cbe1..a51f6640cb 100644 --- a/cocos/renderer/CMakeLists.txt +++ b/cocos/renderer/CMakeLists.txt @@ -1,9 +1,15 @@ set(COCOS_RENDERER_SRC renderer/CCBatchCommand.cpp renderer/CCCustomCommand.cpp + renderer/CCGLProgram.cpp + renderer/CCGLProgramState.cpp + renderer/CCGLProgramStateCache.cpp renderer/CCGroupCommand.cpp renderer/CCQuadCommand.cpp renderer/CCRenderCommand.cpp renderer/CCRenderer.cpp + renderer/CCShaderCache.cpp + renderer/ccGLStateCache.cpp + renderer/ccShaders.cpp )