2012-05-29 16:21:23 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := cocos2dx_static
|
|
|
|
|
|
|
|
LOCAL_MODULE_FILENAME := libcocos2d
|
|
|
|
|
2013-08-05 16:57:20 +08:00
|
|
|
LOCAL_SRC_FILES := \
|
2013-10-16 16:48:39 +08:00
|
|
|
base64.cpp \
|
|
|
|
CCAction.cpp \
|
|
|
|
CCActionCamera.cpp \
|
|
|
|
CCActionCatmullRom.cpp \
|
|
|
|
CCActionEase.cpp \
|
|
|
|
CCActionGrid.cpp \
|
|
|
|
CCActionGrid3D.cpp \
|
|
|
|
CCActionInstant.cpp \
|
|
|
|
CCActionInterval.cpp \
|
|
|
|
CCActionManager.cpp \
|
|
|
|
CCActionPageTurn3D.cpp \
|
|
|
|
CCActionProgressTimer.cpp \
|
|
|
|
CCActionTiledGrid.cpp \
|
|
|
|
CCActionTween.cpp \
|
|
|
|
CCAnimation.cpp \
|
|
|
|
CCAnimationCache.cpp \
|
|
|
|
CCAtlasNode.cpp \
|
|
|
|
CCCamera.cpp \
|
|
|
|
ccCArray.cpp \
|
|
|
|
CCClippingNode.cpp \
|
|
|
|
CCComponent.cpp \
|
|
|
|
CCComponentContainer.cpp \
|
|
|
|
CCConfiguration.cpp \
|
|
|
|
CCDeprecated.cpp \
|
|
|
|
CCDirector.cpp \
|
|
|
|
CCDrawingPrimitives.cpp \
|
|
|
|
CCDrawNode.cpp \
|
|
|
|
CCEvent.cpp \
|
|
|
|
CCEventAcceleration.cpp \
|
|
|
|
CCEventCustom.cpp \
|
|
|
|
CCEventDispatcher.cpp \
|
|
|
|
CCEventKeyboard.cpp \
|
|
|
|
CCEventListener.cpp \
|
|
|
|
CCEventListenerAcceleration.cpp \
|
|
|
|
CCEventListenerCustom.cpp \
|
|
|
|
CCEventListenerKeyboard.cpp \
|
2013-11-26 18:22:52 +08:00
|
|
|
CCEventListenerMouse.cpp \
|
2013-10-16 16:48:39 +08:00
|
|
|
CCEventListenerTouch.cpp \
|
2013-11-26 18:22:52 +08:00
|
|
|
CCEventMouse.cpp \
|
2013-10-16 16:48:39 +08:00
|
|
|
CCEventTouch.cpp \
|
|
|
|
CCFont.cpp \
|
|
|
|
CCFontAtlas.cpp \
|
|
|
|
CCFontAtlasCache.cpp \
|
|
|
|
CCFontAtlasFactory.cpp \
|
|
|
|
CCFontDefinition.cpp \
|
|
|
|
CCFontFNT.cpp \
|
|
|
|
CCFontFreeType.cpp \
|
|
|
|
ccFPSImages.c \
|
|
|
|
CCGLBufferedNode.cpp \
|
|
|
|
CCGLProgram.cpp \
|
|
|
|
ccGLStateCache.cpp \
|
|
|
|
CCGrabber.cpp \
|
|
|
|
CCGrid.cpp \
|
|
|
|
CCIMEDispatcher.cpp \
|
|
|
|
CCLabel.cpp \
|
|
|
|
CCLabelAtlas.cpp \
|
|
|
|
CCLabelBMFont.cpp \
|
|
|
|
CCLabelTextFormatter.cpp \
|
|
|
|
CCLabelTTF.cpp \
|
|
|
|
CCLayer.cpp \
|
|
|
|
CCMenu.cpp \
|
|
|
|
CCMenuItem.cpp \
|
|
|
|
CCMotionStreak.cpp \
|
|
|
|
CCNode.cpp \
|
|
|
|
CCNotificationCenter.cpp \
|
|
|
|
CCParallaxNode.cpp \
|
|
|
|
CCParticleBatchNode.cpp \
|
|
|
|
CCParticleExamples.cpp \
|
|
|
|
CCParticleSystem.cpp \
|
|
|
|
CCParticleSystemQuad.cpp \
|
|
|
|
CCProfiling.cpp \
|
|
|
|
CCProgressTimer.cpp \
|
|
|
|
CCRenderTexture.cpp \
|
|
|
|
CCScene.cpp \
|
|
|
|
CCScheduler.cpp \
|
|
|
|
CCScriptSupport.cpp \
|
|
|
|
CCShaderCache.cpp \
|
|
|
|
ccShaders.cpp \
|
|
|
|
CCSprite.cpp \
|
|
|
|
CCSpriteBatchNode.cpp \
|
|
|
|
CCSpriteFrame.cpp \
|
|
|
|
CCSpriteFrameCache.cpp \
|
|
|
|
CCTextFieldTTF.cpp \
|
|
|
|
CCTextImage.cpp \
|
|
|
|
CCTexture2D.cpp \
|
|
|
|
CCTextureAtlas.cpp \
|
|
|
|
CCTextureCache.cpp \
|
|
|
|
CCTileMapAtlas.cpp \
|
|
|
|
CCTMXLayer.cpp \
|
|
|
|
CCTMXObjectGroup.cpp \
|
|
|
|
CCTMXTiledMap.cpp \
|
|
|
|
CCTMXXMLParser.cpp \
|
|
|
|
CCTouch.cpp \
|
|
|
|
CCTransition.cpp \
|
|
|
|
CCTransitionPageTurn.cpp \
|
|
|
|
CCTransitionProgress.cpp \
|
|
|
|
ccTypes.cpp \
|
|
|
|
CCUserDefault.cpp \
|
|
|
|
CCUserDefaultAndroid.cpp \
|
|
|
|
ccUTF8.cpp \
|
|
|
|
ccUtils.cpp \
|
|
|
|
CCVertex.cpp \
|
|
|
|
cocos2d.cpp \
|
|
|
|
TGAlib.cpp \
|
|
|
|
TransformUtils.cpp \
|
|
|
|
ZipUtils.cpp \
|
|
|
|
platform/CCEGLViewProtocol.cpp \
|
|
|
|
platform/CCFileUtils.cpp \
|
|
|
|
platform/CCSAXParser.cpp \
|
|
|
|
platform/CCThread.cpp \
|
|
|
|
../base/atitc.cpp \
|
|
|
|
../base/CCAffineTransform.cpp \
|
|
|
|
../base/CCArray.cpp \
|
|
|
|
../base/CCAutoreleasePool.cpp \
|
|
|
|
../base/CCData.cpp \
|
|
|
|
../base/CCDataVisitor.cpp \
|
|
|
|
../base/CCDictionary.cpp \
|
|
|
|
../base/CCGeometry.cpp \
|
|
|
|
../base/CCNS.cpp \
|
|
|
|
../base/CCObject.cpp \
|
|
|
|
../base/CCSet.cpp \
|
|
|
|
../base/CCString.cpp \
|
2013-12-04 16:18:22 +08:00
|
|
|
../base/CCValue.cpp \
|
2013-10-16 16:48:39 +08:00
|
|
|
../base/etc1.cpp \
|
|
|
|
../base/s3tc.cpp \
|
2013-12-05 11:16:01 +08:00
|
|
|
../base/CCConsole.cpp \
|
2013-10-16 16:48:39 +08:00
|
|
|
../math/kazmath/src/aabb.c \
|
|
|
|
../math/kazmath/src/mat3.c \
|
|
|
|
../math/kazmath/src/mat4.c \
|
|
|
|
../math/kazmath/src/neon_matrix_impl.c \
|
|
|
|
../math/kazmath/src/plane.c \
|
|
|
|
../math/kazmath/src/quaternion.c \
|
|
|
|
../math/kazmath/src/ray2.c \
|
|
|
|
../math/kazmath/src/utility.c \
|
|
|
|
../math/kazmath/src/vec2.c \
|
|
|
|
../math/kazmath/src/vec3.c \
|
|
|
|
../math/kazmath/src/vec4.c \
|
|
|
|
../math/kazmath/src/GL/mat4stack.c \
|
|
|
|
../math/kazmath/src/GL/matrix.c \
|
|
|
|
../physics/CCPhysicsBody.cpp \
|
|
|
|
../physics/CCPhysicsContact.cpp \
|
|
|
|
../physics/CCPhysicsJoint.cpp \
|
|
|
|
../physics/CCPhysicsShape.cpp \
|
|
|
|
../physics/CCPhysicsWorld.cpp \
|
2013-10-31 18:18:02 +08:00
|
|
|
../physics/chipmunk/CCPhysicsBodyInfo_chipmunk.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsContactInfo_chipmunk.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsJointInfo_chipmunk.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsShapeInfo_chipmunk.cpp \
|
|
|
|
../physics/chipmunk/CCPhysicsWorldInfo_chipmunk.cpp \
|
2013-10-16 16:48:39 +08:00
|
|
|
../../external/tinyxml2/tinyxml2.cpp \
|
|
|
|
../../external/unzip/ioapi.cpp \
|
|
|
|
../../external/unzip/unzip.cpp
|
2013-09-12 17:31:37 +08:00
|
|
|
|
2012-05-29 16:21:23 +08:00
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
2013-10-14 14:01:00 +08:00
|
|
|
$(LOCAL_PATH)/../math/kazmath/include \
|
2013-10-16 16:48:39 +08:00
|
|
|
platform/android \
|
2013-10-14 14:01:00 +08:00
|
|
|
$(LOCAL_PATH)/../physics \
|
|
|
|
$(LOCAL_PATH)/../base \
|
|
|
|
$(LOCAL_PATH)/../../external/tinyxml2 \
|
|
|
|
$(LOCAL_PATH)/../../external/unzip \
|
|
|
|
$(LOCAL_PATH)/../../external/chipmunk/include/chipmunk
|
2013-08-07 16:39:05 +08:00
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
2013-10-14 14:01:00 +08:00
|
|
|
$(LOCAL_PATH)/../math/kazmath/include \
|
2013-07-26 17:34:44 +08:00
|
|
|
$(LOCAL_PATH)/platform/android \
|
2013-10-14 14:01:00 +08:00
|
|
|
$(LOCAL_PATH)/../physics \
|
|
|
|
$(LOCAL_PATH)/../base \
|
|
|
|
$(LOCAL_PATH)/../../external/tinyxml2 \
|
|
|
|
$(LOCAL_PATH)/../../external/unzip \
|
|
|
|
$(LOCAL_PATH)/../../external/chipmunk/include/chipmunk
|
2013-07-26 17:34:44 +08:00
|
|
|
|
2012-05-29 16:21:23 +08:00
|
|
|
|
|
|
|
LOCAL_LDLIBS := -lGLESv2 \
|
|
|
|
-llog \
|
2013-03-19 07:10:15 +08:00
|
|
|
-lz \
|
|
|
|
-landroid
|
2012-05-29 16:21:23 +08:00
|
|
|
|
2013-03-19 07:08:35 +08:00
|
|
|
LOCAL_EXPORT_LDLIBS := -lGLESv2 \
|
|
|
|
-llog \
|
2013-03-19 07:10:15 +08:00
|
|
|
-lz \
|
|
|
|
-landroid
|
2013-03-19 07:08:35 +08:00
|
|
|
|
2013-10-18 15:39:09 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_freetype2_static
|
2013-09-17 19:24:30 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
|
2013-10-14 14:01:00 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dxandroid_static
|
2012-05-29 16:21:23 +08:00
|
|
|
|
2013-02-02 14:56:09 +08:00
|
|
|
# define the macro to compile through support/zip_support/ioapi.c
|
2013-10-17 15:04:30 +08:00
|
|
|
LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API
|
2013-12-12 10:35:13 +08:00
|
|
|
LOCAL_CPPFLAGS := -Wno-literal-suffix -Wno-deprecated-declarations
|
2013-07-25 15:04:26 +08:00
|
|
|
LOCAL_EXPORT_CFLAGS := -Wno-psabi -DUSE_FILE32API
|
2013-12-12 10:35:13 +08:00
|
|
|
LOCAL_EXPORT_CPPFLAGS := -Wno-literal-suffix -Wno-deprecated-declarations
|
2012-05-29 16:21:23 +08:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2013-10-14 14:01:00 +08:00
|
|
|
$(call import-module,freetype2/prebuilt/android)
|
|
|
|
$(call import-module,chipmunk)
|
|
|
|
$(call import-module,2d/platform/android)
|