1 # Copyright (C) 2011 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH := $(call my-dir) 16 17 # A helper sub-library that makes direct use of Gingerbread APIs. 18 include $(CLEAR_VARS) 19 LOCAL_MODULE := android-support-core-utils-gingerbread 20 LOCAL_SDK_VERSION := 9 21 LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread) 22 LOCAL_STATIC_JAVA_LIBRARIES := \ 23 android-support-annotations \ 24 android-support-compat 25 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 26 include $(BUILD_STATIC_JAVA_LIBRARY) 27 28 # ----------------------------------------------------------------------- 29 30 # A helper sub-library that makes direct use of Honeycomb APIs. 31 include $(CLEAR_VARS) 32 LOCAL_MODULE := android-support-core-utils-honeycomb 33 LOCAL_SDK_VERSION := 11 34 LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb) 35 LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-gingerbread 36 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 37 include $(BUILD_STATIC_JAVA_LIBRARY) 38 39 # ----------------------------------------------------------------------- 40 41 # A helper sub-library that makes direct use of JellyBean APIs. 42 include $(CLEAR_VARS) 43 LOCAL_MODULE := android-support-core-utils-jellybean 44 LOCAL_SDK_VERSION := 16 45 LOCAL_SRC_FILES := $(call all-java-files-under, jellybean) 46 LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-honeycomb 47 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 48 include $(BUILD_STATIC_JAVA_LIBRARY) 49 50 # ----------------------------------------------------------------------- 51 52 # A helper sub-library that makes direct use of KitKat APIs. 53 include $(CLEAR_VARS) 54 LOCAL_MODULE := android-support-core-utils-kitkat 55 LOCAL_SDK_VERSION := 19 56 LOCAL_SRC_FILES := $(call all-java-files-under, kitkat) 57 LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-jellybean 58 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 59 include $(BUILD_STATIC_JAVA_LIBRARY) 60 61 # ----------------------------------------------------------------------- 62 63 # A helper sub-library that makes direct use of V20 APIs. 64 include $(CLEAR_VARS) 65 LOCAL_MODULE := android-support-core-utils-api20 66 LOCAL_SDK_VERSION := 20 67 LOCAL_SRC_FILES := $(call all-java-files-under, api20) 68 LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-kitkat 69 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 70 include $(BUILD_STATIC_JAVA_LIBRARY) 71 72 # ----------------------------------------------------------------------- 73 74 # A helper sub-library that makes direct use of Lollipop APIs. 75 include $(CLEAR_VARS) 76 LOCAL_MODULE := android-support-core-utils-api21 77 LOCAL_SDK_VERSION := 21 78 LOCAL_SRC_FILES := $(call all-java-files-under, api21) 79 LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api20 80 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 81 include $(BUILD_STATIC_JAVA_LIBRARY) 82 83 # ----------------------------------------------------------------------- 84 85 # A helper sub-library that makes direct use of V23 APIs. 86 include $(CLEAR_VARS) 87 LOCAL_MODULE := android-support-core-utils-api23 88 LOCAL_SDK_VERSION := 23 89 LOCAL_SRC_FILES := $(call all-java-files-under, api23) 90 LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api21 91 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 92 include $(BUILD_STATIC_JAVA_LIBRARY) 93 94 # ----------------------------------------------------------------------- 95 96 # A helper sub-library that makes direct use of V24 APIs. 97 include $(CLEAR_VARS) 98 LOCAL_MODULE := android-support-core-utils-api24 99 LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION) 100 LOCAL_SRC_FILES := $(call all-java-files-under, api24) 101 LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api23 102 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 103 include $(BUILD_STATIC_JAVA_LIBRARY) 104 105 # ----------------------------------------------------------------------- 106 107 # Here is the final static library that apps can link against. 108 include $(CLEAR_VARS) 109 LOCAL_USE_AAPT2 := true 110 LOCAL_MODULE := android-support-core-utils 111 LOCAL_SDK_VERSION := 9 112 LOCAL_SRC_FILES := $(call all-java-files-under, java) 113 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 114 LOCAL_STATIC_JAVA_LIBRARIES += android-support-core-utils-api24 115 LOCAL_SHARED_ANDROID_LIBRARIES := \ 116 android-support-compat \ 117 android-support-annotations 118 LOCAL_JAR_EXCLUDE_FILES := none 119 LOCAL_JAVA_LANGUAGE_VERSION := 1.7 120 include $(BUILD_STATIC_JAVA_LIBRARY) 121