Android

FILE_LIST := $(wildcard $(LOCAL_PATH)/目录1/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/目录2/*.cpp)

LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)