зеркало из https://github.com/microsoft/cocos2d-x.git
40 строки
1.4 KiB
Makefile
40 строки
1.4 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := cocos_extension_static
|
|
|
|
LOCAL_MODULE_FILENAME := libextension
|
|
|
|
dirs := $(shell find $(LOCAL_PATH) -type d -print)
|
|
find_files = $(subst $(LOCAL_PATH)/,,$(wildcard $(dir)/*.cpp))
|
|
|
|
LOCAL_SRC_FILES := $(foreach dir, $(dirs), $(find_files))
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_curl_static
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += libwebsockets_static
|
|
|
|
LOCAL_CXXFLAGS += -fexceptions
|
|
|
|
LOCAL_CFLAGS += -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
|
LOCAL_EXPORT_CFLAGS += -DCC_ENABLE_CHIPMUNK_INTEGRATION=1
|
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
|
$(LOCAL_PATH)/CCBReader \
|
|
$(LOCAL_PATH)/GUI/CCControlExtension \
|
|
$(LOCAL_PATH)/GUI/CCScrollView \
|
|
$(LOCAL_PATH)/network \
|
|
$(LOCAL_PATH)/LocalStorage
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
$(call import-module,cocos2dx)
|
|
$(call import-module,CocosDenshion/android)
|
|
$(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl)
|
|
$(call import-module,external/Box2D)
|
|
$(call import-module,external/chipmunk)
|
|
$(call import-module,external/libwebsockets/android)
|