2014-05-02 05:09:26 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-08-27 22:54:28 +08:00
|
|
|
LOCAL_MODULE := cocos2dx_internal_static
|
2014-05-02 05:09:26 +08:00
|
|
|
|
2014-08-27 22:54:28 +08:00
|
|
|
LOCAL_MODULE_FILENAME := libcocos2dxinternal
|
2014-05-02 05:09:26 +08:00
|
|
|
|
2015-01-21 18:29:28 +08:00
|
|
|
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
|
|
|
MATHNEONFILE := math/MathUtil.cpp.neon
|
|
|
|
else
|
|
|
|
MATHNEONFILE := math/MathUtil.cpp
|
|
|
|
endif
|
|
|
|
|
2014-05-02 05:09:26 +08:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
cocos2d.cpp \
|
2014-05-10 05:38:36 +08:00
|
|
|
2d/CCAction.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCActionCamera.cpp \
|
|
|
|
2d/CCActionCatmullRom.cpp \
|
|
|
|
2d/CCActionEase.cpp \
|
|
|
|
2d/CCActionGrid.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCActionGrid3D.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCActionInstant.cpp \
|
|
|
|
2d/CCActionInterval.cpp \
|
|
|
|
2d/CCActionManager.cpp \
|
|
|
|
2d/CCActionPageTurn3D.cpp \
|
|
|
|
2d/CCActionProgressTimer.cpp \
|
|
|
|
2d/CCActionTiledGrid.cpp \
|
|
|
|
2d/CCActionTween.cpp \
|
|
|
|
2d/CCAnimation.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCAnimationCache.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCAtlasNode.cpp \
|
2014-10-20 16:25:24 +08:00
|
|
|
2d/CCCamera.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCClippingNode.cpp \
|
2014-10-11 11:49:01 +08:00
|
|
|
2d/CCClippingRectangleNode.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCComponent.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCComponentContainer.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCDrawNode.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCDrawingPrimitives.cpp \
|
|
|
|
2d/CCFont.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCFontAtlas.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCFontAtlasCache.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCFontCharMap.cpp \
|
|
|
|
2d/CCFontFNT.cpp \
|
|
|
|
2d/CCFontFreeType.cpp \
|
|
|
|
2d/CCGLBufferedNode.cpp \
|
|
|
|
2d/CCGrabber.cpp \
|
|
|
|
2d/CCGrid.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCLabel.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCLabelAtlas.cpp \
|
|
|
|
2d/CCLabelBMFont.cpp \
|
|
|
|
2d/CCLabelTTF.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCLabelTextFormatter.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCLayer.cpp \
|
2014-10-20 16:25:24 +08:00
|
|
|
2d/CCLight.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCMenu.cpp \
|
|
|
|
2d/CCMenuItem.cpp \
|
|
|
|
2d/CCMotionStreak.cpp \
|
|
|
|
2d/CCNode.cpp \
|
|
|
|
2d/CCNodeGrid.cpp \
|
|
|
|
2d/CCParallaxNode.cpp \
|
|
|
|
2d/CCParticleBatchNode.cpp \
|
|
|
|
2d/CCParticleExamples.cpp \
|
|
|
|
2d/CCParticleSystem.cpp \
|
|
|
|
2d/CCParticleSystemQuad.cpp \
|
|
|
|
2d/CCProgressTimer.cpp \
|
2014-07-31 16:38:55 +08:00
|
|
|
2d/CCProtectedNode.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCRenderTexture.cpp \
|
|
|
|
2d/CCScene.cpp \
|
|
|
|
2d/CCSprite.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCSpriteBatchNode.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCSpriteFrame.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCSpriteFrameCache.cpp \
|
2015-04-23 00:51:47 +08:00
|
|
|
2d/MarchingSquare.cpp \
|
2015-04-28 09:17:00 +08:00
|
|
|
2d/SpritePolygon.cpp \
|
|
|
|
2d/SpritePolygonCache.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCTMXLayer.cpp \
|
2014-06-19 15:57:13 +08:00
|
|
|
2d/CCFastTMXLayer.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCTMXObjectGroup.cpp \
|
|
|
|
2d/CCTMXTiledMap.cpp \
|
2014-06-19 15:57:13 +08:00
|
|
|
2d/CCFastTMXTiledMap.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCTMXXMLParser.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
2d/CCTextFieldTTF.cpp \
|
|
|
|
2d/CCTileMapAtlas.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
2d/CCTransition.cpp \
|
|
|
|
2d/CCTransitionPageTurn.cpp \
|
|
|
|
2d/CCTransitionProgress.cpp \
|
|
|
|
2d/CCTweenFunction.cpp \
|
2014-12-18 18:14:16 +08:00
|
|
|
3d/CCFrustum.cpp \
|
|
|
|
3d/CCPlane.cpp \
|
2014-07-31 00:53:04 +08:00
|
|
|
platform/CCGLView.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
platform/CCFileUtils.cpp \
|
|
|
|
platform/CCSAXParser.cpp \
|
|
|
|
platform/CCThread.cpp \
|
|
|
|
platform/CCImage.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
math/CCAffineTransform.cpp \
|
|
|
|
math/CCGeometry.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
math/CCVertex.cpp \
|
2015-01-21 18:29:28 +08:00
|
|
|
$(MATHNEONFILE) \
|
2014-05-17 05:36:00 +08:00
|
|
|
math/Mat4.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
math/Quaternion.cpp \
|
|
|
|
math/TransformUtils.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
math/Vec2.cpp \
|
|
|
|
math/Vec3.cpp \
|
|
|
|
math/Vec4.cpp \
|
2014-12-17 10:06:07 +08:00
|
|
|
base/CCAsyncTaskPool.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCAutoreleasePool.cpp \
|
|
|
|
base/CCConfiguration.cpp \
|
|
|
|
base/CCConsole.cpp \
|
|
|
|
base/CCData.cpp \
|
|
|
|
base/CCDataVisitor.cpp \
|
|
|
|
base/CCDirector.cpp \
|
|
|
|
base/CCEvent.cpp \
|
|
|
|
base/CCEventAcceleration.cpp \
|
|
|
|
base/CCEventCustom.cpp \
|
|
|
|
base/CCEventDispatcher.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/CCEventFocus.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCEventKeyboard.cpp \
|
2014-06-30 00:28:21 +08:00
|
|
|
base/CCEventController.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCEventListener.cpp \
|
2014-06-30 00:28:21 +08:00
|
|
|
base/CCEventListenerController.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCEventListenerAcceleration.cpp \
|
|
|
|
base/CCEventListenerCustom.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/CCEventListenerFocus.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCEventListenerKeyboard.cpp \
|
|
|
|
base/CCEventListenerMouse.cpp \
|
|
|
|
base/CCEventListenerTouch.cpp \
|
|
|
|
base/CCEventMouse.cpp \
|
|
|
|
base/CCEventTouch.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/CCIMEDispatcher.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCNS.cpp \
|
|
|
|
base/CCProfiling.cpp \
|
2014-08-12 11:46:14 +08:00
|
|
|
base/ccRandom.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCRef.cpp \
|
|
|
|
base/CCScheduler.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/CCScriptSupport.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCTouch.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/CCUserDefault.cpp \
|
2014-09-10 07:50:02 +08:00
|
|
|
base/CCUserDefault-android.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/CCValue.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/TGAlib.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/ZipUtils.cpp \
|
|
|
|
base/atitc.cpp \
|
|
|
|
base/base64.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/ccCArray.cpp \
|
|
|
|
base/ccFPSImages.c \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/ccTypes.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
base/ccUTF8.cpp \
|
|
|
|
base/ccUtils.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/etc1.cpp \
|
2014-03-18 02:28:24 +08:00
|
|
|
base/pvr.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
base/s3tc.cpp \
|
2014-07-04 17:01:41 +08:00
|
|
|
base/CCController.cpp \
|
2014-06-30 00:28:21 +08:00
|
|
|
base/CCController-android.cpp \
|
2014-12-16 08:21:12 +08:00
|
|
|
base/allocator/CCAllocatorDiagnostics.cpp \
|
|
|
|
base/allocator/CCAllocatorGlobal.cpp \
|
|
|
|
base/allocator/CCAllocatorGlobalNewDelete.cpp \
|
2014-06-04 14:53:32 +08:00
|
|
|
base/ObjectFactory.cpp \
|
2014-05-10 05:38:36 +08:00
|
|
|
renderer/CCBatchCommand.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
renderer/CCCustomCommand.cpp \
|
2014-05-10 05:38:36 +08:00
|
|
|
renderer/CCGLProgram.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
renderer/CCGLProgramCache.cpp \
|
2014-05-10 05:38:36 +08:00
|
|
|
renderer/CCGLProgramState.cpp \
|
|
|
|
renderer/CCGLProgramStateCache.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
renderer/CCGroupCommand.cpp \
|
|
|
|
renderer/CCQuadCommand.cpp \
|
2014-05-19 05:49:16 +08:00
|
|
|
renderer/CCMeshCommand.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
renderer/CCRenderCommand.cpp \
|
|
|
|
renderer/CCRenderer.cpp \
|
2014-05-17 05:36:00 +08:00
|
|
|
renderer/CCTexture2D.cpp \
|
|
|
|
renderer/CCTextureAtlas.cpp \
|
|
|
|
renderer/CCTextureCache.cpp \
|
|
|
|
renderer/ccGLStateCache.cpp \
|
2014-05-11 13:22:42 +08:00
|
|
|
renderer/ccShaders.cpp \
|
2014-08-07 14:15:49 +08:00
|
|
|
renderer/CCVertexIndexBuffer.cpp \
|
|
|
|
renderer/CCVertexIndexData.cpp \
|
|
|
|
renderer/CCPrimitive.cpp \
|
|
|
|
renderer/CCPrimitiveCommand.cpp \
|
2014-09-01 13:57:33 +08:00
|
|
|
renderer/CCTrianglesCommand.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
deprecated/CCArray.cpp \
|
|
|
|
deprecated/CCSet.cpp \
|
|
|
|
deprecated/CCString.cpp \
|
|
|
|
deprecated/CCDictionary.cpp \
|
|
|
|
deprecated/CCDeprecated.cpp \
|
|
|
|
deprecated/CCNotificationCenter.cpp \
|
|
|
|
physics/CCPhysicsBody.cpp \
|
|
|
|
physics/CCPhysicsContact.cpp \
|
|
|
|
physics/CCPhysicsJoint.cpp \
|
|
|
|
physics/CCPhysicsShape.cpp \
|
|
|
|
physics/CCPhysicsWorld.cpp \
|
2014-05-08 17:29:34 +08:00
|
|
|
../external/ConvertUTF/ConvertUTFWrapper.cpp \
|
|
|
|
../external/ConvertUTF/ConvertUTF.c \
|
2014-05-02 05:09:26 +08:00
|
|
|
../external/tinyxml2/tinyxml2.cpp \
|
2014-10-08 18:44:58 +08:00
|
|
|
../external/unzip/ioapi_mem.cpp \
|
2014-05-02 05:09:26 +08:00
|
|
|
../external/unzip/ioapi.cpp \
|
|
|
|
../external/unzip/unzip.cpp \
|
|
|
|
../external/edtaa3func/edtaa3func.cpp \
|
2015-04-23 00:51:47 +08:00
|
|
|
../external/xxhash/xxhash.c \
|
|
|
|
../external/poly2tri/common/shapes.cc \
|
|
|
|
../external/poly2tri/sweep/advancing_front.cc \
|
|
|
|
../external/poly2tri/sweep/cdt.cc \
|
|
|
|
../external/poly2tri/sweep/sweep_context.cc \
|
|
|
|
../external/poly2tri/sweep/sweep.cc
|
2014-05-02 05:09:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
2014-08-27 20:58:32 +08:00
|
|
|
$(LOCAL_PATH)/. \
|
2014-10-17 10:13:33 +08:00
|
|
|
$(LOCAL_PATH)/.. \
|
2014-09-10 17:49:26 +08:00
|
|
|
$(LOCAL_PATH)/platform \
|
2014-08-21 15:40:42 +08:00
|
|
|
$(LOCAL_PATH)/base \
|
2014-10-17 10:13:33 +08:00
|
|
|
$(LOCAL_PATH)/../external \
|
2014-05-02 05:09:26 +08:00
|
|
|
$(LOCAL_PATH)/../external/tinyxml2 \
|
|
|
|
$(LOCAL_PATH)/../external/unzip \
|
|
|
|
$(LOCAL_PATH)/../external/chipmunk/include/chipmunk \
|
2014-06-30 00:28:21 +08:00
|
|
|
$(LOCAL_PATH)/../external/xxhash \
|
2015-04-23 00:51:47 +08:00
|
|
|
$(LOCAL_PATH)/../external/nslog \
|
|
|
|
$(LOCAL_PATH)/../external/poly2tri \
|
|
|
|
$(LOCAL_PATH)/../external/poly2tri/common \
|
|
|
|
$(LOCAL_PATH)/../external/poly2tri/sweep
|
2014-05-02 05:09:26 +08:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
2014-08-27 20:58:32 +08:00
|
|
|
$(LOCAL_PATH)/. \
|
2014-09-10 17:49:26 +08:00
|
|
|
$(LOCAL_PATH)/platform \
|
2014-06-17 13:45:58 +08:00
|
|
|
$(LOCAL_PATH)/../external \
|
2014-05-02 05:09:26 +08:00
|
|
|
$(LOCAL_PATH)/../external/tinyxml2 \
|
|
|
|
$(LOCAL_PATH)/../external/unzip \
|
|
|
|
$(LOCAL_PATH)/../external/chipmunk/include/chipmunk \
|
|
|
|
$(LOCAL_PATH)/../external/edtaa3func \
|
2014-05-08 11:12:22 +08:00
|
|
|
$(LOCAL_PATH)/../external/xxhash \
|
2014-06-30 00:28:21 +08:00
|
|
|
$(LOCAL_PATH)/../external/ConvertUTF \
|
2015-04-23 00:51:47 +08:00
|
|
|
$(LOCAL_PATH)/../external/nslog \
|
|
|
|
$(LOCAL_PATH)/../external/poly2tri \
|
|
|
|
$(LOCAL_PATH)/../external/poly2tri/common \
|
|
|
|
$(LOCAL_PATH)/../external/poly2tri/sweep
|
2014-05-02 05:09:26 +08:00
|
|
|
|
|
|
|
LOCAL_EXPORT_LDLIBS := -lGLESv2 \
|
|
|
|
-llog \
|
|
|
|
-landroid
|
|
|
|
|
2014-08-19 15:29:40 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := cocos_freetype2_static
|
|
|
|
LOCAL_STATIC_LIBRARIES += cocos_png_static
|
2014-08-21 15:41:05 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES += cocos_jpeg_static
|
|
|
|
LOCAL_STATIC_LIBRARIES += cocos_tiff_static
|
|
|
|
LOCAL_STATIC_LIBRARIES += cocos_webp_static
|
2014-09-05 11:39:11 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES += cocos_chipmunk_static
|
2015-04-02 17:13:25 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES += cocos_zlib_static
|
2014-08-22 14:01:17 +08:00
|
|
|
|
2014-08-19 15:29:40 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dxandroid_static
|
2014-05-02 05:09:26 +08:00
|
|
|
|
|
|
|
# define the macro to compile through support/zip_support/ioapi.c
|
2014-07-03 11:43:56 +08:00
|
|
|
LOCAL_CFLAGS := -DUSE_FILE32API
|
2015-04-23 00:51:47 +08:00
|
|
|
LOCAL_CFLAGS += -fexceptions
|
2014-07-14 17:53:55 +08:00
|
|
|
LOCAL_CPPFLAGS := -Wno-deprecated-declarations -Wno-extern-c-compat
|
2014-07-03 11:43:56 +08:00
|
|
|
LOCAL_EXPORT_CFLAGS := -DUSE_FILE32API
|
2014-07-14 17:53:55 +08:00
|
|
|
LOCAL_EXPORT_CPPFLAGS := -Wno-deprecated-declarations -Wno-extern-c-compat
|
2014-05-02 05:09:26 +08:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2014-08-27 22:54:28 +08:00
|
|
|
#==============================================================
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := cocos2dx_static
|
|
|
|
LOCAL_MODULE_FILENAME := libcocos2d
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := cocostudio_static
|
|
|
|
LOCAL_STATIC_LIBRARIES += cocosbuilder_static
|
2014-10-17 10:13:33 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES += cocos3d_static
|
2014-08-27 22:54:28 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES += spine_static
|
|
|
|
LOCAL_STATIC_LIBRARIES += cocos_network_static
|
2014-10-17 10:13:33 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES += audioengine_static
|
2014-08-27 22:54:28 +08:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
#==============================================================
|
2014-05-02 05:09:26 +08:00
|
|
|
$(call import-module,freetype2/prebuilt/android)
|
2014-05-17 05:36:00 +08:00
|
|
|
$(call import-module,platform/android)
|
2014-06-30 10:31:37 +08:00
|
|
|
$(call import-module,png/prebuilt/android)
|
2015-04-02 17:13:25 +08:00
|
|
|
$(call import-module,zlib/prebuilt/android)
|
2014-08-21 15:41:05 +08:00
|
|
|
$(call import-module,jpeg/prebuilt/android)
|
|
|
|
$(call import-module,tiff/prebuilt/android)
|
|
|
|
$(call import-module,webp/prebuilt/android)
|
2014-09-05 11:39:11 +08:00
|
|
|
$(call import-module,chipmunk/prebuilt/android)
|
2014-08-27 20:58:32 +08:00
|
|
|
$(call import-module,3d)
|
|
|
|
$(call import-module,audio/android)
|
|
|
|
$(call import-module,editor-support/cocosbuilder)
|
|
|
|
$(call import-module,editor-support/cocostudio)
|
|
|
|
$(call import-module,editor-support/spine)
|
|
|
|
$(call import-module,network)
|
|
|
|
$(call import-module,ui)
|
|
|
|
$(call import-module,extensions)
|
|
|
|
$(call import-module,Box2D)
|
2014-08-22 13:43:18 +08:00
|
|
|
$(call import-module,curl/prebuilt/android)
|
|
|
|
$(call import-module,websockets/prebuilt/android)
|
2014-11-21 18:08:09 +08:00
|
|
|
$(call import-module,flatbuffers)
|