| Dianne Hackborn | cba2e2c | 2011-02-07 17:42:11 -0800 | [diff] [blame] | 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 | |
| Przemyslaw Szczepaniak | 8e65b64 | 2014-05-07 16:40:19 +0100 | [diff] [blame] | 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) |
| Yigit Boyar | d392c8c | 2014-10-09 11:30:18 -0700 | [diff] [blame] | 22 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations |
| Przemyslaw Szczepaniak | 8e65b64 | 2014-05-07 16:40:19 +0100 | [diff] [blame] | 23 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 24 | |
| 25 | # ----------------------------------------------------------------------- |
| 26 | |
| Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 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) |
| Przemyslaw Szczepaniak | 8e65b64 | 2014-05-07 16:40:19 +0100 | [diff] [blame] | 32 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-donut |
| Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 33 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 34 | |
| 35 | # ----------------------------------------------------------------------- |
| 36 | |
| Adam Powell | c029e15 | 2013-06-18 10:44:16 -0700 | [diff] [blame] | 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 | |
| Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 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) |
| Adam Powell | c029e15 | 2013-06-18 10:44:16 -0700 | [diff] [blame] | 52 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1 |
| Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 53 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 54 | |
| 55 | # ----------------------------------------------------------------------- |
| 56 | |
| Adam Powell | 560114f | 2011-09-02 20:25:44 -0700 | [diff] [blame] | 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) |
| Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 62 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo |
| Adam Powell | 560114f | 2011-09-02 20:25:44 -0700 | [diff] [blame] | 63 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 64 | |
| 65 | # ----------------------------------------------------------------------- |
| 66 | |
| Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 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) |
| Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 72 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread |
| Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 73 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 74 | |
| 75 | # ----------------------------------------------------------------------- |
| 76 | |
| Chris Banes | c55f505 | 2014-07-03 15:40:30 +0100 | [diff] [blame] | 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 | |
| Dianne Hackborn | 5c16370 | 2011-06-06 14:01:34 -0700 | [diff] [blame] | 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 |
| Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 90 | LOCAL_SDK_VERSION := 13 |
| Dianne Hackborn | 5c16370 | 2011-06-06 14:01:34 -0700 | [diff] [blame] | 91 | LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2) |
| Chris Banes | c55f505 | 2014-07-03 15:40:30 +0100 | [diff] [blame] | 92 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr1 |
| Dianne Hackborn | 5c16370 | 2011-06-06 14:01:34 -0700 | [diff] [blame] | 93 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 94 | |
| 95 | # ----------------------------------------------------------------------- |
| 96 | |
| Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 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 |
| Ying Wang | 2f57132 | 2011-09-19 16:30:39 -0700 | [diff] [blame] | 100 | LOCAL_SDK_VERSION := 14 |
| Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 101 | LOCAL_SRC_FILES := $(call all-java-files-under, ics) |
| Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 102 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2 |
| Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 103 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 104 | |
| 105 | # ----------------------------------------------------------------------- |
| 106 | |
| Svetoslav Ganov | c64858f | 2012-01-30 15:13:34 -0800 | [diff] [blame] | 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) |
| Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 112 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics |
| Svetoslav Ganov | c64858f | 2012-01-30 15:13:34 -0800 | [diff] [blame] | 113 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 114 | |
| 115 | # ----------------------------------------------------------------------- |
| 116 | |
| Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 117 | # A helper sub-library that makes direct use of JellyBean APIs. |
| 118 | include $(CLEAR_VARS) |
| 119 | LOCAL_MODULE := android-support-v4-jellybean |
| Svetoslav Ganov | f3ed7c5 | 2012-05-13 13:29:30 -0700 | [diff] [blame] | 120 | LOCAL_SDK_VERSION := 16 |
| Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 121 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean) |
| Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 122 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1 |
| Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 123 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 124 | |
| 125 | # ----------------------------------------------------------------------- |
| 126 | |
| Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 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 |
| Jim Guggemos | 8295680 | 2012-12-04 17:35:26 -0700 | [diff] [blame] | 130 | LOCAL_SDK_VERSION := 17 |
| Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 131 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1) |
| Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 132 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean |
| Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 133 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 134 | |
| 135 | # ----------------------------------------------------------------------- |
| 136 | |
| Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 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 |
| Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 140 | LOCAL_SDK_VERSION := 18 |
| Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 141 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2) |
| Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 142 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1 |
| Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 143 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 144 | |
| 145 | # ----------------------------------------------------------------------- |
| 146 | |
| Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 147 | # A helper sub-library that makes direct use of KitKat APIs. |
| 148 | include $(CLEAR_VARS) |
| 149 | LOCAL_MODULE := android-support-v4-kitkat |
| Adam Powell | dd2c232 | 2013-10-09 15:12:20 -0700 | [diff] [blame] | 150 | LOCAL_SDK_VERSION := 19 |
| Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 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 | |
| RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 157 | # A helper sub-library that makes direct use of V20 APIs. |
| Griff Hazen | b56de0d | 2014-02-13 08:55:28 -0800 | [diff] [blame] | 158 | include $(CLEAR_VARS) |
| 159 | LOCAL_MODULE := android-support-v4-api20 |
| Griff Hazen | 43c5718 | 2014-07-24 09:13:39 -0700 | [diff] [blame] | 160 | LOCAL_SDK_VERSION := 20 |
| Griff Hazen | b56de0d | 2014-02-13 08:55:28 -0800 | [diff] [blame] | 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 | |
| RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 167 | # A helper sub-library that makes direct use of Lollipop APIs. |
| Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 168 | include $(CLEAR_VARS) |
| 169 | LOCAL_MODULE := android-support-v4-api21 |
| Griff Hazen | fcec128 | 2014-11-18 12:35:04 -0800 | [diff] [blame] | 170 | LOCAL_SDK_VERSION := 21 |
| Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 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 | |
| RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 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 | |
| Chris Banes | 44918a9 | 2015-01-08 11:55:55 +0000 | [diff] [blame] | 187 | # A helper sub-library that makes direct use of V23 APIs. |
| 188 | include $(CLEAR_VARS) |
| 189 | LOCAL_MODULE := android-support-v4-api23 |
| 190 | LOCAL_SDK_VERSION := current |
| 191 | LOCAL_SRC_FILES := $(call all-java-files-under, api23) |
| 192 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api22 |
| 193 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 194 | |
| 195 | # ----------------------------------------------------------------------- |
| 196 | |
| Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 197 | # Here is the final static library that apps can link against. |
| Dianne Hackborn | cba2e2c | 2011-02-07 17:42:11 -0800 | [diff] [blame] | 198 | include $(CLEAR_VARS) |
| 199 | LOCAL_MODULE := android-support-v4 |
| 200 | LOCAL_SDK_VERSION := 4 |
| RoboErik | e49860b | 2014-12-04 13:53:39 -0800 | [diff] [blame] | 201 | LOCAL_AIDL_INCLUDES := frameworks/support/v4/java |
| Griff Hazen | ce16e42 | 2014-05-21 11:19:52 -0700 | [diff] [blame] | 202 | LOCAL_SRC_FILES := $(call all-java-files-under, java) \ |
| 203 | $(call all-Iaidl-files-under, java) |
| Chris Banes | 44918a9 | 2015-01-08 11:55:55 +0000 | [diff] [blame] | 204 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api23 |
| Dianne Hackborn | cba2e2c | 2011-02-07 17:42:11 -0800 | [diff] [blame] | 205 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| Chris Banes | f62fcde | 2015-02-25 10:42:47 +0000 | [diff] [blame] | 206 | |
| 207 | # API Check |
| 208 | # --------------------------------------------- |
| 209 | support_module := $(LOCAL_MODULE) |
| 210 | support_module_api_dir := $(LOCAL_PATH)/api |
| 211 | support_module_src_files := $(LOCAL_SRC_FILES) |
| 212 | support_module_java_libraries := android-support-v4 |
| Chris Banes | 6396405 | 2015-04-30 10:37:19 +0100 | [diff] [blame] | 213 | support_module_java_packages := android.support.v4.* |
| Chris Banes | f62fcde | 2015-02-25 10:42:47 +0000 | [diff] [blame] | 214 | include $(SUPPORT_API_CHECK) |