2012-05-29 16:21:23 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := cocos2dx_static
|
|
|
|
|
|
|
|
LOCAL_MODULE_FILENAME := libcocos2d
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
CCConfiguration.cpp \
|
2013-07-25 17:48:22 +08:00
|
|
|
CCDeprecated.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
CCScheduler.cpp \
|
|
|
|
CCCamera.cpp \
|
2013-05-23 17:10:30 +08:00
|
|
|
ccFPSImages.c \
|
2013-07-05 17:32:50 +08:00
|
|
|
ccTypes.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
actions/CCAction.cpp \
|
|
|
|
actions/CCActionCamera.cpp \
|
2012-06-13 18:33:44 +08:00
|
|
|
actions/CCActionCatmullRom.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
actions/CCActionEase.cpp \
|
|
|
|
actions/CCActionGrid.cpp \
|
|
|
|
actions/CCActionGrid3D.cpp \
|
|
|
|
actions/CCActionInstant.cpp \
|
|
|
|
actions/CCActionInterval.cpp \
|
|
|
|
actions/CCActionManager.cpp \
|
|
|
|
actions/CCActionPageTurn3D.cpp \
|
|
|
|
actions/CCActionProgressTimer.cpp \
|
|
|
|
actions/CCActionTiledGrid.cpp \
|
|
|
|
actions/CCActionTween.cpp \
|
|
|
|
base_nodes/CCAtlasNode.cpp \
|
|
|
|
base_nodes/CCNode.cpp \
|
|
|
|
cocoa/CCAffineTransform.cpp \
|
|
|
|
cocoa/CCGeometry.cpp \
|
|
|
|
cocoa/CCAutoreleasePool.cpp \
|
|
|
|
cocoa/CCDictionary.cpp \
|
|
|
|
cocoa/CCNS.cpp \
|
|
|
|
cocoa/CCObject.cpp \
|
|
|
|
cocoa/CCSet.cpp \
|
|
|
|
cocoa/CCString.cpp \
|
|
|
|
cocoa/CCArray.cpp \
|
2013-05-10 15:37:40 +08:00
|
|
|
cocoa/CCDataVisitor.cpp \
|
2013-05-29 08:06:41 +08:00
|
|
|
cocoa/CCData.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
cocos2d.cpp \
|
|
|
|
CCDirector.cpp \
|
2012-11-16 14:23:14 +08:00
|
|
|
draw_nodes/CCDrawingPrimitives.cpp \
|
|
|
|
draw_nodes/CCDrawNode.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
effects/CCGrabber.cpp \
|
|
|
|
effects/CCGrid.cpp \
|
|
|
|
kazmath/src/aabb.c \
|
|
|
|
kazmath/src/mat3.c \
|
|
|
|
kazmath/src/mat4.c \
|
|
|
|
kazmath/src/neon_matrix_impl.c \
|
|
|
|
kazmath/src/plane.c \
|
|
|
|
kazmath/src/quaternion.c \
|
|
|
|
kazmath/src/ray2.c \
|
|
|
|
kazmath/src/utility.c \
|
|
|
|
kazmath/src/vec2.c \
|
|
|
|
kazmath/src/vec3.c \
|
|
|
|
kazmath/src/vec4.c \
|
|
|
|
kazmath/src/GL/mat4stack.c \
|
|
|
|
kazmath/src/GL/matrix.c \
|
|
|
|
keypad_dispatcher/CCKeypadDelegate.cpp \
|
|
|
|
keypad_dispatcher/CCKeypadDispatcher.cpp \
|
2013-07-01 17:35:51 +08:00
|
|
|
keyboard_dispatcher/CCKeyboardDispatcher.cpp \
|
2013-08-05 16:57:20 +08:00
|
|
|
label_nodes/CCFont.cpp \
|
|
|
|
label_nodes/CCFontAtlas.cpp \
|
|
|
|
label_nodes/CCFontAtlasCache.cpp \
|
|
|
|
label_nodes/CCFontAtlasFactory.cpp \
|
|
|
|
label_nodes/CCFontCache.cpp \
|
|
|
|
label_nodes/CCFontDefinition.cpp \
|
|
|
|
label_nodes/CCFontFNT.cpp \
|
|
|
|
label_nodes/CCFontFreeType.cpp \
|
|
|
|
label_nodes/CCFontRenderFreeType.cpp \
|
|
|
|
label_nodes/CCLabel.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
label_nodes/CCLabelAtlas.cpp \
|
|
|
|
label_nodes/CCLabelBMFont.cpp \
|
|
|
|
label_nodes/CCLabelTTF.cpp \
|
2013-08-05 16:57:20 +08:00
|
|
|
label_nodes/CCLabelTextFormatter.cpp \
|
|
|
|
label_nodes/CCStringBMFont.cpp \
|
|
|
|
label_nodes/CCStringTTF.cpp \
|
|
|
|
label_nodes/CCTextImage.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
layers_scenes_transitions_nodes/CCLayer.cpp \
|
|
|
|
layers_scenes_transitions_nodes/CCScene.cpp \
|
|
|
|
layers_scenes_transitions_nodes/CCTransitionPageTurn.cpp \
|
|
|
|
layers_scenes_transitions_nodes/CCTransition.cpp \
|
|
|
|
layers_scenes_transitions_nodes/CCTransitionProgress.cpp \
|
|
|
|
menu_nodes/CCMenu.cpp \
|
|
|
|
menu_nodes/CCMenuItem.cpp \
|
2012-11-16 14:23:14 +08:00
|
|
|
misc_nodes/CCClippingNode.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
misc_nodes/CCMotionStreak.cpp \
|
|
|
|
misc_nodes/CCProgressTimer.cpp \
|
|
|
|
misc_nodes/CCRenderTexture.cpp \
|
|
|
|
particle_nodes/CCParticleExamples.cpp \
|
|
|
|
particle_nodes/CCParticleSystem.cpp \
|
|
|
|
particle_nodes/CCParticleBatchNode.cpp \
|
|
|
|
particle_nodes/CCParticleSystemQuad.cpp \
|
|
|
|
platform/CCSAXParser.cpp \
|
|
|
|
platform/CCThread.cpp \
|
2013-02-01 11:20:46 +08:00
|
|
|
platform/CCFileUtils.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
platform/CCEGLViewProtocol.cpp \
|
|
|
|
script_support/CCScriptSupport.cpp \
|
|
|
|
shaders/ccShaders.cpp \
|
|
|
|
shaders/CCGLProgram.cpp \
|
|
|
|
shaders/ccGLStateCache.cpp \
|
|
|
|
shaders/CCShaderCache.cpp \
|
|
|
|
sprite_nodes/CCAnimation.cpp \
|
|
|
|
sprite_nodes/CCAnimationCache.cpp \
|
|
|
|
sprite_nodes/CCSprite.cpp \
|
|
|
|
sprite_nodes/CCSpriteBatchNode.cpp \
|
|
|
|
sprite_nodes/CCSpriteFrame.cpp \
|
|
|
|
sprite_nodes/CCSpriteFrameCache.cpp \
|
2013-02-27 16:57:36 +08:00
|
|
|
support/ccUTF8.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
support/CCNotificationCenter.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
support/CCProfiling.cpp \
|
|
|
|
support/TransformUtils.cpp \
|
2013-03-11 14:45:07 +08:00
|
|
|
support/user_default/CCUserDefaultAndroid.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
support/base64.cpp \
|
|
|
|
support/ccUtils.cpp \
|
|
|
|
support/CCVertex.cpp \
|
2012-06-13 18:33:44 +08:00
|
|
|
support/data_support/ccCArray.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
support/image_support/TGAlib.cpp \
|
2013-02-06 11:15:54 +08:00
|
|
|
support/tinyxml2/tinyxml2.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
support/zip_support/ZipUtils.cpp \
|
|
|
|
support/zip_support/ioapi.cpp \
|
|
|
|
support/zip_support/unzip.cpp \
|
2013-06-04 17:38:43 +08:00
|
|
|
support/component/CCComponent.cpp \
|
|
|
|
support/component/CCComponentContainer.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
text_input_node/CCIMEDispatcher.cpp \
|
|
|
|
text_input_node/CCTextFieldTTF.cpp \
|
|
|
|
textures/CCTexture2D.cpp \
|
|
|
|
textures/CCTextureAtlas.cpp \
|
|
|
|
textures/CCTextureCache.cpp \
|
2013-07-26 17:34:44 +08:00
|
|
|
platform/third_party/common/etc/etc1.cpp\
|
2012-07-21 13:49:20 +08:00
|
|
|
tilemap_parallax_nodes/CCParallaxNode.cpp \
|
|
|
|
tilemap_parallax_nodes/CCTMXLayer.cpp \
|
|
|
|
tilemap_parallax_nodes/CCTMXObjectGroup.cpp \
|
|
|
|
tilemap_parallax_nodes/CCTMXTiledMap.cpp \
|
|
|
|
tilemap_parallax_nodes/CCTMXXMLParser.cpp \
|
|
|
|
tilemap_parallax_nodes/CCTileMapAtlas.cpp \
|
2012-05-29 16:21:23 +08:00
|
|
|
touch_dispatcher/CCTouchDispatcher.cpp \
|
2012-07-31 23:32:19 +08:00
|
|
|
touch_dispatcher/CCTouchHandler.cpp \
|
|
|
|
touch_dispatcher/CCTouch.cpp
|
2012-05-29 16:21:23 +08:00
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
2012-05-29 16:21:23 +08:00
|
|
|
$(LOCAL_PATH)/include \
|
|
|
|
$(LOCAL_PATH)/kazmath/include \
|
2013-07-26 17:34:44 +08:00
|
|
|
$(LOCAL_PATH)/platform/android \
|
2012-05-29 16:21:23 +08:00
|
|
|
|
2012-06-19 16:20:46 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
2012-05-29 16:21:23 +08:00
|
|
|
$(LOCAL_PATH)/include \
|
|
|
|
$(LOCAL_PATH)/kazmath/include \
|
2013-07-26 17:34:44 +08:00
|
|
|
$(LOCAL_PATH)/platform/android \
|
|
|
|
$(LOCAL_PATH)/platform/third_party/common/etc
|
|
|
|
|
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
|
|
|
|
2012-05-29 16:21:23 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libpng_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jpeg_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libxml2_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libtiff_static
|
2013-02-05 18:18:53 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libwebp_static
|
2013-08-02 13:46:26 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_freetype2_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-07-25 15:04:26 +08:00
|
|
|
LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API
|
|
|
|
LOCAL_EXPORT_CFLAGS := -Wno-psabi -DUSE_FILE32API
|
2012-05-29 16:21:23 +08:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
$(call import-module,libjpeg)
|
|
|
|
$(call import-module,libpng)
|
|
|
|
$(call import-module,libtiff)
|
2013-02-05 18:18:53 +08:00
|
|
|
$(call import-module,libwebp)
|
2013-08-02 13:46:26 +08:00
|
|
|
$(call import-module,libfreetype2)
|