2014-08-05 13:29:54 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
2014-11-06 14:32:03 +08:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := cocos2d_lua_android_static
|
|
|
|
|
|
|
|
LOCAL_MODULE_FILENAME := libluacocos2dandroid
|
|
|
|
|
2016-07-08 15:29:35 +08:00
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
|
2014-11-06 14:32:03 +08:00
|
|
|
LOCAL_SRC_FILES := ../manual/platform/android/CCLuaJavaBridge.cpp \
|
|
|
|
../manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../.. \
|
|
|
|
$(LOCAL_PATH)/../manual \
|
|
|
|
$(LOCAL_PATH)/../../../../external/lua/tolua \
|
|
|
|
$(LOCAL_PATH)/../manual/platform/android \
|
|
|
|
$(LOCAL_PATH)/../manual/platform/android/jni
|
|
|
|
|
|
|
|
LOCAL_EXPORT_LDLIBS := -lGLESv2 \
|
|
|
|
-llog \
|
|
|
|
-landroid
|
|
|
|
|
2016-07-12 05:07:11 +08:00
|
|
|
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
|
|
|
LUA_STATIC_LIB := lua_static
|
|
|
|
LUA_IMPORT_PATH := lua/lua
|
|
|
|
LUA_INCLUDE_PATH := $(LOCAL_PATH)/../../../../external/lua/lua
|
|
|
|
else
|
|
|
|
LUA_STATIC_LIB := luajit_static
|
|
|
|
LUA_IMPORT_PATH := lua/luajit/prebuilt/android
|
|
|
|
LUA_INCLUDE_PATH := $(LOCAL_PATH)/../../../../external/lua/luajit/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := $(LUA_STATIC_LIB)
|
2014-11-06 14:32:03 +08:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
#==============================================================
|
|
|
|
|
2014-08-05 13:29:54 +08:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := cocos2d_lua_static
|
|
|
|
|
|
|
|
LOCAL_MODULE_FILENAME := libluacocos2d
|
|
|
|
|
2015-06-30 16:45:13 +08:00
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
|
2014-08-05 13:29:54 +08:00
|
|
|
LOCAL_SRC_FILES := ../manual/CCLuaBridge.cpp \
|
|
|
|
../manual/CCLuaEngine.cpp \
|
|
|
|
../manual/CCLuaStack.cpp \
|
|
|
|
../manual/CCLuaValue.cpp \
|
|
|
|
../manual/Cocos2dxLuaLoader.cpp \
|
|
|
|
../manual/LuaBasicConversions.cpp \
|
2015-12-09 15:28:32 +08:00
|
|
|
../manual/lua_module_register.cpp \
|
2014-08-05 13:29:54 +08:00
|
|
|
../auto/lua_cocos2dx_auto.cpp \
|
|
|
|
../auto/lua_cocos2dx_physics_auto.cpp \
|
|
|
|
../auto/lua_cocos2dx_experimental_auto.cpp \
|
|
|
|
../manual/cocos2d/lua_cocos2dx_deprecated.cpp \
|
|
|
|
../manual/cocos2d/lua_cocos2dx_experimental_manual.cpp \
|
|
|
|
../manual/cocos2d/lua_cocos2dx_manual.cpp \
|
|
|
|
../manual/cocos2d/lua_cocos2dx_physics_manual.cpp \
|
|
|
|
../manual/cocos2d/LuaOpengl.cpp \
|
|
|
|
../manual/cocos2d/LuaScriptHandlerMgr.cpp \
|
|
|
|
../manual/tolua_fix.cpp \
|
|
|
|
../../../../external/lua/tolua/tolua_event.c \
|
|
|
|
../../../../external/lua/tolua/tolua_is.c \
|
|
|
|
../../../../external/lua/tolua/tolua_map.c \
|
|
|
|
../../../../external/lua/tolua/tolua_push.c \
|
|
|
|
../../../../external/lua/tolua/tolua_to.c \
|
2014-09-14 23:17:39 +08:00
|
|
|
../../../../external/xxtea/xxtea.cpp \
|
|
|
|
../auto/lua_cocos2dx_audioengine_auto.cpp \
|
|
|
|
../manual/audioengine/lua_cocos2dx_audioengine_manual.cpp
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2015-09-18 17:21:51 +08:00
|
|
|
#Component
|
2015-09-22 01:34:56 +08:00
|
|
|
LOCAL_SRC_FILES += ../manual/CCComponentLua.cpp \
|
2015-09-18 17:21:51 +08:00
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#3d
|
|
|
|
LOCAL_SRC_FILES += ../manual/3d/lua_cocos2dx_3d_manual.cpp \
|
2014-08-18 15:04:32 +08:00
|
|
|
../auto/lua_cocos2dx_3d_auto.cpp
|
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#cocosdenshion
|
|
|
|
LOCAL_SRC_FILES += ../manual/cocosdenshion/lua_cocos2dx_cocosdenshion_manual.cpp \
|
2014-08-05 13:29:54 +08:00
|
|
|
../auto/lua_cocos2dx_cocosdenshion_auto.cpp
|
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#network
|
|
|
|
LOCAL_SRC_FILES += ../manual/network/lua_cocos2dx_network_manual.cpp \
|
2014-08-05 13:29:54 +08:00
|
|
|
../manual/network/lua_extensions.c \
|
|
|
|
../manual/network/Lua_web_socket.cpp \
|
|
|
|
../manual/network/lua_xml_http_request.cpp \
|
|
|
|
../../../../external/lua/luasocket/auxiliar.c \
|
|
|
|
../../../../external/lua/luasocket/buffer.c \
|
|
|
|
../../../../external/lua/luasocket/except.c \
|
|
|
|
../../../../external/lua/luasocket/inet.c \
|
|
|
|
../../../../external/lua/luasocket/io.c \
|
|
|
|
../../../../external/lua/luasocket/luasocket.c \
|
2014-10-14 16:55:38 +08:00
|
|
|
../../../../external/lua/luasocket/luasocket_scripts.c \
|
2014-08-05 13:29:54 +08:00
|
|
|
../../../../external/lua/luasocket/mime.c \
|
|
|
|
../../../../external/lua/luasocket/options.c \
|
|
|
|
../../../../external/lua/luasocket/select.c \
|
|
|
|
../../../../external/lua/luasocket/serial.c \
|
|
|
|
../../../../external/lua/luasocket/tcp.c \
|
|
|
|
../../../../external/lua/luasocket/timeout.c \
|
|
|
|
../../../../external/lua/luasocket/udp.c \
|
|
|
|
../../../../external/lua/luasocket/unix.c \
|
2014-08-25 09:48:14 +08:00
|
|
|
../../../../external/lua/luasocket/usocket.c
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#cocosbuilder
|
|
|
|
LOCAL_SRC_FILES += ../manual/cocosbuilder/lua_cocos2dx_cocosbuilder_manual.cpp \
|
2014-08-05 13:29:54 +08:00
|
|
|
../manual/cocosbuilder/CCBProxy.cpp \
|
2014-08-25 09:48:14 +08:00
|
|
|
../auto/lua_cocos2dx_cocosbuilder_auto.cpp
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#cocostudio
|
|
|
|
LOCAL_SRC_FILES += ../manual/cocostudio/lua_cocos2dx_coco_studio_manual.cpp \
|
2014-09-02 16:16:36 +08:00
|
|
|
../manual/cocostudio/CustomGUIReader.cpp \
|
2014-11-26 21:54:18 +08:00
|
|
|
../manual/cocostudio/lua_cocos2dx_csloader_manual.cpp \
|
2014-11-27 19:42:32 +08:00
|
|
|
../auto/lua_cocos2dx_csloader_auto.cpp \
|
2015-01-21 10:06:48 +08:00
|
|
|
../auto/lua_cocos2dx_studio_auto.cpp \
|
2015-01-21 11:48:34 +08:00
|
|
|
../manual/cocostudio/lua-cocos-studio-conversions.cpp
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#spine
|
|
|
|
LOCAL_SRC_FILES += ../manual/spine/lua_cocos2dx_spine_manual.cpp \
|
2014-08-05 13:29:54 +08:00
|
|
|
../manual/spine/LuaSkeletonAnimation.cpp \
|
2014-08-25 09:48:14 +08:00
|
|
|
../auto/lua_cocos2dx_spine_auto.cpp
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#ui
|
2015-04-20 10:11:39 +08:00
|
|
|
LOCAL_SRC_FILES += ../manual/ui/lua_cocos2dx_experimental_webview_manual.cpp \
|
|
|
|
../manual/ui/lua_cocos2dx_experimental_video_manual.cpp \
|
2014-08-25 09:48:14 +08:00
|
|
|
../manual/ui/lua_cocos2dx_ui_manual.cpp \
|
|
|
|
../auto/lua_cocos2dx_experimental_video_auto.cpp \
|
2015-04-20 10:11:39 +08:00
|
|
|
../auto/lua_cocos2dx_ui_auto.cpp \
|
|
|
|
../auto/lua_cocos2dx_experimental_webview_auto.cpp
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
#extension
|
|
|
|
LOCAL_SRC_FILES += ../manual/extension/lua_cocos2dx_extension_manual.cpp \
|
2014-08-05 13:29:54 +08:00
|
|
|
../auto/lua_cocos2dx_extension_auto.cpp \
|
|
|
|
|
2015-05-15 09:28:03 +08:00
|
|
|
#physics3d
|
|
|
|
LOCAL_SRC_FILES += ../manual/physics3d/lua_cocos2dx_physics3d_manual.cpp \
|
|
|
|
../auto/lua_cocos2dx_physics3d_auto.cpp \
|
|
|
|
|
2015-06-02 18:37:57 +08:00
|
|
|
#navmesh
|
|
|
|
LOCAL_SRC_FILES += ../manual/navmesh/lua_cocos2dx_navmesh_conversions.cpp \
|
|
|
|
../manual/navmesh/lua_cocos2dx_navmesh_manual.cpp \
|
|
|
|
../auto/lua_cocos2dx_navmesh_auto.cpp \
|
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../external/lua/tolua \
|
2016-07-12 05:07:11 +08:00
|
|
|
$(LUA_INCLUDE_PATH) \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../../../2d \
|
|
|
|
$(LOCAL_PATH)/../../../3d \
|
|
|
|
$(LOCAL_PATH)/../../../network \
|
|
|
|
$(LOCAL_PATH)/../../../editor-support/cocosbuilder \
|
|
|
|
$(LOCAL_PATH)/../../../editor-support/cocostudio \
|
2014-10-15 00:25:12 +08:00
|
|
|
$(LOCAL_PATH)/../../../editor-support/cocostudio/ActionTimeline \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../../../editor-support/spine \
|
|
|
|
$(LOCAL_PATH)/../../../ui \
|
2015-05-15 09:28:03 +08:00
|
|
|
$(LOCAL_PATH)/../../../physics3d \
|
2015-06-02 18:37:57 +08:00
|
|
|
$(LOCAL_PATH)/../../../navmesh \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../../../../extensions \
|
2014-08-05 13:29:54 +08:00
|
|
|
$(LOCAL_PATH)/../auto \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../manual \
|
|
|
|
$(LOCAL_PATH)/../manual/cocos2d \
|
|
|
|
$(LOCAL_PATH)/../manual/3d \
|
|
|
|
$(LOCAL_PATH)/../manual/cocosdenshion \
|
2014-09-14 23:17:39 +08:00
|
|
|
$(LOCAL_PATH)/../manual/audioengine \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../manual/network \
|
|
|
|
$(LOCAL_PATH)/../manual/extension \
|
|
|
|
$(LOCAL_PATH)/../manual/cocostudio \
|
|
|
|
$(LOCAL_PATH)/../manual/cocosbuilder \
|
|
|
|
$(LOCAL_PATH)/../manual/spine \
|
|
|
|
$(LOCAL_PATH)/../manual/ui \
|
2015-06-02 18:37:57 +08:00
|
|
|
$(LOCAL_PATH)/../manual/navmesh \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../../../../external/xxtea \
|
|
|
|
$(LOCAL_PATH)/../../../.. \
|
2015-04-17 15:52:45 +08:00
|
|
|
$(LOCAL_PATH)/../../../../external/lua
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-08-25 09:48:14 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../external/lua/tolua \
|
2016-07-12 05:07:11 +08:00
|
|
|
$(LUA_INCLUDE_PATH) \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../auto \
|
|
|
|
$(LOCAL_PATH)/../manual \
|
|
|
|
$(LOCAL_PATH)/../manual/cocos2d \
|
|
|
|
$(LOCAL_PATH)/../manual/3d \
|
|
|
|
$(LOCAL_PATH)/../manual/cocosdenshion \
|
2014-09-14 23:17:39 +08:00
|
|
|
$(LOCAL_PATH)/../manual/audioengine \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../manual/network \
|
|
|
|
$(LOCAL_PATH)/../manual/cocosbuilder \
|
|
|
|
$(LOCAL_PATH)/../manual/cocostudio \
|
|
|
|
$(LOCAL_PATH)/../manual/spine \
|
|
|
|
$(LOCAL_PATH)/../manual/extension \
|
|
|
|
$(LOCAL_PATH)/../manual/ui \
|
2015-06-02 18:37:57 +08:00
|
|
|
$(LOCAL_PATH)/../manual/navmesh \
|
2014-08-25 09:48:14 +08:00
|
|
|
$(LOCAL_PATH)/../../../..
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-11-06 14:32:03 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2d_lua_android_static
|
2014-08-05 13:29:54 +08:00
|
|
|
|
2014-11-06 14:32:03 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := cocos2dx_static
|
2014-08-05 13:29:54 +08:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2016-07-12 05:07:11 +08:00
|
|
|
$(call import-module,$(LUA_IMPORT_PATH))
|
2014-08-05 13:29:54 +08:00
|
|
|
$(call import-module,.)
|