您好,登錄后才能下訂單哦!
參考文章:http://www.cnblogs.com/wainiwann/p/3837936.html
LOCAL_PATH := $(call my-dir) #返回Android.mk的目錄路徑
include $(CLEAR_VARS) #負責清理很多LOCAL_xxx. 例如:LOCAL_MODULE, LOCAL_SRC_FILES, LOCAL_STATIC_LIBRARIES等等。但不清理LOCAL_PATH.
LOCAL_MODULE := libjpush273 #模塊的文件路徑 ,Android.mk中的每一個模塊
LOCAL_SRC_FILES := jpush/libjpush273.so #模塊的文件路徑
include $(PREBUILT_SHARED_LIBRARY) #把這個共享庫聲明為 “一個” 獨立的模塊, 預先編譯好的動態庫
LOCAL_SHARED_LIBRARIES := libjpush273 #要鏈接到本模塊的動態庫(更改或刪掉無用)
include $(CLEAR_VARS)
LOCAL_MODULE := bugly
LOCAL_SRC_FILES := bugly/libBugly.so
include $(PREBUILT_SHARED_LIBRARY)
LOCAL_SHARED_LIBRARIES := bugly
include $(CLEAR_VARS)
LOCAL_MODULE := cocos2dlua_shared
LOCAL_MODULE_FILENAME := libcocos2dlua #即允許用戶重新定義最終生成的目標文件名
LOCAL_CFLAGS += -DUSING_LUA
LOCAL_SRC_FILES :=hellolua/main.cpp \ #模塊的文件路徑
../../Classes/AppDelegate.cpp \
../../Classes/auto/lua_client_auto.cpp \
../../Classes/auto/lua_ui_extensions_auto.cpp \
../../Classes/manual/lua_client_manual.cpp \
../../Classes/Net/GameNetManager.cpp \
../../Classes/Net/MsgHandler.cpp \
../../lib/common/AdapterToLua.cpp \
../../lib/common/exceptdump.cpp \
../../lib/extensions/AnimateMgr.cpp \
../../lib/extensions/AnimateSprite.cpp \
../../lib/extensions/ParticleSystemCommon.cpp \
../../lib/extensions/ResourceMgr.cpp \
../../lib/extensions/SpriteAnimate.cpp \
../../lib/extensions/UtilEx.cpp \
../../lib/extensions/ZipFileEx.cpp \
../../lib/gamescene/AStarFindPath.cpp \
../../lib/gamescene/GameMap.cpp \
../../lib/gamescene/GameScene.cpp \
../../lib/gamescene/MapConfig.cpp \
../../lib/gamescene/RenderGroup.cpp \
../../lib/gamescene/Terrain.cpp \
../../lib/gamescene/TerrainNode.cpp \
../../lib/md5/md5.c \
../../lib/memory/clmempool.cpp \
../../lib/memory/memmonitor.cpp \
../../lib/memory/mempool.cpp \
../../lib/memory/mempoolex.cpp \
../../lib/memory/msgmem.cpp \
../../lib/network/HttpClient.cpp \
../../lib/network/NetworkManager.cpp \
../../lib/network/basicnetwork/basicnetwork.cpp \
../../lib/network/basicnetwork/jobaccept.cpp \
../../lib/network/basicnetwork/jobdisconnect.cpp \
../../lib/network/basicnetwork/jobrecv.cpp \
../../lib/network/basicnetwork/listenhandler.cpp \
../../lib/network/basicnetwork/network.cpp \
../../lib/network/basicnetwork/tcphandler.cpp \
../../lib/platform/system.cpp \
../../lib/platform/systemex.cpp \
../../lib/platform/platform_adapter.cpp \
../../lib/platform/socket/pisocket.cpp \
../../lib/platform/socket/pisocketex.cpp \
../../lib/platform/thread/event.cpp \
../../lib/platform/thread/mutex.cpp \
../../lib/platform/thread/semaphore.cpp \
../../lib/platform/thread/thread.cpp \
../../lib/ui_extensions/UIJoystick.cpp \
../../lib/ui_extensions/UILoadingBarEx.cpp \
../../lib/ui_extensions/UIRichTextEx.cpp \
../../lib/ui_extensions/UITextFieldEx.cpp \
../../lib/ui_extensions/UIToggleButton.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \ #一個可選的path列表。相對于NDK ROOT 目錄
$(LOCAL_PATH)/../../Classes/Net \
$(LOCAL_PATH)/../../Classes/lua_manual \
$(LOCAL_PATH)/../../Classes/auto \
$(LOCAL_PATH)/../../Classes/anysdk \
$(LOCAL_PATH)/../../lib \
$(LOCAL_PATH)/../../lib/auto \
$(LOCAL_PATH)/../../lib/common \
$(LOCAL_PATH)/../../lib/extensions \
$(LOCAL_PATH)/../../lib/gamescene \
$(LOCAL_PATH)/../../lib/md5 \
$(LOCAL_PATH)/../../lib/memory \
$(LOCAL_PATH)/../../lib/network \
$(LOCAL_PATH)/../../lib/platform \
$(LOCAL_PATH)/../../lib/ui_extensions \
$(LOCAL_PATH)/../../../cocos2d-x/cocos \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/2d \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/2d/platform \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/2d/platform\android \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/2d/platform\desktop \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/2d/renderer \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/base \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/math \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/math/kazmath \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/physics \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/platform \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/renderer\
$(LOCAL_PATH)/../../../cocos2d-x/cocos/ui \
$(LOCAL_PATH)/../../../cocos2d-x/extensions \
$(LOCAL_PATH)/../../../cocos2d-x/external \
$(LOCAL_PATH)/../../../cocos2d-x/external/lua/tolua \
$(LOCAL_PATH)/../../../cocos2d-x/external/lua/luajit/include \
$(LOCAL_PATH)/../../../cocos2d-x/external/lua \
$(LOCAL_PATH)/../../../cocos2d-x/external/tinyxml2 \
$(LOCAL_PATH)/../../../cocos2d-x/external/xxtea \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/scripting/lua-bindings/auto \
$(LOCAL_PATH)/../../../cocos2d-x/cocos/scripting/lua-bindings/manual
LOCAL_STATIC_LIBRARIES := cocos_curl_static
LOCAL_STATIC_LIBRARIES += cocos_mbedtls_static
LOCAL_STATIC_LIBRARIES += cocos_lua_static
include $(BUILD_SHARED_LIBRARY)
#BUILD_SHARED_LIBRARY 指向一個編譯腳本,它收集自從上次調用 include $(CLEAR_VARS) 后的所有LOCAL_XXX信息。
并決定如何將你列出的Source編譯成一個動態庫。 注意,在包含此文件前,至少應該包含:LOCAL_MODULE and LOCAL_SRC_FILES 例如: include $(BUILD_SHARED_LIBRARY)
$(call import-module,scripting/lua-bindings)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。