diff --git a/Android.mk b/Android.mk index c966a2230..6f4ac3bcc 100644 --- a/Android.mk +++ b/Android.mk @@ -32,6 +32,8 @@ LOCAL_AAPT_FLAGS := \ LOCAL_JAR_EXCLUDE_FILES := none include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files := $(LOCAL_SRC_FILES) + # A helper sub-library to resolve cyclic dependencies between src and the platform dependent # implementations include $(CLEAR_VARS) @@ -44,6 +46,8 @@ LOCAL_JAVA_LIBRARIES := android-support-design-res \ android-support-v7-recyclerview include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files += $(LOCAL_SRC_FILES) + # A helper sub-library that makes direct use of Eclair MR1 APIs include $(CLEAR_VARS) LOCAL_MODULE := android-support-design-eclair-mr1 @@ -56,6 +60,8 @@ LOCAL_JAVA_LIBRARIES := android-support-design-res \ android-support-v7-recyclerview include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files += $(LOCAL_SRC_FILES) + # A helper sub-library that makes direct use of Honeycomb APIs include $(CLEAR_VARS) LOCAL_MODULE := android-support-design-honeycomb @@ -68,6 +74,8 @@ LOCAL_JAVA_LIBRARIES := android-support-design-res \ android-support-v7-recyclerview include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files += $(LOCAL_SRC_FILES) + # A helper sub-library that makes direct use of Honeycomb MR1 APIs include $(CLEAR_VARS) LOCAL_MODULE := android-support-design-honeycomb-mr1 @@ -80,6 +88,8 @@ LOCAL_JAVA_LIBRARIES := android-support-design-res \ android-support-v7-recyclerview include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files += $(LOCAL_SRC_FILES) + # A helper sub-library that makes direct use of ICS APIs include $(CLEAR_VARS) LOCAL_MODULE := android-support-design-ics @@ -92,6 +102,8 @@ LOCAL_JAVA_LIBRARIES := android-support-design-res \ android-support-v7-recyclerview include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files += $(LOCAL_SRC_FILES) + # A helper sub-library that makes direct use of Lollipop APIs include $(CLEAR_VARS) LOCAL_MODULE := android-support-design-lollipop @@ -104,6 +116,8 @@ LOCAL_JAVA_LIBRARIES := android-support-design-res \ android-support-v7-recyclerview include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files += $(LOCAL_SRC_FILES) + # Here is the final static library that apps can link against. # The R class is automatically excluded from the generated library. # Applications that use this library must specify LOCAL_RESOURCE_DIR @@ -119,11 +133,12 @@ LOCAL_JAVA_LIBRARIES := android-support-design-res \ android-support-v7-recyclerview include $(BUILD_STATIC_JAVA_LIBRARY) +support_module_src_files += $(LOCAL_SRC_FILES) + # API Check # --------------------------------------------- support_module := $(LOCAL_MODULE) support_module_api_dir := $(LOCAL_PATH)/api -support_module_src_files := $(LOCAL_SRC_FILES) support_module_java_libraries := $(LOCAL_JAVA_LIBRARIES) support_module_java_packages := android.support.design.* include $(SUPPORT_API_CHECK)