COCOS2DX Android Mk Explained

Source: Internet
Author: User

Local_path: = $ (call My-dir)


Include $ (clear_vars)

#编译库的名称

Local_module: = cocos2dcpp_shared

#编译库的文件名

Local_module_filename: = Libcocos2dcpp

#包含的源文件

Local_src_files: = hellocpp/main.cpp \

.. /.. /classes/appdelegate.cpp \

.. /.. /classes/card.cpp \

.. /.. /classes/gameoverlayer.cpp \

.. /.. /classes/gamescene.cpp \

.. /.. /classes/highscore.cpp \

.. /.. /classes/poplayer.cpp \

.. /.. /classes/simplerecognizer.cpp

#c/c++ header file contains path

Local_c_includes: = $ (Local_path)/. /.. /classes

#引用的静态链接库

Local_whole_static_libraries: = cocos2dx_static

Local_whole_static_libraries + = Cocosdenshion_static

Local_whole_static_libraries + = Box2d_static


#编译成动态库

Include $ (build_shared_library)

#导入外部模块的. mk file, as with include, import-module refers to the path of the Ndk_module_path setting (contains the path to the app) (-X is set in build_native.py (Ndk_module_path = ' Ndk_module_path=%s;%s/external;%s/cocos '% (Cocos_root, Cocos_root, Cocos_root)))

$ (call import-module,2d)

$ (call import-module,audio/android)

$ (call import-module,box2d)


Related Article

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.