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 \
|
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 \
|
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 \
|
|
|
|
cocoa/CCZone.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-02-14 18:04:56 +08:00
|
|
|
extensions/CCNotificationCenter.cpp \
|
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 \
|
|
|
|
layers_scenes_transitions_nodes/CCTransitionRadial.cpp \
|
2011-04-11 16:09:14 +08:00
|
|
|
layers_scenes_transitions_nodes/CCTransition.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 \
|
|
|
|
misc_nodes/CCRibbon.cpp \
|
|
|
|
particle_nodes/CCParticleExamples.cpp \
|
|
|
|
particle_nodes/CCParticleSystem.cpp \
|
2011-04-11 11:24:10 +08:00
|
|
|
particle_nodes/CCParticleSystemPoint.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
particle_nodes/CCParticleSystemQuad.cpp \
|
2011-03-26 17:24:37 +08:00
|
|
|
platform/CCFileUtils.cpp \
|
2011-03-09 14:40:05 +08:00
|
|
|
platform/CCGL.cpp \
|
|
|
|
platform/CCImage.cpp \
|
|
|
|
platform/CCStdC.cpp \
|
2011-03-25 12:01:56 +08:00
|
|
|
platform/CCSAXParser.cpp \
|
2011-03-09 14:40:05 +08:00
|
|
|
platform/CCThread.cpp \
|
|
|
|
platform/CCCommon.cpp \
|
2011-02-24 19:42:45 +08:00
|
|
|
platform/platform.cpp \
|
2011-03-08 13:49:58 +08:00
|
|
|
platform/android/CCEGLView_android.cpp \
|
|
|
|
platform/android/CCAccelerometer_android.cpp \
|
|
|
|
platform/android/CCApplication_android.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 \
|
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 \
|
2011-04-21 14:46:15 +08:00
|
|
|
support/CCArray.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
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 \
|
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)/ \
|
|
|
|
$(LOCAL_PATH)/include \
|
|
|
|
$(LOCAL_PATH)/platform
|
2012-02-07 14:34:30 +08:00
|
|
|
|
|
|
|
LOCAL_EXPORT_LDLIBS := -llog\
|
|
|
|
-lz \
|
|
|
|
-lGLESv1_CM
|
2012-02-09 15:49:14 +08:00
|
|
|
|
2010-11-04 17:32:22 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
|
|
|
|
$(LOCAL_PATH)/include \
|
2012-01-28 08:37:32 +08:00
|
|
|
$(LOCAL_PATH)/platform
|
|
|
|
|
|
|
|
LOCAL_LDLIBS := -lGLESv1_CM \
|
|
|
|
-llog \
|
2012-02-09 15:49:14 +08:00
|
|
|
-lz
|
|
|
|
|
2012-01-28 08:37:32 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := png_static_prebuilt
|
|
|
|
LOCAL_STATIC_LIBRARIES += xml2_static_prebuilt
|
|
|
|
LOCAL_STATIC_LIBRARIES += jpeg_static_prebuilt
|
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-02-07 14:34:30 +08:00
|
|
|
$(call import-add-path,$(LOCAL_PATH)/..)
|
2012-02-03 12:04:29 +08:00
|
|
|
$(call import-module,cocos2dx/platform/third_party/android/modules/libpng)
|
|
|
|
$(call import-module,cocos2dx/platform/third_party/android/modules/libxml2)
|
|
|
|
$(call import-module,cocos2dx/platform/third_party/android/modules/libjpeg)
|
2012-02-09 15:49:14 +08:00
|
|
|
|