2010-11-04 17:32:22 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
# compile cocos2d.so
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := libcocos2d
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
CCConfiguration.cpp \
|
|
|
|
CCDrawingPrimitives.cpp \
|
|
|
|
CCScheduler.cpp \
|
|
|
|
CCamera.cpp \
|
|
|
|
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 \
|
|
|
|
cocoa/CGAffineTransform.cpp \
|
|
|
|
cocoa/CGGeometry.cpp \
|
|
|
|
cocoa/NSAutoreleasePool.cpp \
|
|
|
|
cocoa/NSData.cpp \
|
|
|
|
cocoa/NSObject.cpp \
|
|
|
|
cocoa/NSSet.cpp \
|
|
|
|
cocoa/NSZone.cpp \
|
|
|
|
cocos2d.cpp \
|
|
|
|
effects/CCGrabber.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
event_dispatcher/CCEventDispatcher.cpp \
|
|
|
|
event_dispatcher/CCKeyboardEventDelegate.cpp \
|
|
|
|
event_dispatcher/CCMouseEventDelegate.cpp \
|
|
|
|
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-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 \
|
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-01-07 11:30:19 +08:00
|
|
|
particle_nodes/CCParticleSystemQuad.cpp \
|
|
|
|
platform/CCDirector_mobile.cpp \
|
|
|
|
platform/CCGrid_mobile.cpp \
|
2010-12-27 09:40:45 +08:00
|
|
|
platform/CCLayer_mobile.cpp \
|
2010-12-25 11:15:19 +08:00
|
|
|
platform/CCMenu_mobile.cpp \
|
|
|
|
platform/CCNode_mobile.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
platform/CCParticleSystemPoint_mobile.cpp \
|
|
|
|
platform/CCTransition_mobile.cpp \
|
2011-02-24 19:42:45 +08:00
|
|
|
platform/platform.cpp \
|
2011-01-10 17:54:44 +08:00
|
|
|
platform/android/CCNS_android.cpp \
|
2010-11-04 17:32:22 +08:00
|
|
|
platform/android/CCXEGLView_android.cpp \
|
|
|
|
platform/android/CCXFileUtils_android.cpp \
|
2010-11-29 15:08:21 +08:00
|
|
|
platform/android/CCXUIAccelerometer_android.cpp \
|
2010-12-09 10:50:02 +08:00
|
|
|
platform/android/Cocos2dJni.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 \
|
|
|
|
sprite_nodes/CCSpriteSheet.cpp \
|
|
|
|
support/CCProfiling.cpp \
|
|
|
|
support/CGPointExtension.cpp \
|
|
|
|
support/TransformUtils.cpp \
|
|
|
|
support/base64.cpp \
|
2011-01-07 11:30:19 +08:00
|
|
|
support/ccUtils.cpp \
|
2010-12-06 09:51:21 +08:00
|
|
|
support/file_support/FileUtils.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 \
|
2010-11-04 17:32:22 +08:00
|
|
|
textures/CCTexture2D.cpp \
|
|
|
|
textures/CCTextureAtlas.cpp \
|
|
|
|
textures/CCTextureCache.cpp \
|
|
|
|
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-01-07 11:30:19 +08:00
|
|
|
touch_dispatcher/CCTouchHandler.cpp
|
2010-11-04 17:32:22 +08:00
|
|
|
|
2011-02-24 19:42:45 +08:00
|
|
|
# platform_support
|
|
|
|
LOCAL_SRC_FILES += ../platform_support/src/ccxApplication.cpp \
|
|
|
|
../platform_support/src/ccxGL.cpp \
|
|
|
|
../platform_support/src/ccxImage.cpp \
|
|
|
|
../platform_support/src/ccxStdC.cpp \
|
|
|
|
../platform_support/src/ccxThread.cpp \
|
|
|
|
../platform_support/src/ccxCommon.cpp
|
|
|
|
|
2010-11-04 17:32:22 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
|
|
|
|
$(LOCAL_PATH)/include \
|
2011-02-24 19:42:45 +08:00
|
|
|
$(LOCAL_PATH)/../platform_support/include \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/iconv \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/libpng \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/libxml2 \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/libjpeg \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/core \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/animator \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/config \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/effects \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/images \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/pdf \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/ports \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/svg \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/text \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/utils \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/views \
|
|
|
|
$(LOCAL_PATH)/../platform_support/third_party/android/skia/xml
|
2010-12-14 09:42:39 +08:00
|
|
|
|
|
|
|
#it is used for ndk-r4
|
2011-02-24 19:42:45 +08:00
|
|
|
LOCAL_LDLIBS := -L$(LOCAL_PATH)/../platform_support/third_party/android/libs \
|
2010-12-14 09:42:39 +08:00
|
|
|
-lGLESv1_CM -llog -lz \
|
|
|
|
-lpng \
|
|
|
|
-lxml2 \
|
|
|
|
-ljpeg \
|
|
|
|
-lskia
|
2010-11-04 17:32:22 +08:00
|
|
|
|
2010-12-14 09:42:39 +08:00
|
|
|
# it is used for ndk-r5
|
|
|
|
# because the new Windows toolchain doesn't support Cygwin's drive
|
|
|
|
# mapping (i.e /cygdrive/c/ instead of C:/)
|
2011-02-24 19:42:45 +08:00
|
|
|
#LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../platform_support/third_party/android/libs) \
|
2010-12-14 09:42:39 +08:00
|
|
|
# -lGLESv1_CM -llog -lz \
|
|
|
|
# -lpng \
|
|
|
|
# -lxml2 \
|
|
|
|
# -ljpeg \
|
|
|
|
# -lskia
|
2010-12-06 09:51:21 +08:00
|
|
|
|
|
|
|
# define the macro to compile through support/zip_support/ioapi.c
|
|
|
|
LOCAL_CFLAGS := -DUSE_FILE32API
|
2010-11-23 18:02:42 +08:00
|
|
|
|
2010-11-04 17:32:22 +08:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|