Warn if there is file with unknown suffix in Java module's sources.
This helps catch extra ) at the end of LOCAL_SRC_FILES. Bug: 28389144 Change-Id: I0ab536b5bb47338ebf5bdf531835d58f527ccf67
This commit is contained in:
@@ -133,6 +133,15 @@ else
|
|||||||
extra_jar_args :=
|
extra_jar_args :=
|
||||||
endif # java_resource_file_groups
|
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
|
## PRIVATE java vars
|
||||||
# LOCAL_SOURCE_FILES_ALL_GENERATED is set only if the module does not have static source files,
|
# LOCAL_SOURCE_FILES_ALL_GENERATED is set only if the module does not have static source files,
|
||||||
|
Reference in New Issue
Block a user