Android.mk.bak 10 KB

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