Android.mk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := cocos2dx_internal_static
  4. LOCAL_MODULE_FILENAME := libcocos2dxinternal
  5. LOCAL_ARM_MODE := arm
  6. ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
  7. MATHNEONFILE := math/MathUtil.cpp.neon
  8. else
  9. MATHNEONFILE := math/MathUtil.cpp
  10. endif
  11. LOCAL_SRC_FILES := \
  12. cocos2d.cpp \
  13. 2d/CCDrawNode3D.cpp \
  14. 2d/CCAction.cpp \
  15. 2d/CCActionCamera.cpp \
  16. 2d/CCActionCatmullRom.cpp \
  17. 2d/CCActionEase.cpp \
  18. 2d/CCActionGrid.cpp \
  19. 2d/CCActionGrid3D.cpp \
  20. 2d/CCActionInstant.cpp \
  21. 2d/CCActionInterval.cpp \
  22. 2d/CCActionManager.cpp \
  23. 2d/CCActionPageTurn3D.cpp \
  24. 2d/CCActionProgressTimer.cpp \
  25. 2d/CCActionTiledGrid.cpp \
  26. 2d/CCActionTween.cpp \
  27. 2d/CCAnimation.cpp \
  28. 2d/CCAnimationCache.cpp \
  29. 2d/CCAtlasNode.cpp \
  30. 2d/CCBlockTouchLayer.cpp \
  31. 2d/CCCamera.cpp \
  32. 2d/CCCameraBackgroundBrush.cpp \
  33. 2d/CCClippingNode.cpp \
  34. 2d/CCClippingRectangleNode.cpp \
  35. 2d/CCComponent.cpp \
  36. 2d/CCComponentContainer.cpp \
  37. 2d/CCDrawNode.cpp \
  38. 2d/CCDrawingPrimitives.cpp \
  39. 2d/CCFastTMXLayer.cpp \
  40. 2d/CCFastTMXTiledMap.cpp \
  41. 2d/CCFont.cpp \
  42. 2d/CCFontAtlas.cpp \
  43. 2d/CCFontAtlasCache.cpp \
  44. 2d/CCFontCharMap.cpp \
  45. 2d/CCFontFNT.cpp \
  46. 2d/CCFontFreeType.cpp \
  47. 2d/CCGLBufferedNode.cpp \
  48. 2d/CCGrabber.cpp \
  49. 2d/CCGrid.cpp \
  50. 2d/CCLabel.cpp \
  51. 2d/CCLabelAtlas.cpp \
  52. 2d/CCLabelBMFont.cpp \
  53. 2d/CCLabelTTF.cpp \
  54. 2d/CCLabelTextFormatter.cpp \
  55. 2d/CCLayer.cpp \
  56. 2d/CCLight.cpp \
  57. 2d/CCMenu.cpp \
  58. 2d/CCMenuItem.cpp \
  59. 2d/CCMotionStreak.cpp \
  60. 2d/CCNode.cpp \
  61. 2d/CCNodeGrid.cpp \
  62. 2d/CCParallaxNode.cpp \
  63. 2d/CCParticleBatchNode.cpp \
  64. 2d/CCParticleExamples.cpp \
  65. 2d/CCParticleSystem.cpp \
  66. 2d/CCParticleSystemQuad.cpp \
  67. 2d/ZMLCCParticleSystem.cpp \
  68. 2d/ZMLCCParticleSystemQuad.cpp \
  69. 2d/CCProgressTimer.cpp \
  70. 2d/CCProtectedNode.cpp \
  71. 2d/CCRenderTexture.cpp \
  72. 2d/CCScene.cpp \
  73. 2d/CCSprite.cpp \
  74. 2d/CCSpriteBatchNode.cpp \
  75. 2d/CCSpriteFrame.cpp \
  76. 2d/CCSpriteFrameCache.cpp \
  77. 2d/CCTMXLayer.cpp \
  78. 2d/CCTMXObjectGroup.cpp \
  79. 2d/CCTMXTiledMap.cpp \
  80. 2d/CCTMXXMLParser.cpp \
  81. 2d/CCTextFieldTTF.cpp \
  82. 2d/CCTileMapAtlas.cpp \
  83. 2d/CCTransition.cpp \
  84. 2d/CCTransitionPageTurn.cpp \
  85. 2d/CCTransitionProgress.cpp \
  86. 2d/CCTweenFunction.cpp \
  87. 2d/CCAutoPolygon.cpp \
  88. 2d/ZGFrameActionSprite.cpp \
  89. 2d/CustomMaterial.cpp \
  90. 3d/CCFrustum.cpp \
  91. 3d/CCPlane.cpp \
  92. platform/CCFileUtils.cpp \
  93. platform/CCGLView.cpp \
  94. platform/CCImage.cpp \
  95. platform/CCSAXParser.cpp \
  96. platform/CCThread.cpp \
  97. $(MATHNEONFILE) \
  98. math/CCAffineTransform.cpp \
  99. math/CCGeometry.cpp \
  100. math/CCVertex.cpp \
  101. math/Mat4.cpp \
  102. math/Quaternion.cpp \
  103. math/TransformUtils.cpp \
  104. math/Vec2.cpp \
  105. math/Vec3.cpp \
  106. math/Vec4.cpp \
  107. base/CCNinePatchImageParser.cpp \
  108. base/CCStencilStateManager.cpp \
  109. base/CCAsyncTaskPool.cpp \
  110. base/CCAutoreleasePool.cpp \
  111. base/CCConfiguration.cpp \
  112. base/CCConsole.cpp \
  113. base/CCController-android.cpp \
  114. base/CCController.cpp \
  115. base/CCData.cpp \
  116. base/CCDataVisitor.cpp \
  117. base/CCDirector.cpp \
  118. base/CCEvent.cpp \
  119. base/CCEventAcceleration.cpp \
  120. base/CCEventGyroscope.cpp \
  121. base/CCEventController.cpp \
  122. base/CCEventCustom.cpp \
  123. base/CCEventDispatcher.cpp \
  124. base/CCEventFocus.cpp \
  125. base/CCEventKeyboard.cpp \
  126. base/CCEventListener.cpp \
  127. base/CCEventListenerAcceleration.cpp \
  128. base/CCEventListenerGyroscope.cpp \
  129. base/CCEventListenerController.cpp \
  130. base/CCEventListenerCustom.cpp \
  131. base/CCEventListenerFocus.cpp \
  132. base/CCEventListenerKeyboard.cpp \
  133. base/CCEventListenerMouse.cpp \
  134. base/CCEventListenerTouch.cpp \
  135. base/CCEventMouse.cpp \
  136. base/CCEventTouch.cpp \
  137. base/CCIMEDispatcher.cpp \
  138. base/CCNS.cpp \
  139. base/CCProfiling.cpp \
  140. base/CCProperties.cpp \
  141. base/CCRef.cpp \
  142. base/CCScheduler.cpp \
  143. base/CCScriptSupport.cpp \
  144. base/CCTouch.cpp \
  145. base/CCUserDefault-android.cpp \
  146. base/CCUserDefault.cpp \
  147. base/CCValue.cpp \
  148. base/ObjectFactory.cpp \
  149. base/TGAlib.cpp \
  150. base/ZipUtils.cpp \
  151. base/allocator/CCAllocatorDiagnostics.cpp \
  152. base/allocator/CCAllocatorGlobal.cpp \
  153. base/allocator/CCAllocatorGlobalNewDelete.cpp \
  154. base/atitc.cpp \
  155. base/base64.cpp \
  156. base/ccCArray.cpp \
  157. base/ccFPSImages.c \
  158. base/ccRandom.cpp \
  159. base/ccTypes.cpp \
  160. base/ccUTF8.cpp \
  161. base/ccUtils.cpp \
  162. base/etc1.cpp \
  163. base/pvr.cpp \
  164. base/s3tc.cpp \
  165. renderer/CCBatchCommand.cpp \
  166. renderer/CCCustomCommand.cpp \
  167. renderer/CCGLProgram.cpp \
  168. renderer/CCGLProgramCache.cpp \
  169. renderer/CCGLProgramState.cpp \
  170. renderer/CCGLProgramStateCache.cpp \
  171. renderer/CCGroupCommand.cpp \
  172. renderer/CCMaterial.cpp \
  173. renderer/CCMeshCommand.cpp \
  174. renderer/CCPass.cpp \
  175. renderer/CCPrimitive.cpp \
  176. renderer/CCPrimitiveCommand.cpp \
  177. renderer/CCQuadCommand.cpp \
  178. renderer/CCRenderCommand.cpp \
  179. renderer/CCRenderState.cpp \
  180. renderer/CCRenderer.cpp \
  181. renderer/CCTechnique.cpp \
  182. renderer/CCTexture2D.cpp \
  183. renderer/CCTextureAtlas.cpp \
  184. renderer/CCTextureCache.cpp \
  185. renderer/CCTextureCube.cpp \
  186. renderer/CCTrianglesCommand.cpp \
  187. renderer/CCVertexAttribBinding.cpp \
  188. renderer/CCVertexIndexBuffer.cpp \
  189. renderer/CCVertexIndexData.cpp \
  190. renderer/ccGLStateCache.cpp \
  191. renderer/CCFrameBuffer.cpp \
  192. renderer/ccShaders.cpp \
  193. vr/CCVRDistortion.cpp \
  194. vr/CCVRDistortionMesh.cpp \
  195. vr/CCVRGenericRenderer.cpp \
  196. vr/CCVRGenericHeadTracker.cpp \
  197. deprecated/CCArray.cpp \
  198. deprecated/CCDeprecated.cpp \
  199. deprecated/CCDictionary.cpp \
  200. deprecated/CCNotificationCenter.cpp \
  201. deprecated/CCSet.cpp \
  202. deprecated/CCString.cpp \
  203. physics/CCPhysicsBody.cpp \
  204. physics/CCPhysicsContact.cpp \
  205. physics/CCPhysicsJoint.cpp \
  206. physics/CCPhysicsShape.cpp \
  207. physics/CCPhysicsWorld.cpp \
  208. physics3d/CCPhysics3D.cpp \
  209. physics3d/CCPhysics3DWorld.cpp \
  210. physics3d/CCPhysics3DComponent.cpp \
  211. physics3d/CCPhysics3DDebugDrawer.cpp \
  212. physics3d/CCPhysics3DObject.cpp \
  213. physics3d/CCPhysics3DShape.cpp \
  214. physics3d/CCPhysicsSprite3D.cpp \
  215. physics3d/CCPhysics3DConstraint.cpp \
  216. navmesh/CCNavMesh.cpp \
  217. navmesh/CCNavMeshAgent.cpp \
  218. navmesh/CCNavMeshDebugDraw.cpp \
  219. navmesh/CCNavMeshObstacle.cpp \
  220. navmesh/CCNavMeshUtils.cpp \
  221. ../external/ConvertUTF/ConvertUTFWrapper.cpp \
  222. ../external/ConvertUTF/ConvertUTF.c \
  223. ../external/md5/md5.c \
  224. ../external/tinyxml2/tinyxml2.cpp \
  225. ../external/unzip/ioapi_mem.cpp \
  226. ../external/unzip/ioapi.cpp \
  227. ../external/unzip/unzip.cpp \
  228. ../external/edtaa3func/edtaa3func.cpp \
  229. ../external/xxhash/xxhash.c \
  230. ../external/poly2tri/common/shapes.cc \
  231. ../external/poly2tri/sweep/advancing_front.cc \
  232. ../external/poly2tri/sweep/cdt.cc \
  233. ../external/poly2tri/sweep/sweep_context.cc \
  234. ../external/poly2tri/sweep/sweep.cc \
  235. ../external/clipper/clipper.cpp \
  236. common/BigFile.cpp \
  237. common/BigFile_android.cpp \
  238. common/json11.cpp \
  239. common/CocosConfig.cpp \
  240. common/UrlEncodeHelper.cpp \
  241. common/LocalizationMgr.cpp \
  242. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
  243. $(LOCAL_PATH)/. \
  244. $(LOCAL_PATH)/.. \
  245. $(LOCAL_PATH)/../external \
  246. $(LOCAL_PATH)/../external/tinyxml2 \
  247. $(LOCAL_PATH)/../external/unzip \
  248. $(LOCAL_PATH)/../external/chipmunk/include/chipmunk \
  249. $(LOCAL_PATH)/../external/xxhash \
  250. $(LOCAL_PATH)/../external/nslog \
  251. $(LOCAL_PATH)/../external/poly2tri \
  252. $(LOCAL_PATH)/../external/poly2tri/common \
  253. $(LOCAL_PATH)/../external/poly2tri/sweep \
  254. $(LOCAL_PATH)/common \
  255. $(LOCAL_PATH)/../external/clipper \
  256. LOCAL_C_INCLUDES := $(LOCAL_PATH) \
  257. $(LOCAL_PATH)/../external \
  258. $(LOCAL_PATH)/../external/tinyxml2 \
  259. $(LOCAL_PATH)/../external/unzip \
  260. $(LOCAL_PATH)/../external/chipmunk/include/chipmunk \
  261. $(LOCAL_PATH)/../external/edtaa3func \
  262. $(LOCAL_PATH)/../external/xxhash \
  263. $(LOCAL_PATH)/../external/ConvertUTF \
  264. $(LOCAL_PATH)/../external/nslog \
  265. $(LOCAL_PATH)/../external/poly2tri \
  266. $(LOCAL_PATH)/../external/poly2tri/common \
  267. $(LOCAL_PATH)/../external/poly2tri/sweep \
  268. $(LOCAL_PATH)/common \
  269. $(LOCAL_PATH)/../external/clipper
  270. LOCAL_EXPORT_LDLIBS := -lGLESv2 \
  271. -llog \
  272. -landroid
  273. LOCAL_STATIC_LIBRARIES := cocos_freetype2_static
  274. LOCAL_STATIC_LIBRARIES += cocos_png_static
  275. LOCAL_STATIC_LIBRARIES += cocos_jpeg_static
  276. LOCAL_STATIC_LIBRARIES += cocos_tiff_static
  277. LOCAL_STATIC_LIBRARIES += cocos_webp_static
  278. LOCAL_STATIC_LIBRARIES += cocos_chipmunk_static
  279. LOCAL_STATIC_LIBRARIES += cocos_zlib_static
  280. LOCAL_STATIC_LIBRARIES += cocos_ssl_static
  281. LOCAL_STATIC_LIBRARIES += cocos_protobuf_static
  282. # LOCAL_STATIC_LIBRARIES += recast_static
  283. # LOCAL_STATIC_LIBRARIES += bullet_static
  284. LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dxandroid_static
  285. LOCAL_WHOLE_STATIC_LIBRARIES += cpufeatures
  286. # define the macro to compile through support/zip_support/ioapi.c
  287. LOCAL_CFLAGS := -DUSE_FILE32API
  288. LOCAL_CFLAGS += -fexceptions
  289. # Issues #9968
  290. #ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
  291. # LOCAL_CFLAGS += -DHAVE_NEON=1
  292. #endif
  293. LOCAL_CPPFLAGS := -Wno-deprecated-declarations
  294. LOCAL_EXPORT_CFLAGS := -DUSE_FILE32API
  295. LOCAL_EXPORT_CPPFLAGS := -Wno-deprecated-declarations
  296. include $(BUILD_STATIC_LIBRARY)
  297. #==============================================================
  298. include $(CLEAR_VARS)
  299. # $(call import-add-path,$(LOCAL_PATH)/BulldogSdk)
  300. LOCAL_MODULE := cocos2dx_static
  301. LOCAL_MODULE_FILENAME := libcocos2d
  302. LOCAL_STATIC_LIBRARIES := cocostudio_static
  303. LOCAL_STATIC_LIBRARIES += cocosbuilder_static
  304. LOCAL_STATIC_LIBRARIES += cocos3d_static
  305. LOCAL_STATIC_LIBRARIES += spine_static
  306. LOCAL_STATIC_LIBRARIES += cocos_network_static
  307. LOCAL_STATIC_LIBRARIES += audioengine_static
  308. LOCAL_STATIC_LIBRARIES += behaviac_static
  309. LOCAL_STATIC_LIBRARIES += red2dx_static
  310. LOCAL_STATIC_LIBRARIES += rparticle_static
  311. # LOCAL_STATIC_LIBRARIES += bulldog_static
  312. include $(BUILD_STATIC_LIBRARY)
  313. #==============================================================
  314. $(call import-module,android/cpufeatures)
  315. $(call import-module,freetype2/prebuilt/android)
  316. $(call import-module,platform/android)
  317. $(call import-module,png/prebuilt/android)
  318. $(call import-module,zlib/prebuilt/android)
  319. $(call import-module,jpeg/prebuilt/android)
  320. $(call import-module,tiff/prebuilt/android)
  321. $(call import-module,webp/prebuilt/android)
  322. $(call import-module,protobuf/prebuilt/android)
  323. $(call import-module,chipmunk/prebuilt/android)
  324. $(call import-module,3d)
  325. $(call import-module,audio/android)
  326. $(call import-module,editor-support/cocosbuilder)
  327. $(call import-module,editor-support/cocostudio)
  328. $(call import-module,editor-support/spine)
  329. $(call import-module,red)
  330. $(call import-module,network)
  331. $(call import-module,ui)
  332. $(call import-module,extensions)
  333. $(call import-module,rparticle)
  334. # $(call import-module,Box2D)
  335. $(call import-module,behaviac)
  336. # $(call import-module,bullet/prebuilt/android)
  337. # $(call import-module,recast)
  338. # $(call import-module,curl/prebuilt/android)
  339. $(call import-module,websockets/prebuilt/android)
  340. $(call import-module,openssl/prebuilt/android)
  341. # $(call import-module,BullDogClass)
  342. # $(call import-module,flatbuffers)