2010-11-04 17:32:22 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2012-01-28 08:37:32 +08:00
|
|
|
|
2012-02-09 15:49:14 +08:00
|
|
|
LOCAL_MODULE := cocos2dx_static
|
2012-01-28 08:37:32 +08:00
|
|
|
|
2012-02-03 15:01:50 +08:00
|
|
|
LOCAL_MODULE_FILENAME := libcocos2d
|
2010-11-04 17:32:22 +08:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
CCConfiguration.cpp \
|
|
|
|
CCDrawingPrimitives.cpp \
|
|
|
|
CCScheduler.cpp \
|
2011-03-18 14:54:24 +08:00
|
|
|
CCCamera.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
actions/CCAction.cpp \
|
2010-12-22 15:15:04 +08:00
|
|
|
actions/CCActionCamera.cpp \
|
|
|
|
actions/CCActionEase.cpp \
|
|
|
|
actions/CCActionGrid.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
actions/CCActionGrid3D.cpp \
|
2010-12-22 15:15:04 +08:00
|
|
|
actions/CCActionInstant.cpp \
|
|
|
|
actions/CCActionInterval.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
actions/CCActionManager.cpp \
|
2010-12-22 15:15:04 +08:00
|
|
|
actions/CCActionPageTurn3D.cpp \
|
|
|
|
actions/CCActionProgressTimer.cpp \
|
|
|
|
actions/CCActionTiledGrid.cpp \
|
2012-04-17 16:41:07 +08:00
|
|
|
actions/CCActionTween.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
base_nodes/CCAtlasNode.cpp \
|
2011-04-11 15:10:09 +08:00
|
|
|
base_nodes/CCNode.cpp \
|
2011-03-08 13:49:58 +08:00
|
|
|
cocoa/CCAffineTransform.cpp \
|
|
|
|
cocoa/CCGeometry.cpp \
|
|
|
|
cocoa/CCAutoreleasePool.cpp \
|
|
|
|
cocoa/CCData.cpp \
|
2012-03-20 17:27:06 +08:00
|
|
|
cocoa/CCDictionary.cpp \
|
2011-03-24 10:38:08 +08:00
|
|
|
cocoa/CCNS.cpp \
|
2011-03-08 13:49:58 +08:00
|
|
|
cocoa/CCObject.cpp \
|
|
|
|
cocoa/CCSet.cpp \
|
2012-04-16 13:02:44 +08:00
|
|
|
cocoa/CCString.cpp \
|
2011-03-08 13:49:58 +08:00
|
|
|
cocoa/CCZone.cpp \
|
2012-04-25 16:18:04 +08:00
|
|
|
cocoa/CCArray.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
cocos2d.cpp \
|
2011-04-11 15:10:09 +08:00
|
|
|
CCDirector.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
effects/CCGrabber.cpp \
|
2011-04-11 15:10:09 +08:00
|
|
|
effects/CCGrid.cpp \
|
2012-04-17 16:41:07 +08:00
|
|
|
extensions/CCNotificationCenter/CCNotificationCenter.cpp \
|
|
|
|
extensions/CCControlExtension/CCControl.cpp \
|
|
|
|
extensions/CCControlExtension/CCControlButton.cpp \
|
|
|
|
extensions/CCControlExtension/CCControlColourPicker.cpp \
|
|
|
|
extensions/CCControlExtension/CCControlHuePicker.cpp \
|
|
|
|
extensions/CCControlExtension/CCControlSaturationBrightnessPicker.cpp \
|
|
|
|
extensions/CCControlExtension/CCControlSlider.cpp \
|
|
|
|
extensions/CCControlExtension/CCControlSwitch.cpp \
|
|
|
|
extensions/CCControlExtension/CCControlUtils.cpp \
|
|
|
|
extensions/CCControlExtension/CCInvocation.cpp \
|
|
|
|
extensions/CCControlExtension/CCMenuPassive.cpp \
|
|
|
|
extensions/CCControlExtension/CCScale9Sprite.cpp \
|
|
|
|
extensions/CCControlExtension/CCSpacer.cpp \
|
2012-05-02 12:04:27 +08:00
|
|
|
extensions/CCListView/CCListView.cpp \
|
|
|
|
extensions/CCListView/CCListViewCell.cpp \
|
2012-05-07 22:52:58 +08:00
|
|
|
extensions/CCTextureWatcher/CCTextureWatcher.cpp \
|
|
|
|
extensions/CCBReader/CCBCustomClass.cpp \
|
2012-05-11 22:40:31 +08:00
|
|
|
extensions/CCBReader/CCBReader_v2.cpp \
|
2012-03-20 16:10:12 +08:00
|
|
|
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 \
|
2011-01-07 11:30:19 +08:00
|
|
|
keypad_dispatcher/CCKeypadDelegate.cpp \
|
|
|
|
keypad_dispatcher/CCKeypadDispatcher.cpp \
|
|
|
|
label_nodes/CCLabelAtlas.cpp \
|
2010-12-24 14:00:49 +08:00
|
|
|
label_nodes/CCLabelBMFont.cpp \
|
|
|
|
label_nodes/CCLabelTTF.cpp \
|
2011-04-11 11:24:10 +08:00
|
|
|
layers_scenes_transitions_nodes/CCLayer.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
layers_scenes_transitions_nodes/CCScene.cpp \
|
2010-12-27 09:40:45 +08:00
|
|
|
layers_scenes_transitions_nodes/CCTransitionPageTurn.cpp \
|
2011-04-11 16:09:14 +08:00
|
|
|
layers_scenes_transitions_nodes/CCTransition.cpp \
|
2012-03-27 13:48:14 +08:00
|
|
|
layers_scenes_transitions_nodes/CCTransitionProgress.cpp \
|
2011-04-11 11:24:10 +08:00
|
|
|
menu_nodes/CCMenu.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
menu_nodes/CCMenuItem.cpp \
|
|
|
|
misc_nodes/CCMotionStreak.cpp \
|
|
|
|
misc_nodes/CCProgressTimer.cpp \
|
|
|
|
misc_nodes/CCRenderTexture.cpp \
|
|
|
|
particle_nodes/CCParticleExamples.cpp \
|
|
|
|
particle_nodes/CCParticleSystem.cpp \
|
2012-03-20 16:10:12 +08:00
|
|
|
particle_nodes/CCParticleBatchNode.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
particle_nodes/CCParticleSystemQuad.cpp \
|
2011-03-25 12:01:56 +08:00
|
|
|
platform/CCSAXParser.cpp \
|
2011-03-09 14:40:05 +08:00
|
|
|
platform/CCThread.cpp \
|
2011-02-24 19:42:45 +08:00
|
|
|
platform/platform.cpp \
|
2012-04-20 15:23:00 +08:00
|
|
|
platform/CCEGLViewProtocol.cpp \
|
2012-04-25 16:18:04 +08:00
|
|
|
platform/android/CCEGLView.cpp \
|
|
|
|
platform/android/CCAccelerometer.cpp \
|
|
|
|
platform/android/CCApplication.cpp \
|
|
|
|
platform/android/CCCommon.cpp \
|
|
|
|
platform/android/CCFileUtils.cpp \
|
|
|
|
platform/android/CCImage.cpp \
|
2011-07-22 18:14:29 +08:00
|
|
|
platform/android/jni/JniHelper.cpp \
|
2011-07-25 14:12:30 +08:00
|
|
|
platform/android/jni/IMEJni.cpp \
|
|
|
|
platform/android/jni/MessageJni.cpp \
|
|
|
|
platform/android/jni/SensorJni.cpp \
|
|
|
|
platform/android/jni/SystemInfoJni.cpp \
|
|
|
|
platform/android/jni/TouchesJni.cpp \
|
2011-06-21 10:18:43 +08:00
|
|
|
script_support/CCScriptSupport.cpp \
|
2012-03-20 16:10:12 +08:00
|
|
|
shaders/ccShaders.cpp \
|
2012-03-20 17:27:06 +08:00
|
|
|
shaders/CCGLProgram.cpp \
|
|
|
|
shaders/ccGLStateCache.cpp \
|
|
|
|
shaders/CCShaderCache.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
sprite_nodes/CCAnimation.cpp \
|
|
|
|
sprite_nodes/CCAnimationCache.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
sprite_nodes/CCSprite.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
sprite_nodes/CCSpriteBatchNode.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
sprite_nodes/CCSpriteFrame.cpp \
|
|
|
|
sprite_nodes/CCSpriteFrameCache.cpp \
|
|
|
|
support/CCProfiling.cpp \
|
2011-03-08 13:49:58 +08:00
|
|
|
support/CCPointExtension.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
support/TransformUtils.cpp \
|
2011-05-06 15:31:51 +08:00
|
|
|
support/CCUserDefault.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
support/base64.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
support/ccUtils.cpp \
|
2012-03-20 16:10:12 +08:00
|
|
|
support/CCVertex.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
support/image_support/TGAlib.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
support/zip_support/ZipUtils.cpp \
|
2010-12-15 18:28:18 +08:00
|
|
|
support/zip_support/ioapi.cpp \
|
|
|
|
support/zip_support/unzip.cpp \
|
2011-04-22 16:33:41 +08:00
|
|
|
text_input_node/CCIMEDispatcher.cpp \
|
|
|
|
text_input_node/CCTextFieldTTF.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
textures/CCTexture2D.cpp \
|
|
|
|
textures/CCTextureAtlas.cpp \
|
2012-01-26 10:14:29 +08:00
|
|
|
textures/CCTextureCache.cpp \
|
2011-07-19 15:14:59 +08:00
|
|
|
textures/CCTexturePVR.cpp \
|
2010-11-04 17:32:22 +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 \
|
|
|
|
touch_dispatcher/CCTouchDispatcher.cpp \
|
2011-07-25 14:12:30 +08:00
|
|
|
touch_dispatcher/CCTouchHandler.cpp
|
2011-06-01 17:51:08 +08:00
|
|
|
|
2012-02-03 12:04:29 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ \
|
2012-04-25 16:18:04 +08:00
|
|
|
$(LOCAL_PATH)/actions \
|
|
|
|
$(LOCAL_PATH)/base_nodes \
|
|
|
|
$(LOCAL_PATH)/cocoa \
|
|
|
|
$(LOCAL_PATH)/effects \
|
|
|
|
$(LOCAL_PATH)/extensions \
|
|
|
|
$(LOCAL_PATH)/include \
|
|
|
|
$(LOCAL_PATH)/kazmath/include \
|
|
|
|
$(LOCAL_PATH)/keypad_dispatcher \
|
|
|
|
$(LOCAL_PATH)/label_nodes \
|
|
|
|
$(LOCAL_PATH)/layers_scenes_transitions_nodes \
|
|
|
|
$(LOCAL_PATH)/menu_nodes \
|
|
|
|
$(LOCAL_PATH)/misc_nodes \
|
|
|
|
$(LOCAL_PATH)/particle_nodes \
|
|
|
|
$(LOCAL_PATH)/platform \
|
|
|
|
$(LOCAL_PATH)/platform/android \
|
|
|
|
$(LOCAL_PATH)/script_support \
|
|
|
|
$(LOCAL_PATH)/shaders \
|
|
|
|
$(LOCAL_PATH)/sprite_nodes \
|
|
|
|
$(LOCAL_PATH)/support \
|
|
|
|
$(LOCAL_PATH)/text_input_node \
|
|
|
|
$(LOCAL_PATH)/textures \
|
|
|
|
$(LOCAL_PATH)/tileMap_parallax_nodes \
|
|
|
|
$(LOCAL_PATH)/touch_dispatcher
|
|
|
|
|
|
|
|
|
2012-02-07 14:34:30 +08:00
|
|
|
LOCAL_EXPORT_LDLIBS := -llog\
|
|
|
|
-lz \
|
2012-05-05 10:06:41 +08:00
|
|
|
-lGLESv2
|
2012-04-25 16:18:04 +08:00
|
|
|
|
2010-11-04 17:32:22 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
|
2012-04-25 16:18:04 +08:00
|
|
|
$(LOCAL_PATH)/actions \
|
|
|
|
$(LOCAL_PATH)/base_nodes \
|
|
|
|
$(LOCAL_PATH)/cocoa \
|
|
|
|
$(LOCAL_PATH)/effects \
|
|
|
|
$(LOCAL_PATH)/extensions \
|
2010-11-04 17:32:22 +08:00
|
|
|
$(LOCAL_PATH)/include \
|
2012-04-25 16:18:04 +08:00
|
|
|
$(LOCAL_PATH)/kazmath/include \
|
|
|
|
$(LOCAL_PATH)/keypad_dispatcher \
|
|
|
|
$(LOCAL_PATH)/label_nodes \
|
|
|
|
$(LOCAL_PATH)/layers_scenes_transitions_nodes \
|
|
|
|
$(LOCAL_PATH)/menu_nodes \
|
|
|
|
$(LOCAL_PATH)/misc_nodes \
|
|
|
|
$(LOCAL_PATH)/particle_nodes \
|
2012-03-20 16:10:12 +08:00
|
|
|
$(LOCAL_PATH)/platform \
|
2012-04-25 16:18:04 +08:00
|
|
|
$(LOCAL_PATH)/platform/android \
|
|
|
|
$(LOCAL_PATH)/script_support \
|
|
|
|
$(LOCAL_PATH)/shaders \
|
|
|
|
$(LOCAL_PATH)/sprite_nodes \
|
|
|
|
$(LOCAL_PATH)/support \
|
|
|
|
$(LOCAL_PATH)/text_input_node \
|
|
|
|
$(LOCAL_PATH)/textures \
|
|
|
|
$(LOCAL_PATH)/tileMap_parallax_nodes \
|
|
|
|
$(LOCAL_PATH)/touch_dispatcher
|
|
|
|
|
2012-01-28 08:37:32 +08:00
|
|
|
|
2012-03-20 16:10:12 +08:00
|
|
|
LOCAL_LDLIBS := -lGLESv2 \
|
|
|
|
-lEGL \
|
2012-01-28 08:37:32 +08:00
|
|
|
-llog \
|
2012-02-09 15:49:14 +08:00
|
|
|
-lz
|
2012-04-25 16:18:04 +08:00
|
|
|
|
2012-05-02 10:45:21 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libpng_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jpeg_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libxml2_static
|
2012-05-24 12:00:06 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libtiff_static
|
|
|
|
|
2011-06-25 11:21:16 +08:00
|
|
|
|
|
|
|
# define the macro to compile through support/zip_support/ioapi.c
|
|
|
|
LOCAL_CFLAGS := -DUSE_FILE32API
|
2012-01-28 08:37:32 +08:00
|
|
|
|
2012-02-09 15:49:14 +08:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-01-28 08:37:32 +08:00
|
|
|
|
2012-05-02 10:45:21 +08:00
|
|
|
$(call import-module,libjpeg)
|
|
|
|
$(call import-module,libpng)
|
|
|
|
$(call import-module,libxml2)
|
2012-05-24 12:00:06 +08:00
|
|
|
$(call import-module,libtiff)
|
2012-02-09 15:49:14 +08:00
|
|
|
|