look at the original text, please: Writing android.mk in the local_c_includes skills
in writingandroid.mkIn the process, it is unavoidable to modifyLOCAL_C_INCLUDESTo set the Include directory for the header file, which is generally written like this
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes $(LOCAL_PATH)/../../Classes/game $(LOCAL_PATH)/../../Classes/logic $(LOCAL_PATH)/../../Classes/view
There is a directory to write a line, really cumbersome, there is no writing can be the source directory of all sub-directories are introduced, see below
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../ClassesLOCAL_C_INCLUDES += $(shell ls -FR $(LOCAL_C_INCLUDES) | grep $(LOCAL_PATH)/$ )LOCAL_C_INCLUDES := $(LOCAL_C_INCLUDES:$(LOCAL_PATH)/%:=$(LOCAL_PATH)/%)
You can $(LOCAL_PATH)/../../Classes include all the directories and subdirectories in the list.
There is also a way to usesedcommand, the effect was the same, and IsedNot very familiar, simply write a bit
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes LOCAL_C_INCLUDES += $(shell ls -FR $(LOCAL_C_INCLUDES) | grep $(LOCAL_PATH)/$ | sed "s/:/ /g" )
The results of these two lines are the same as the above three rows.
[Turn] tips for writing local_c_includes in Android.mk