The cocos2d-x does not need to change the android. mk file every time it is compiled into Android through build_natice.sh

Source: Internet
Author: User

This is the full text of my Android. mk focuses on the red part, replace the original manually added part. Note: This is the LOCAL_PATH: = $ (call my-dir) include $ (CLEAR_VARS) LOCAL_MODULE: = cocos2dcpp_shared LOCAL_MODULE_FILENAME: = libcocos2dcpp # function define walk for directory traversal and sub-directories $ (wildcard $ (1) $ (foreach e, $ (wildcard $ (1)/*), $ (call walk, $ (e) endef # traverse the Classes directory ALLFILES =$ (call walk, $ (LOCAL_PATH )/.. /.. /Classes) FILE_LIST: = hellocpp/main. cpp # extract all from all files. cpp file FILE_LIST + = $ (filter %. cpp, $ (ALLFILES) LOCAL_SRC_FILES :=$ (FILE_LIST: $ (LOCAL_PATH)/%=%) FILE_INCLUDES :=$ (shell find $ (LOCAL_PATH )/.. /.. /Classes-type d) LOCAL_C_INCLUDES: = $ (FILE_INCLUDES) LOCAL_WHOLE_STATIC_LIBRARIES + = libraries + = cocos_extension_static include $ (BUILD_SHARED_LIBRARY) $ (call import-module, cocos2dx) $ (call import-module, cocos2dx/platform/third_party/android/prebuilt/libcurl) $ (call import-module, CocosDenshion/android) $ (call import-module, extensions) $ (call import-module, external/Box2D) $ (call import-module, external/chipmunk)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.