mirror of https://github.com/axmolengine/axmol.git
209 lines
5.3 KiB
Makefile
209 lines
5.3 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := cocos2dx_static
|
|
|
|
LOCAL_MODULE_FILENAME := libcocos2d
|
|
|
|
LOCAL_SRC_FILES := \
|
|
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 \
|
|
CCEventListenerTouch.cpp \
|
|
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 \
|
|
../base/etc1.cpp \
|
|
../base/s3tc.cpp \
|
|
../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 \
|
|
../physics/box2d/CCPhysicsBodyInfo.cpp \
|
|
../physics/box2d/CCPhysicsContactInfo.cpp \
|
|
../physics/box2d/CCPhysicsJointInfo.cpp \
|
|
../physics/box2d/CCPhysicsShapeInfo.cpp \
|
|
../physics/box2d/CCPhysicsWorldInfo.cpp \
|
|
../physics/chipmunk/CCPhysicsBodyInfo.cpp \
|
|
../physics/chipmunk/CCPhysicsContactInfo.cpp \
|
|
../physics/chipmunk/CCPhysicsJointInfo.cpp \
|
|
../physics/chipmunk/CCPhysicsShapeInfo.cpp \
|
|
../physics/chipmunk/CCPhysicsWorldInfo.cpp \
|
|
../../external/tinyxml2/tinyxml2.cpp \
|
|
../../external/unzip/ioapi.cpp \
|
|
../../external/unzip/unzip.cpp
|
|
|
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
|
$(LOCAL_PATH)/../math/kazmath/include \
|
|
platform/android \
|
|
$(LOCAL_PATH)/../physics \
|
|
$(LOCAL_PATH)/../base \
|
|
$(LOCAL_PATH)/../../external/tinyxml2 \
|
|
$(LOCAL_PATH)/../../external/unzip \
|
|
$(LOCAL_PATH)/../../external/chipmunk/include/chipmunk
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
|
$(LOCAL_PATH)/../math/kazmath/include \
|
|
$(LOCAL_PATH)/platform/android \
|
|
$(LOCAL_PATH)/../physics \
|
|
$(LOCAL_PATH)/../base \
|
|
$(LOCAL_PATH)/../../external/tinyxml2 \
|
|
$(LOCAL_PATH)/../../external/unzip \
|
|
$(LOCAL_PATH)/../../external/chipmunk/include/chipmunk
|
|
|
|
|
|
LOCAL_LDLIBS := -lGLESv2 \
|
|
-llog \
|
|
-lz \
|
|
-landroid
|
|
|
|
LOCAL_EXPORT_LDLIBS := -lGLESv2 \
|
|
-llog \
|
|
-lz \
|
|
-landroid
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_freetype2_static
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dxandroid_static
|
|
|
|
# define the macro to compile through support/zip_support/ioapi.c
|
|
LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API
|
|
LOCAL_CPPFLAGS := -Wno-literal-suffix
|
|
LOCAL_EXPORT_CFLAGS := -Wno-psabi -DUSE_FILE32API
|
|
LOCAL_EXPORT_CPPFLAGS := -Wno-literal-suffix
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
$(call import-module,freetype2/prebuilt/android)
|
|
$(call import-module,chipmunk)
|
|
$(call import-module,2d/platform/android)
|