您好,登錄后才能下訂單哦!
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#編譯庫的名稱
LOCAL_MODULE := cocos2dcpp_shared
#編譯庫的文件名
LOCAL_MODULE_FILENAME := libcocos2dcpp
#包含的源文件
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
../../Classes/Card.cpp \
../../Classes/GameOverLayer.cpp \
../../Classes/GameScene.cpp \
../../Classes/HighScore.cpp \
../../Classes/PopLayer.cpp \
../../Classes/SimpleRecognizer.cpp
#c/C++頭文件包含路徑
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
#引用的靜態(tài)鏈接庫
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
#編譯成動態(tài)庫
include $(BUILD_SHARED_LIBRARY)
#導(dǎo)入外部模塊的.mk文件 ,和 include基本一樣 import-module是指ndk_module_path設(shè)置的路徑(包含應(yīng)用的路徑)(-x在build_native.py中設(shè)置(ndk_module_path = 'NDK_MODULE_PATH=%s;%s/external;%s/cocos' % (cocos_root, cocos_root, cocos_root)))
$(call import-module,2d)
$(call import-module,audio/android)
$(call import-module,Box2D)
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。