* commit '24b5fcf92aeba5a17bf0b4d1720318602cf51a16': Add all-cpp-files-under
This commit is contained in:
commit
6199d28dc9
1 changed files with 23 additions and 0 deletions
|
@ -225,6 +225,29 @@ define all-subdir-c-files
|
|||
$(call all-c-files-under,.)
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
## Find all of the cpp files under the named directories.
|
||||
## LOCAL_CPP_EXTENSION is respected if set.
|
||||
## Meant to be used like:
|
||||
## SRC_FILES := $(call all-cpp-files-under,src tests)
|
||||
###########################################################
|
||||
|
||||
define all-cpp-files-under
|
||||
$(sort $(patsubst ./%,%, \
|
||||
$(shell cd $(LOCAL_PATH) ; \
|
||||
find -L $(1) -name "*$(or $(LOCAL_CPP_EXTENSION),.cpp)" -and -not -name ".*") \
|
||||
))
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
## Find all of the cpp files from here. Meant to be used like:
|
||||
## SRC_FILES := $(call all-subdir-cpp-files)
|
||||
###########################################################
|
||||
|
||||
define all-subdir-cpp-files
|
||||
$(call all-cpp-files-under,.)
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
## Find all files named "I*.aidl" under the named directories,
|
||||
## which must be relative to $(LOCAL_PATH). The returned list
|
||||
|
|
Loading…
Reference in a new issue