溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Android.mk 代碼注釋

發(fā)布時間:2020-08-06 16:46:02 來源:網(wǎng)絡(luò) 閱讀:4274 作者:qq646827911 欄目:移動開發(fā)

參考文章:http://www.cnblogs.com/wainiwann/p/3837936.html


LOCAL_PATH := $(call my-dir)  #返回Android.mk的目錄路徑



include $(CLEAR_VARS)   #負(fù)責(zé)清理很多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)  #把這個共享庫聲明為 “一個” 獨立的模塊,    預(yù)先編譯好的動態(tài)庫

LOCAL_SHARED_LIBRARIES := libjpush273  #要鏈接到本模塊的動態(tài)庫(更改或刪掉無用)




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  #即允許用戶重新定義最終生成的目標(biāo)文件名


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  指向一個編譯腳本,它收集自從上次調(diào)用 include $(CLEAR_VARS)  后的所有LOCAL_XXX信息。

并決定如何將你列出的Source編譯成一個動態(tài)庫。 注意,在包含此文件前,至少應(yīng)該包含:LOCAL_MODULE and LOCAL_SRC_FILES 例如: include $(BUILD_SHARED_LIBRARY)


$(call import-module,scripting/lua-bindings)


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI