我想包括所有.cpp
在Classes,EasyLib and EasyLibUse
目錄和所有.cpp
文件罪有子目錄。但我無法這樣做,請檢查我的打擊android.mk
文件。在android.mk目錄和子目錄中創建所有.cpp文件的FILE_LIST
我這樣做,包括我的cocos2dx
遊戲.cpp
文件android
。
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := game_shared
LOCAL_MODULE_FILENAME := libgame
FILE_LIST := $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../EasyLib/**/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../EasyLibUse/**/*.cpp)
LOCAL_SRC_FILES := hellocpp/main.cpp \
$(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Lib
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../LibUse
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static
include $(BUILD_SHARED_LIBRARY)
$(call import-module,CocosDenshion/android) \
$(call import-module,cocos2dx) \
$(call import-module,extensions)
編輯:
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../EasyLib/**/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/../../EasyLibUse/**/*.cpp)
這兩構建失敗的.cpp子目錄中的文件。
問候, Aqif
在其中的三個確實讓無法找到文件? – Beta
請檢查編輯。 –