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