您好,登錄后才能下訂單哦!
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
#引用的靜態鏈接庫
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
#編譯成動態庫
include $(BUILD_SHARED_LIBRARY)
#導入外部模塊的.mk文件 ,和 include基本一樣 import-module是指ndk_module_path設置的路徑(包含應用的路徑)(-x在build_native.py中設置(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)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。