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 | |
Kirill Grouchnikov | 64dbe1d | 2016-05-11 10:48:44 -0700 | [diff] [blame] | 17 | # A helper sub-library that makes direct use of Gingerbread APIs. |
Przemyslaw Szczepaniak | 8e65b64 | 2014-05-07 16:40:19 +0100 | [diff] [blame] | 18 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 19 | LOCAL_MODULE := android-support-core-utils-gingerbread |
Kirill Grouchnikov | 81fc7d7 | 2016-05-11 10:01:23 -0700 | [diff] [blame] | 20 | LOCAL_SDK_VERSION := 9 |
| 21 | LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread) |
Kirill Grouchnikov | d3c5347 | 2016-05-10 08:02:18 -0700 | [diff] [blame] | 22 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 23 | android-support-annotations \ |
Kirill Grouchnikov | d3c5347 | 2016-05-10 08:02:18 -0700 | [diff] [blame] | 24 | android-support-compat |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 25 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Przemyslaw Szczepaniak | 8e65b64 | 2014-05-07 16:40:19 +0100 | [diff] [blame] | 26 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 27 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 28 | support_module_src_files := $(LOCAL_SRC_FILES) |
Kirill Grouchnikov | d3c5347 | 2016-05-10 08:02:18 -0700 | [diff] [blame] | 29 | support_module_java_libraries := \ |
| 30 | android-support-annotations \ |
Kirill Grouchnikov | d3c5347 | 2016-05-10 08:02:18 -0700 | [diff] [blame] | 31 | android-support-compat |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 32 | |
Przemyslaw Szczepaniak | 8e65b64 | 2014-05-07 16:40:19 +0100 | [diff] [blame] | 33 | # ----------------------------------------------------------------------- |
| 34 | |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 35 | # A helper sub-library that makes direct use of Honeycomb APIs. |
| 36 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 37 | LOCAL_MODULE := android-support-core-utils-honeycomb |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 38 | LOCAL_SDK_VERSION := 11 |
| 39 | LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 40 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-gingerbread |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 41 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 42 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 43 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 44 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 45 | |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 46 | # ----------------------------------------------------------------------- |
| 47 | |
Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 48 | # A helper sub-library that makes direct use of Ice Cream Sandwich APIs. |
| 49 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 50 | LOCAL_MODULE := android-support-core-utils-ics |
Ying Wang | 2f57132 | 2011-09-19 16:30:39 -0700 | [diff] [blame] | 51 | LOCAL_SDK_VERSION := 14 |
Adam Powell | bc889e3 | 2011-06-13 17:56:50 -0700 | [diff] [blame] | 52 | LOCAL_SRC_FILES := $(call all-java-files-under, ics) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 53 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-honeycomb |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 54 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Svetoslav Ganov | c64858f | 2012-01-30 15:13:34 -0800 | [diff] [blame] | 55 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 56 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 57 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 58 | |
Svetoslav Ganov | c64858f | 2012-01-30 15:13:34 -0800 | [diff] [blame] | 59 | # ----------------------------------------------------------------------- |
| 60 | |
Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 61 | # A helper sub-library that makes direct use of JellyBean APIs. |
| 62 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 63 | LOCAL_MODULE := android-support-core-utils-jellybean |
Svetoslav Ganov | f3ed7c5 | 2012-05-13 13:29:30 -0700 | [diff] [blame] | 64 | LOCAL_SDK_VERSION := 16 |
Svetoslav Ganov | 956b013 | 2012-01-31 11:29:47 -0800 | [diff] [blame] | 65 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 66 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-ics |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 67 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 68 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 69 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 70 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 71 | |
Svetoslav Ganov | 0af001b | 2012-09-21 14:49:11 -0700 | [diff] [blame] | 72 | # ----------------------------------------------------------------------- |
| 73 | |
Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 74 | # A helper sub-library that makes direct use of JellyBean MR2 APIs. |
| 75 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 76 | LOCAL_MODULE := android-support-core-utils-jellybean-mr2 |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 77 | LOCAL_SDK_VERSION := 18 |
Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 78 | LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 79 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-jellybean |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 80 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 81 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 82 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 83 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 84 | |
Svetoslav | 0fc5bd7 | 2013-02-04 15:19:36 -0800 | [diff] [blame] | 85 | # ----------------------------------------------------------------------- |
| 86 | |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 87 | # A helper sub-library that makes direct use of KitKat APIs. |
| 88 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 89 | LOCAL_MODULE := android-support-core-utils-kitkat |
Adam Powell | dd2c232 | 2013-10-09 15:12:20 -0700 | [diff] [blame] | 90 | LOCAL_SDK_VERSION := 19 |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 91 | LOCAL_SRC_FILES := $(call all-java-files-under, kitkat) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 92 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-jellybean-mr2 |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 93 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 94 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 95 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 96 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 97 | |
Mindy DelliCarpini | b7c7eb8 | 2013-09-18 15:52:11 +0000 | [diff] [blame] | 98 | # ----------------------------------------------------------------------- |
| 99 | |
RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 100 | # A helper sub-library that makes direct use of V20 APIs. |
Griff Hazen | b56de0d | 2014-02-13 08:55:28 -0800 | [diff] [blame] | 101 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 102 | LOCAL_MODULE := android-support-core-utils-api20 |
Griff Hazen | 43c5718 | 2014-07-24 09:13:39 -0700 | [diff] [blame] | 103 | LOCAL_SDK_VERSION := 20 |
Griff Hazen | b56de0d | 2014-02-13 08:55:28 -0800 | [diff] [blame] | 104 | LOCAL_SRC_FILES := $(call all-java-files-under, api20) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 105 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-kitkat |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 106 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Griff Hazen | b56de0d | 2014-02-13 08:55:28 -0800 | [diff] [blame] | 107 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 108 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 109 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 110 | |
Griff Hazen | b56de0d | 2014-02-13 08:55:28 -0800 | [diff] [blame] | 111 | # ----------------------------------------------------------------------- |
| 112 | |
RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 113 | # A helper sub-library that makes direct use of Lollipop APIs. |
Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 114 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 115 | LOCAL_MODULE := android-support-core-utils-api21 |
Griff Hazen | fcec128 | 2014-11-18 12:35:04 -0800 | [diff] [blame] | 116 | LOCAL_SDK_VERSION := 21 |
Sungsoo Lim | f80997e | 2015-12-28 16:00:30 +0900 | [diff] [blame] | 117 | LOCAL_SRC_FILES := $(call all-java-files-under, api21) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 118 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api20 |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 119 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 120 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 121 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 122 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 123 | |
Alan Viverette | 479dd28 | 2014-05-20 13:36:51 -0700 | [diff] [blame] | 124 | # ----------------------------------------------------------------------- |
| 125 | |
RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 126 | # A helper sub-library that makes direct use of V22 APIs. |
| 127 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 128 | LOCAL_MODULE := android-support-core-utils-api22 |
Chris Banes | c12dc3d | 2016-01-22 11:11:47 +0000 | [diff] [blame] | 129 | LOCAL_SDK_VERSION := 22 |
RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 130 | LOCAL_SRC_FILES := $(call all-java-files-under, api22) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 131 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api21 |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 132 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 133 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 134 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 135 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 136 | |
RoboErik | ceb8bf5 | 2014-11-20 16:37:23 -0800 | [diff] [blame] | 137 | # ----------------------------------------------------------------------- |
| 138 | |
Chris Banes | 44918a9 | 2015-01-08 11:55:55 +0000 | [diff] [blame] | 139 | # A helper sub-library that makes direct use of V23 APIs. |
| 140 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 141 | LOCAL_MODULE := android-support-core-utils-api23 |
Chris Banes | c12dc3d | 2016-01-22 11:11:47 +0000 | [diff] [blame] | 142 | LOCAL_SDK_VERSION := 23 |
Chris Banes | 44918a9 | 2015-01-08 11:55:55 +0000 | [diff] [blame] | 143 | LOCAL_SRC_FILES := $(call all-java-files-under, api23) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 144 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api22 |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 145 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Chris Banes | 44918a9 | 2015-01-08 11:55:55 +0000 | [diff] [blame] | 146 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 147 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 148 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 149 | |
Chris Banes | 44918a9 | 2015-01-08 11:55:55 +0000 | [diff] [blame] | 150 | # ----------------------------------------------------------------------- |
| 151 | |
Chris Banes | 0eb5e0e | 2016-02-03 12:30:07 +0000 | [diff] [blame] | 152 | # A helper sub-library that makes direct use of V24 APIs. |
| 153 | include $(CLEAR_VARS) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 154 | LOCAL_MODULE := android-support-core-utils-api24 |
Chris Banes | 0eb5e0e | 2016-02-03 12:30:07 +0000 | [diff] [blame] | 155 | LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION) |
| 156 | LOCAL_SRC_FILES := $(call all-java-files-under, api24) |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 157 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api23 |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 158 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Chris Banes | 0eb5e0e | 2016-02-03 12:30:07 +0000 | [diff] [blame] | 159 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 160 | |
| 161 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 162 | |
| 163 | # ----------------------------------------------------------------------- |
| 164 | |
Dianne Hackborn | 27aea04 | 2011-02-22 13:51:13 -0800 | [diff] [blame] | 165 | # Here is the final static library that apps can link against. |
Dianne Hackborn | cba2e2c | 2011-02-07 17:42:11 -0800 | [diff] [blame] | 166 | include $(CLEAR_VARS) |
Adam Lesinski | 6759b10 | 2016-02-24 19:57:25 -0800 | [diff] [blame] | 167 | LOCAL_USE_AAPT2 := true |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 168 | LOCAL_MODULE := android-support-core-utils |
Kirill Grouchnikov | f185f10 | 2016-05-09 15:23:55 -0700 | [diff] [blame] | 169 | LOCAL_SDK_VERSION := 9 |
RoboErik | e49860b | 2014-12-04 13:53:39 -0800 | [diff] [blame] | 170 | LOCAL_AIDL_INCLUDES := frameworks/support/v4/java |
Griff Hazen | ce16e42 | 2014-05-21 11:19:52 -0700 | [diff] [blame] | 171 | LOCAL_SRC_FILES := $(call all-java-files-under, java) \ |
| 172 | $(call all-Iaidl-files-under, java) |
Adam Lesinski | 6759b10 | 2016-02-24 19:57:25 -0800 | [diff] [blame] | 173 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 174 | LOCAL_STATIC_JAVA_LIBRARIES += android-support-core-utils-api24 |
Kirill Grouchnikov | 3ac77bf | 2016-04-27 12:46:47 -0400 | [diff] [blame] | 175 | LOCAL_SHARED_ANDROID_LIBRARIES := \ |
| 176 | android-support-compat \ |
| 177 | android-support-annotations |
Adam Lesinski | 6759b10 | 2016-02-24 19:57:25 -0800 | [diff] [blame] | 178 | LOCAL_JAR_EXCLUDE_FILES := none |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 179 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Dianne Hackborn | cba2e2c | 2011-02-07 17:42:11 -0800 | [diff] [blame] | 180 | include $(BUILD_STATIC_JAVA_LIBRARY) |
Chris Banes | f62fcde | 2015-02-25 10:42:47 +0000 | [diff] [blame] | 181 | |
Chris Banes | 95ad49b | 2015-10-19 11:02:33 +0100 | [diff] [blame] | 182 | support_module_src_files += $(LOCAL_SRC_FILES) |
| 183 | support_module_aidl_includes := $(LOCAL_AIDL_INCLUDES) |
| 184 | |
Chris Banes | f62fcde | 2015-02-25 10:42:47 +0000 | [diff] [blame] | 185 | # API Check |
| 186 | # --------------------------------------------- |
| 187 | support_module := $(LOCAL_MODULE) |
| 188 | support_module_api_dir := $(LOCAL_PATH)/api |
Kirill Grouchnikov | ff22d81 | 2016-05-11 15:24:25 -0700 | [diff] [blame^] | 189 | support_module_java_libraries := |
Chris Banes | 6396405 | 2015-04-30 10:37:19 +0100 | [diff] [blame] | 190 | support_module_java_packages := android.support.v4.* |
Chris Banes | f62fcde | 2015-02-25 10:42:47 +0000 | [diff] [blame] | 191 | include $(SUPPORT_API_CHECK) |