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