LOCAL_PATH := $(call my-dir) //returns jni
LOCAL_C_INCLUDES := jni\shared\Core\filters\supplemental jni\shared\Core\aspect_ratio
jni\shared\Core\cache jni\shared\Core\doc_axis jni\shared\Core\kiss_fft
jni\shared\Core\perspective jni\shared\Core\supplemental jni\shared\Core\types
我已经硬编码了LOCAL_C_INCLUDES的值。但是,我想使用windows shell命令为LOCAL_C_INCLUDES获取此值。我研究了这个超过2个小时但却找不到。
How do i get a list of folders and subfolders without the files
Suppress directory names being listed with DIR
ALLFOLDERS := $(shell dir $(LOCAL_PATH)\shared\Core /b /s /ad)
上面的命令为我提供了目录和子目录的完整路径。但是,我只需要当前目录中的路径,即jni \ shared \ Core \ filters,而不是从D:\等开始的整个路径。