issue #4729: Compilation error fixes for linux

This commit is contained in:
James Chen 2014-04-09 21:32:06 +08:00
parent 2fc6c0150c
commit 43d6e1176a
7 changed files with 18 additions and 12 deletions

View File

@ -141,6 +141,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/cocos/2d/renderer ${CMAKE_CURRENT_SOURCE_DIR}/cocos/2d/renderer
${CMAKE_CURRENT_SOURCE_DIR}/cocos/2d/platform ${CMAKE_CURRENT_SOURCE_DIR}/cocos/2d/platform
${CMAKE_CURRENT_SOURCE_DIR}/cocos/base ${CMAKE_CURRENT_SOURCE_DIR}/cocos/base
${CMAKE_CURRENT_SOURCE_DIR}/cocos/deprecated
${CMAKE_CURRENT_SOURCE_DIR}/cocos/physics ${CMAKE_CURRENT_SOURCE_DIR}/cocos/physics
${CMAKE_CURRENT_SOURCE_DIR}/cocos/editor-support ${CMAKE_CURRENT_SOURCE_DIR}/cocos/editor-support
${CMAKE_CURRENT_SOURCE_DIR}/cocos/math/kazmath ${CMAKE_CURRENT_SOURCE_DIR}/cocos/math/kazmath

View File

@ -30,7 +30,6 @@ CCClippingNode.cpp \
CCComponent.cpp \ CCComponent.cpp \
CCComponentContainer.cpp \ CCComponentContainer.cpp \
CCConfiguration.cpp \ CCConfiguration.cpp \
CCDeprecated.cpp \
CCDirector.cpp \ CCDirector.cpp \
CCDrawingPrimitives.cpp \ CCDrawingPrimitives.cpp \
CCDrawNode.cpp \ CCDrawNode.cpp \
@ -128,20 +127,21 @@ renderer/CCRenderer.cpp \
renderer/CCRenderMaterial.cpp \ renderer/CCRenderMaterial.cpp \
../base/atitc.cpp \ ../base/atitc.cpp \
../base/CCAffineTransform.cpp \ ../base/CCAffineTransform.cpp \
../base/CCArray.cpp \
../base/CCAutoreleasePool.cpp \ ../base/CCAutoreleasePool.cpp \
../base/CCConsole.cpp \ ../base/CCConsole.cpp \
../base/CCData.cpp \ ../base/CCData.cpp \
../base/CCDataVisitor.cpp \ ../base/CCDataVisitor.cpp \
../base/CCDictionary.cpp \
../base/CCGeometry.cpp \ ../base/CCGeometry.cpp \
../base/CCNS.cpp \ ../base/CCNS.cpp \
../base/CCRef.cpp \ ../base/CCRef.cpp \
../base/CCSet.cpp \
../base/CCString.cpp \
../base/CCValue.cpp \ ../base/CCValue.cpp \
../base/etc1.cpp \ ../base/etc1.cpp \
../base/s3tc.cpp \ ../base/s3tc.cpp \
../deprecated/CCArray.cpp \
../deprecated/CCSet.cpp \
../deprecated/CCString.cpp \
../deprecated/CCDictionary.cpp \
../deprecated/CCDeprecated.cpp \
../math/kazmath/kazmath/aabb.c \ ../math/kazmath/kazmath/aabb.c \
../math/kazmath/kazmath/mat3.c \ ../math/kazmath/kazmath/mat3.c \
../math/kazmath/kazmath/mat4.c \ ../math/kazmath/kazmath/mat4.c \
@ -174,22 +174,26 @@ renderer/CCRenderMaterial.cpp \
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/renderer \ $(LOCAL_PATH)/renderer \
$(LOCAL_PATH)/../math/kazmath \ $(LOCAL_PATH)/../math/kazmath \
platform/android \ platform/android \
$(LOCAL_PATH)/../physics \ $(LOCAL_PATH)/../physics \
$(LOCAL_PATH)/../base \ $(LOCAL_PATH)/../base \
$(LOCAL_PATH)/../deprecated \
$(LOCAL_PATH)/../../external/tinyxml2 \ $(LOCAL_PATH)/../../external/tinyxml2 \
$(LOCAL_PATH)/../../external/unzip \ $(LOCAL_PATH)/../../external/unzip \
$(LOCAL_PATH)/../../external/chipmunk/include/chipmunk \ $(LOCAL_PATH)/../../external/chipmunk/include/chipmunk \
$(LOCAL_PATH)/../../external/xxhash $(LOCAL_PATH)/../../external/xxhash
LOCAL_C_INCLUDES := $(LOCAL_PATH) \ LOCAL_C_INCLUDES := $(LOCAL_PATH) \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/renderer \ $(LOCAL_PATH)/renderer \
$(LOCAL_PATH)/../math/kazmath \ $(LOCAL_PATH)/../math/kazmath \
$(LOCAL_PATH)/platform/android \ $(LOCAL_PATH)/platform/android \
$(LOCAL_PATH)/../physics \ $(LOCAL_PATH)/../physics \
$(LOCAL_PATH)/../base \ $(LOCAL_PATH)/../base \
$(LOCAL_PATH)/../deprecated \
$(LOCAL_PATH)/../../external/tinyxml2 \ $(LOCAL_PATH)/../../external/tinyxml2 \
$(LOCAL_PATH)/../../external/unzip \ $(LOCAL_PATH)/../../external/unzip \
$(LOCAL_PATH)/../../external/chipmunk/include/chipmunk \ $(LOCAL_PATH)/../../external/chipmunk/include/chipmunk \

View File

@ -31,7 +31,6 @@
#include "ccMacros.h" #include "ccMacros.h"
#include "CCAffineTransform.h" #include "CCAffineTransform.h"
#include "CCArray.h"
#include "CCGL.h" #include "CCGL.h"
#include "ccGLStateCache.h" #include "ccGLStateCache.h"
#include "CCGLProgram.h" #include "CCGLProgram.h"

View File

@ -130,13 +130,11 @@ set(COCOS2D_SRC
ccFPSImages.c ccFPSImages.c
ccTypes.cpp ccTypes.cpp
cocos2d.cpp cocos2d.cpp
CCDeprecated.cpp
platform/CCSAXParser.cpp platform/CCSAXParser.cpp
platform/CCThread.cpp platform/CCThread.cpp
platform/CCGLViewProtocol.cpp platform/CCGLViewProtocol.cpp
platform/CCFileUtils.cpp platform/CCFileUtils.cpp
platform/CCImage.cpp platform/CCImage.cpp
../../external/edtaa3func/edtaa3func.cpp
renderer/CCCustomCommand.cpp renderer/CCCustomCommand.cpp
renderer/CCFrustum.cpp renderer/CCFrustum.cpp
renderer/CCGroupCommand.cpp renderer/CCGroupCommand.cpp
@ -146,6 +144,8 @@ set(COCOS2D_SRC
renderer/CCRenderCommand.cpp renderer/CCRenderCommand.cpp
renderer/CCRenderer.cpp renderer/CCRenderer.cpp
renderer/CCRenderMaterial.cpp renderer/CCRenderMaterial.cpp
../deprecated/CCDeprecated.cpp
../../external/edtaa3func/edtaa3func.cpp
) )
include(../physics/CMakeLists.txt) include(../physics/CMakeLists.txt)

View File

@ -1,13 +1,13 @@
set(COCOS_BASE_SRC set(COCOS_BASE_SRC
../deprecated/CCSet.cpp
../deprecated/CCArray.cpp
../deprecated/CCDictionary.cpp
../deprecated/CCString.cpp
CCAffineTransform.cpp CCAffineTransform.cpp
CCAutoreleasePool.cpp CCAutoreleasePool.cpp
CCGeometry.cpp CCGeometry.cpp
CCNS.cpp CCNS.cpp
CCRef.cpp CCRef.cpp
CCSet.cpp
CCArray.cpp
CCDictionary.cpp
CCString.cpp
CCDataVisitor.cpp CCDataVisitor.cpp
CCData.cpp CCData.cpp
CCValue.cpp CCValue.cpp

View File

@ -58,6 +58,7 @@ include_directories(
${COCOS2D_ROOT}/cocos/2d/platform/desktop ${COCOS2D_ROOT}/cocos/2d/platform/desktop
${COCOS2D_ROOT}/cocos/2d/platform/linux ${COCOS2D_ROOT}/cocos/2d/platform/linux
${COCOS2D_ROOT}/cocos/base ${COCOS2D_ROOT}/cocos/base
${COCOS2D_ROOT}/cocos/deprecated
${COCOS2D_ROOT}/cocos/physics ${COCOS2D_ROOT}/cocos/physics
${COCOS2D_ROOT}/cocos/editor-support ${COCOS2D_ROOT}/cocos/editor-support
${COCOS2D_ROOT}/cocos/math/kazmath ${COCOS2D_ROOT}/cocos/math/kazmath

View File

@ -64,6 +64,7 @@ include_directories(
${COCOS2D_ROOT}/cocos/2d/platform/desktop ${COCOS2D_ROOT}/cocos/2d/platform/desktop
${COCOS2D_ROOT}/cocos/2d/platform/linux ${COCOS2D_ROOT}/cocos/2d/platform/linux
${COCOS2D_ROOT}/cocos/base ${COCOS2D_ROOT}/cocos/base
${COCOS2D_ROOT}/cocos/deprecated
${COCOS2D_ROOT}/cocos/physics ${COCOS2D_ROOT}/cocos/physics
${COCOS2D_ROOT}/cocos/editor-support ${COCOS2D_ROOT}/cocos/editor-support
${COCOS2D_ROOT}/cocos/math/kazmath ${COCOS2D_ROOT}/cocos/math/kazmath