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) |
| 22 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 23 | |
| 24 | # ----------------------------------------------------------------------- |
| 25 | |
Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 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) |
Przemyslaw Szczepaniak | 8e65b64 | 2014-05-07 16:40:19 +0100 | [diff] [blame] | 31 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-donut |
Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 32 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 33 | |
| 34 | # ----------------------------------------------------------------------- |
| 35 | |
Adam Powell | c029e15 | 2013-06-18 10:44:16 -0700 | [diff] [blame] | 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 | |
Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 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) |
Adam Powell | c029e15 | 2013-06-18 10:44:16 -0700 | [diff] [blame] | 51 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1 |
Dianne Hackborn | e4417c9 | 2011-04-04 18:48:18 -0700 | [diff] [blame] | 52 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 53 | |
| 54 | # ----------------------------------------------------------------------- |
| 55 | |
Adam Powell | 560114f | 2011-09-02 20:25:44 -0700 | [diff] [blame] | 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) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 61 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo |
Adam Powell | 560114f | 2011-09-02 20:25:44 -0700 | [diff] [blame] | 62 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 63 | |
| 64 | # ----------------------------------------------------------------------- |
| 65 | |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 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) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 71 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 72 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 73 | |
| 74 | # ----------------------------------------------------------------------- |
| 75 | |
Dianne Hackborn | 5c16370 | 2011-06-06 14:01:34 -0700 | [diff] [blame] | 76 | # A helper sub-library that makes direct use of Honeycomb MR2 APIs. |
| 77 | include $(CLEAR_VARS) |
| 78 | LOCAL_MODULE := android-support-v4-honeycomb-mr2 |
Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 79 | LOCAL_SDK_VERSION := 13 |
Dianne Hackborn | 5c16370 | 2011-06-06 14:01:34 -0700 | [diff] [blame] | 80 | LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 81 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb |
Dianne Hackborn | 5c16370 | 2011-06-06 14:01:34 -0700 | [diff] [blame] | 82 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 83 | |
| 84 | # ----------------------------------------------------------------------- |
| 85 | |
Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 86 | # A helper sub-library that makes direct use of Ice Cream Sandwich APIs. |
| 87 | include $(CLEAR_VARS) |
| 88 | LOCAL_MODULE := android-support-v4-ics |
Ying Wang | 2f57132 | 2011-09-19 16:30:39 -0700 | [diff] [blame] | 89 | LOCAL_SDK_VERSION := 14 |
Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 90 | LOCAL_SRC_FILES := $(call all-java-files-under, ics) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 91 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2 |
Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 92 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 93 | |
| 94 | # ----------------------------------------------------------------------- |
| 95 | |
Svetoslav Ganov | c64858f | 2012-01-30 15:13:34 -0800 | [diff] [blame] | 96 | # A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs. |
| 97 | include $(CLEAR_VARS) |
| 98 | LOCAL_MODULE := android-support-v4-ics-mr1 |
| 99 | LOCAL_SDK_VERSION := 15 |
| 100 | LOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 101 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics |
Svetoslav Ganov | c64858f | 2012-01-30 15:13:34 -0800 | [diff] [blame] | 102 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 103 | |
| 104 | # ----------------------------------------------------------------------- |
| 105 | |
Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 106 | # A helper sub-library that makes direct use of JellyBean APIs. |
| 107 | include $(CLEAR_VARS) |
| 108 | LOCAL_MODULE := android-support-v4-jellybean |
Svetoslav Ganov | f3ed7c5 | 2012-05-13 13:29:30 -0700 | [diff] [blame] | 109 | LOCAL_SDK_VERSION := 16 |
Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 110 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 111 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1 |
Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 112 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 113 | |
| 114 | # ----------------------------------------------------------------------- |
| 115 | |
Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 116 | # A helper sub-library that makes direct use of JellyBean MR1 APIs. |
| 117 | include $(CLEAR_VARS) |
| 118 | LOCAL_MODULE := android-support-v4-jellybean-mr1 |
Jim Guggemos | 8295680 | 2012-12-04 17:35:26 -0700 | [diff] [blame] | 119 | LOCAL_SDK_VERSION := 17 |
Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 120 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 121 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean |
Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 122 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 123 | |
| 124 | # ----------------------------------------------------------------------- |
| 125 | |
Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 126 | # A helper sub-library that makes direct use of JellyBean MR2 APIs. |
| 127 | include $(CLEAR_VARS) |
| 128 | LOCAL_MODULE := android-support-v4-jellybean-mr2 |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 129 | LOCAL_SDK_VERSION := 18 |
Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 130 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2) |
Jeff Brown | c21f57e | 2013-03-07 16:25:37 -0800 | [diff] [blame] | 131 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1 |
Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 132 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 133 | |
| 134 | # ----------------------------------------------------------------------- |
| 135 | |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 136 | # A helper sub-library that makes direct use of KitKat APIs. |
| 137 | include $(CLEAR_VARS) |
| 138 | LOCAL_MODULE := android-support-v4-kitkat |
Adam Powell | dd2c232 | 2013-10-09 15:12:20 -0700 | [diff] [blame] | 139 | LOCAL_SDK_VERSION := 19 |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 140 | LOCAL_SRC_FILES := $(call all-java-files-under, kitkat) |
| 141 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2 |
| 142 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 143 | |
| 144 | # ----------------------------------------------------------------------- |
| 145 | |
Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 146 | # A helper sub-library that makes direct use of the upcoming API. |
Griff Hazen | b56de0d | 2014-02-13 08:55:28 -0800 | [diff] [blame] | 147 | # TODO: Apply a real name and SDK version when available |
| 148 | include $(CLEAR_VARS) |
| 149 | LOCAL_MODULE := android-support-v4-api20 |
| 150 | LOCAL_SDK_VERSION := current |
| 151 | LOCAL_SRC_FILES := $(call all-java-files-under, api20) |
| 152 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat |
| 153 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 154 | |
| 155 | # ----------------------------------------------------------------------- |
| 156 | |
Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 157 | # A helper sub-library that makes direct use of the upcoming API. |
| 158 | # TODO: Apply a real name and SDK version when available |
| 159 | include $(CLEAR_VARS) |
| 160 | LOCAL_MODULE := android-support-v4-api21 |
| 161 | LOCAL_SDK_VERSION := current |
| 162 | LOCAL_SRC_FILES := $(call all-java-files-under, api21) |
| 163 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api20 |
| 164 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 165 | |
| 166 | # ----------------------------------------------------------------------- |
| 167 | |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 168 | # Here is the final static library that apps can link against. |
Dianne Hackborn | cba2e2c | 2011-02-07 17:42:11 -0800 | [diff] [blame] | 169 | include $(CLEAR_VARS) |
| 170 | LOCAL_MODULE := android-support-v4 |
| 171 | LOCAL_SDK_VERSION := 4 |
Griff Hazen | ce16e42 | 2014-05-21 11:19:52 -0700 | [diff] [blame] | 172 | |
| 173 | LOCAL_SRC_FILES := $(call all-java-files-under, java) \ |
| 174 | $(call all-Iaidl-files-under, java) |
| 175 | |
Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 176 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api21 |
Tor Norbye | 05568b7 | 2014-03-20 19:19:52 -0700 | [diff] [blame] | 177 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-annotations |
Dianne Hackborn | cba2e2c | 2011-02-07 17:42:11 -0800 | [diff] [blame] | 178 | include $(BUILD_STATIC_JAVA_LIBRARY) |