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