Skip to content

Instantly share code, notes, and snippets.

@tklee1975
Created February 3, 2015 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tklee1975/44d7a76908625ad6f1da to your computer and use it in GitHub Desktop.
Save tklee1975/44d7a76908625ad6f1da to your computer and use it in GitHub Desktop.
Sample Android.mk that include a source list
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CPPFLAGS := -DENABLE_TDD
LOCAL_MODULE := cocos2dcpp_shared
LOCAL_MODULE_FILENAME := libcocos2dcpp
# define LOCAL_SRC_FILES & LOCAL_C_INCLUDES
CLASS_PATH :=../../Classes
include $(LOCAL_PATH)/Sources.mk
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
# ???
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/Classes
include $(BUILD_SHARED_LIBRARY)
$(call import-module,2d)
$(call import-module,extensions)
$(call import-module,audio/android)
@tklee1975
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment