Merge "Warn if there is file with unknown suffix in Java module\'s sources." am: 85b9117
am: 0c1d51d
* commit '0c1d51db71da93a39e548a8b3c38e13f6918d9dd':
Warn if there is file with unknown suffix in Java module's sources.
Change-Id: Ice1362527118749cd1b4da459b04efadf56a560d
This commit is contained in:
commit
b05161e1ec
|
@ -133,6 +133,15 @@ else
|
|||
extra_jar_args :=
|
||||
endif # java_resource_file_groups
|
||||
|
||||
#####################################
|
||||
## Warn if there is unrecognized file in LOCAL_SRC_FILES.
|
||||
my_unknown_src_files := $(filter-out \
|
||||
%.java %.aidl %.proto %.logtags %.fs %.rs, \
|
||||
$(LOCAL_SRC_FILES) $(LOCAL_INTERMEDIATE_SOURCES) $(LOCAL_GENERATED_SOURCES))
|
||||
ifneq ($(my_unknown_src_files),)
|
||||
$(warning $(LOCAL_MODULE_MAKEFILE): $(LOCAL_MODULE): Unused source files: $(my_unknown_src_files))
|
||||
endif
|
||||
|
||||
######################################
|
||||
## PRIVATE java vars
|
||||
# LOCAL_SOURCE_FILES_ALL_GENERATED is set only if the module does not have static source files,
|
||||
|
|
Loading…
Reference in New Issue