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 15LOCAL_PATH := $(call my-dir) 16 17# A helper sub-library that makes direct use of Donut APIs. 18include $(CLEAR_VARS) 19LOCAL_MODULE := android-support-v4-donut 20LOCAL_SDK_VERSION := 4 21LOCAL_SRC_FILES := $(call all-java-files-under, donut) 22LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations 23LOCAL_JAVA_LANGUAGE_VERSION := 1.7 24include $(BUILD_STATIC_JAVA_LIBRARY) 25 26support_module_src_files := $(LOCAL_SRC_FILES) 27support_module_java_libraries := android-support-annotations 28 29# ----------------------------------------------------------------------- 30 31# A helper sub-library that makes direct use of Eclair APIs. 32include $(CLEAR_VARS) 33LOCAL_MODULE := android-support-v4-eclair 34LOCAL_SDK_VERSION := 5 35LOCAL_SRC_FILES := $(call all-java-files-under, eclair) 36LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-donut 37LOCAL_JAVA_LANGUAGE_VERSION := 1.7 38include $(BUILD_STATIC_JAVA_LIBRARY) 39 40support_module_src_files += $(LOCAL_SRC_FILES) 41 42# ----------------------------------------------------------------------- 43 44# A helper sub-library that makes direct use of Eclair MR1 APIs. 45include $(CLEAR_VARS) 46LOCAL_MODULE := android-support-v4-eclair-mr1 47LOCAL_SDK_VERSION := 7 48LOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1) 49LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair 50LOCAL_JAVA_LANGUAGE_VERSION := 1.7 51include $(BUILD_STATIC_JAVA_LIBRARY) 52 53support_module_src_files += $(LOCAL_SRC_FILES) 54 55# ----------------------------------------------------------------------- 56 57# A helper sub-library that makes direct use of Froyo APIs. 58include $(CLEAR_VARS) 59LOCAL_MODULE := android-support-v4-froyo 60LOCAL_SDK_VERSION := 8 61LOCAL_SRC_FILES := $(call all-java-files-under, froyo) 62LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1 63LOCAL_JAVA_LANGUAGE_VERSION := 1.7 64include $(BUILD_STATIC_JAVA_LIBRARY) 65 66support_module_src_files += $(LOCAL_SRC_FILES) 67 68# ----------------------------------------------------------------------- 69 70# A helper sub-library that makes direct use of Gingerbread APIs. 71include $(CLEAR_VARS) 72LOCAL_MODULE := android-support-v4-gingerbread 73LOCAL_SDK_VERSION := 9 74LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread) 75LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo 76LOCAL_JAVA_LANGUAGE_VERSION := 1.7 77include $(BUILD_STATIC_JAVA_LIBRARY) 78 79support_module_src_files += $(LOCAL_SRC_FILES) 80 81# ----------------------------------------------------------------------- 82 83# A helper sub-library that makes direct use of Honeycomb APIs. 84include $(CLEAR_VARS) 85LOCAL_MODULE := android-support-v4-honeycomb 86LOCAL_SDK_VERSION := 11 87LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb) 88LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread 89LOCAL_JAVA_LANGUAGE_VERSION := 1.7 90include $(BUILD_STATIC_JAVA_LIBRARY) 91 92support_module_src_files += $(LOCAL_SRC_FILES) 93 94# ----------------------------------------------------------------------- 95 96# A helper sub-library that makes direct use of Honeycomb MR1 APIs. 97include $(CLEAR_VARS) 98LOCAL_MODULE := android-support-v4-honeycomb-mr1 99LOCAL_SDK_VERSION := 12 100LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr1) 101LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb 102LOCAL_JAVA_LANGUAGE_VERSION := 1.7 103include $(BUILD_STATIC_JAVA_LIBRARY) 104 105support_module_src_files += $(LOCAL_SRC_FILES) 106 107# ----------------------------------------------------------------------- 108 109# A helper sub-library that makes direct use of Honeycomb MR2 APIs. 110include $(CLEAR_VARS) 111LOCAL_MODULE := android-support-v4-honeycomb-mr2 112LOCAL_SDK_VERSION := 13 113LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2) 114LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr1 115LOCAL_JAVA_LANGUAGE_VERSION := 1.7 116include $(BUILD_STATIC_JAVA_LIBRARY) 117 118support_module_src_files += $(LOCAL_SRC_FILES) 119 120# ----------------------------------------------------------------------- 121 122# A helper sub-library that makes direct use of Ice Cream Sandwich APIs. 123include $(CLEAR_VARS) 124LOCAL_MODULE := android-support-v4-ics 125LOCAL_SDK_VERSION := 14 126LOCAL_SRC_FILES := $(call all-java-files-under, ics) 127LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2 128LOCAL_JAVA_LANGUAGE_VERSION := 1.7 129include $(BUILD_STATIC_JAVA_LIBRARY) 130 131support_module_src_files += $(LOCAL_SRC_FILES) 132 133# ----------------------------------------------------------------------- 134 135# A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs. 136include $(CLEAR_VARS) 137LOCAL_MODULE := android-support-v4-ics-mr1 138LOCAL_SDK_VERSION := 15 139LOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1) 140LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics 141LOCAL_JAVA_LANGUAGE_VERSION := 1.7 142include $(BUILD_STATIC_JAVA_LIBRARY) 143 144support_module_src_files += $(LOCAL_SRC_FILES) 145 146# ----------------------------------------------------------------------- 147 148# A helper sub-library that makes direct use of JellyBean APIs. 149include $(CLEAR_VARS) 150LOCAL_MODULE := android-support-v4-jellybean 151LOCAL_SDK_VERSION := 16 152LOCAL_SRC_FILES := $(call all-java-files-under, jellybean) 153LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1 154LOCAL_JAVA_LANGUAGE_VERSION := 1.7 155include $(BUILD_STATIC_JAVA_LIBRARY) 156 157support_module_src_files += $(LOCAL_SRC_FILES) 158 159# ----------------------------------------------------------------------- 160 161# A helper sub-library that makes direct use of JellyBean MR1 APIs. 162include $(CLEAR_VARS) 163LOCAL_MODULE := android-support-v4-jellybean-mr1 164LOCAL_SDK_VERSION := 17 165LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1) 166LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean 167LOCAL_JAVA_LANGUAGE_VERSION := 1.7 168include $(BUILD_STATIC_JAVA_LIBRARY) 169 170support_module_src_files += $(LOCAL_SRC_FILES) 171 172# ----------------------------------------------------------------------- 173 174# A helper sub-library that makes direct use of JellyBean MR2 APIs. 175include $(CLEAR_VARS) 176LOCAL_MODULE := android-support-v4-jellybean-mr2 177LOCAL_SDK_VERSION := 18 178LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2) 179LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1 180LOCAL_JAVA_LANGUAGE_VERSION := 1.7 181include $(BUILD_STATIC_JAVA_LIBRARY) 182 183support_module_src_files += $(LOCAL_SRC_FILES) 184 185# ----------------------------------------------------------------------- 186 187# A helper sub-library that makes direct use of KitKat APIs. 188include $(CLEAR_VARS) 189LOCAL_MODULE := android-support-v4-kitkat 190LOCAL_SDK_VERSION := 19 191LOCAL_SRC_FILES := $(call all-java-files-under, kitkat) 192LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2 193LOCAL_JAVA_LANGUAGE_VERSION := 1.7 194include $(BUILD_STATIC_JAVA_LIBRARY) 195 196support_module_src_files += $(LOCAL_SRC_FILES) 197 198# ----------------------------------------------------------------------- 199 200# A helper sub-library that makes direct use of V20 APIs. 201include $(CLEAR_VARS) 202LOCAL_MODULE := android-support-v4-api20 203LOCAL_SDK_VERSION := 20 204LOCAL_SRC_FILES := $(call all-java-files-under, api20) 205LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat 206LOCAL_JAVA_LANGUAGE_VERSION := 1.7 207include $(BUILD_STATIC_JAVA_LIBRARY) 208 209support_module_src_files += $(LOCAL_SRC_FILES) 210 211# ----------------------------------------------------------------------- 212 213# A helper sub-library that makes direct use of Lollipop APIs. 214include $(CLEAR_VARS) 215LOCAL_MODULE := android-support-v4-api21 216LOCAL_SDK_VERSION := 21 217LOCAL_SRC_FILES := $(call all-java-files-under, api21) 218LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api20 219LOCAL_JAVA_LANGUAGE_VERSION := 1.7 220include $(BUILD_STATIC_JAVA_LIBRARY) 221 222support_module_src_files += $(LOCAL_SRC_FILES) 223 224# ----------------------------------------------------------------------- 225 226# A helper sub-library that makes direct use of V22 APIs. 227include $(CLEAR_VARS) 228LOCAL_MODULE := android-support-v4-api22 229LOCAL_SDK_VERSION := 22 230LOCAL_SRC_FILES := $(call all-java-files-under, api22) 231LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api21 232LOCAL_JAVA_LANGUAGE_VERSION := 1.7 233include $(BUILD_STATIC_JAVA_LIBRARY) 234 235support_module_src_files += $(LOCAL_SRC_FILES) 236 237# ----------------------------------------------------------------------- 238 239# A helper sub-library that makes direct use of V23 APIs. 240include $(CLEAR_VARS) 241LOCAL_MODULE := android-support-v4-api23 242LOCAL_SDK_VERSION := 23 243LOCAL_SRC_FILES := $(call all-java-files-under, api23) 244LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api22 245LOCAL_JAVA_LANGUAGE_VERSION := 1.7 246include $(BUILD_STATIC_JAVA_LIBRARY) 247 248support_module_src_files += $(LOCAL_SRC_FILES) 249 250# ----------------------------------------------------------------------- 251 252# A helper sub-library that makes direct use of V24 APIs. 253include $(CLEAR_VARS) 254LOCAL_MODULE := android-support-v4-api24 255LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION) 256LOCAL_SRC_FILES := $(call all-java-files-under, api24) 257LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api23 258LOCAL_JAVA_LANGUAGE_VERSION := 1.7 259include $(BUILD_STATIC_JAVA_LIBRARY) 260 261support_module_src_files += $(LOCAL_SRC_FILES) 262 263# ----------------------------------------------------------------------- 264 265# Here is the final static library that apps can link against. 266include $(CLEAR_VARS) 267LOCAL_USE_AAPT2 := true 268LOCAL_MODULE := android-support-v4 269LOCAL_SDK_VERSION := 4 270LOCAL_AIDL_INCLUDES := frameworks/support/v4/java 271LOCAL_SRC_FILES := $(call all-java-files-under, java) \ 272 $(call all-Iaidl-files-under, java) 273LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 274LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api24 275LOCAL_JAR_EXCLUDE_FILES := none 276LOCAL_JAVA_LANGUAGE_VERSION := 1.7 277include $(BUILD_STATIC_JAVA_LIBRARY) 278 279support_module_src_files += $(LOCAL_SRC_FILES) 280support_module_aidl_includes := $(LOCAL_AIDL_INCLUDES) 281 282# API Check 283# --------------------------------------------- 284support_module := $(LOCAL_MODULE) 285support_module_api_dir := $(LOCAL_PATH)/api 286support_module_java_packages := android.support.v4.* 287include $(SUPPORT_API_CHECK) 288