Monday, August 4, 2014

Cocos2D-X Android: Cocos Extension cocos-ext.h

To enable the "cocos-ext.h" Cocos Extension library, you'll need to edit the Android.mk file by uncommenting (or adding) the following lines:

LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
and
$(call import-module,extensions)

In your source files, include it like this:
#include "extensions/cocos-ext.h"

This is for Cocos2D-X 3.2.

No comments:

Post a Comment