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 Donut APIs. 18 include $(CLEAR_VARS) 19 LOCAL_MODULE := android-support-v4-donut 20 LOCAL_SDK_VERSION := 4 21 LOCAL_SRC_FILES := $(call all-java-files-under, donut) 22 LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations 23 include $(BUILD_STATIC_JAVA_LIBRARY) 24 25 # ----------------------------------------------------------------------- 26 27 # A helper sub-library that makes direct use of Eclair APIs. 28 include $(CLEAR_VARS) 29 LOCAL_MODULE := android-support-v4-eclair 30 LOCAL_SDK_VERSION := 5 31 LOCAL_SRC_FILES := $(call all-java-files-under, eclair) 32 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-donut 33 include $(BUILD_STATIC_JAVA_LIBRARY) 34 35 # ----------------------------------------------------------------------- 36 37 # A helper sub-library that makes direct use of Eclair MR1 APIs. 38 include $(CLEAR_VARS) 39 LOCAL_MODULE := android-support-v4-eclair-mr1 40 LOCAL_SDK_VERSION := 7 41 LOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1) 42 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair 43 include $(BUILD_STATIC_JAVA_LIBRARY) 44 45 # ----------------------------------------------------------------------- 46 47 # A helper sub-library that makes direct use of Froyo APIs. 48 include $(CLEAR_VARS) 49 LOCAL_MODULE := android-support-v4-froyo 50 LOCAL_SDK_VERSION := 8 51 LOCAL_SRC_FILES := $(call all-java-files-under, froyo) 52 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1 53 include $(BUILD_STATIC_JAVA_LIBRARY) 54 55 # ----------------------------------------------------------------------- 56 57 # A helper sub-library that makes direct use of Gingerbread APIs. 58 include $(CLEAR_VARS) 59 LOCAL_MODULE := android-support-v4-gingerbread 60 LOCAL_SDK_VERSION := 9 61 LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread) 62 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo 63 include $(BUILD_STATIC_JAVA_LIBRARY) 64 65 # ----------------------------------------------------------------------- 66 67 # A helper sub-library that makes direct use of Honeycomb APIs. 68 include $(CLEAR_VARS) 69 LOCAL_MODULE := android-support-v4-honeycomb 70 LOCAL_SDK_VERSION := 11 71 LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb) 72 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread 73 include $(BUILD_STATIC_JAVA_LIBRARY) 74 75 # ----------------------------------------------------------------------- 76 77 # A helper sub-library that makes direct use of Honeycomb MR1 APIs. 78 include $(CLEAR_VARS) 79 LOCAL_MODULE := android-support-v4-honeycomb-mr1 80 LOCAL_SDK_VERSION := 12 81 LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr1) 82 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb 83 include $(BUILD_STATIC_JAVA_LIBRARY) 84 85 # ----------------------------------------------------------------------- 86 87 # A helper sub-library that makes direct use of Honeycomb MR2 APIs. 88 include $(CLEAR_VARS) 89 LOCAL_MODULE := android-support-v4-honeycomb-mr2 90 LOCAL_SDK_VERSION := 13 91 LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2) 92 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr1 93 include $(BUILD_STATIC_JAVA_LIBRARY) 94 95 # ----------------------------------------------------------------------- 96 97 # A helper sub-library that makes direct use of Ice Cream Sandwich APIs. 98 include $(CLEAR_VARS) 99 LOCAL_MODULE := android-support-v4-ics 100 LOCAL_SDK_VERSION := 14 101 LOCAL_SRC_FILES := $(call all-java-files-under, ics) 102 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2 103 include $(BUILD_STATIC_JAVA_LIBRARY) 104 105 # ----------------------------------------------------------------------- 106 107 # A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs. 108 include $(CLEAR_VARS) 109 LOCAL_MODULE := android-support-v4-ics-mr1 110 LOCAL_SDK_VERSION := 15 111 LOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1) 112 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics 113 include $(BUILD_STATIC_JAVA_LIBRARY) 114 115 # ----------------------------------------------------------------------- 116 117 # A helper sub-library that makes direct use of JellyBean APIs. 118 include $(CLEAR_VARS) 119 LOCAL_MODULE := android-support-v4-jellybean 120 LOCAL_SDK_VERSION := 16 121 LOCAL_SRC_FILES := $(call all-java-files-under, jellybean) 122 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1 123 include $(BUILD_STATIC_JAVA_LIBRARY) 124 125 # ----------------------------------------------------------------------- 126 127 # A helper sub-library that makes direct use of JellyBean MR1 APIs. 128 include $(CLEAR_VARS) 129 LOCAL_MODULE := android-support-v4-jellybean-mr1 130 LOCAL_SDK_VERSION := 17 131 LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1) 132 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean 133 include $(BUILD_STATIC_JAVA_LIBRARY) 134 135 # ----------------------------------------------------------------------- 136 137 # A helper sub-library that makes direct use of JellyBean MR2 APIs. 138 include $(CLEAR_VARS) 139 LOCAL_MODULE := android-support-v4-jellybean-mr2 140 LOCAL_SDK_VERSION := 18 141 LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2) 142 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1 143 include $(BUILD_STATIC_JAVA_LIBRARY) 144 145 # ----------------------------------------------------------------------- 146 147 # A helper sub-library that makes direct use of KitKat APIs. 148 include $(CLEAR_VARS) 149 LOCAL_MODULE := android-support-v4-kitkat 150 LOCAL_SDK_VERSION := 19 151 LOCAL_SRC_FILES := $(call all-java-files-under, kitkat) 152 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2 153 include $(BUILD_STATIC_JAVA_LIBRARY) 154 155 # ----------------------------------------------------------------------- 156 157 # A helper sub-library that makes direct use of V20 APIs. 158 include $(CLEAR_VARS) 159 LOCAL_MODULE := android-support-v4-api20 160 LOCAL_SDK_VERSION := 20 161 LOCAL_SRC_FILES := $(call all-java-files-under, api20) 162 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat 163 include $(BUILD_STATIC_JAVA_LIBRARY) 164 165 # ----------------------------------------------------------------------- 166 167 # A helper sub-library that makes direct use of Lollipop APIs. 168 include $(CLEAR_VARS) 169 LOCAL_MODULE := android-support-v4-api21 170 LOCAL_SDK_VERSION := 21 171 LOCAL_SRC_FILES := $(call all-java-files-under, api21) 172 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api20 173 include $(BUILD_STATIC_JAVA_LIBRARY) 174 175 # ----------------------------------------------------------------------- 176 177 # A helper sub-library that makes direct use of V22 APIs. 178 include $(CLEAR_VARS) 179 LOCAL_MODULE := android-support-v4-api22 180 LOCAL_SDK_VERSION := current 181 LOCAL_SRC_FILES := $(call all-java-files-under, api22) 182 LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api21 183 include $(BUILD_STATIC_JAVA_LIBRARY) 184 185 # ----------------------------------------------------------------------- 186 187 # Here is the final static library that apps can link against. 188 include $(CLEAR_VARS) 189 LOCAL_MODULE := android-support-v4 190 LOCAL_SDK_VERSION := 4 191 192 LOCAL_AIDL_INCLUDES := frameworks/support/v4/java 193 194 LOCAL_SRC_FILES := $(call all-java-files-under, java) \ 195 $(call all-Iaidl-files-under, java) 196 197 198 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api22 199 include $(BUILD_STATIC_JAVA_LIBRARY) 200