blob: df0450367f68d884a117c3f140de9e56a3476c1a [file] [log] [blame]
Dianne Hackborncba2e2c2011-02-07 17:42:11 -08001# 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
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010017# 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)
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040022LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations android-support-compat
Neil Fullere1cd5a12016-02-25 11:41:17 +000023LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010024include $(BUILD_STATIC_JAVA_LIBRARY)
25
Chris Banes95ad49b2015-10-19 11:02:33 +010026support_module_src_files := $(LOCAL_SRC_FILES)
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -040027support_module_java_libraries := android-support-annotations android-support-compat
Chris Banes95ad49b2015-10-19 11:02:33 +010028
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010029# -----------------------------------------------------------------------
30
Dianne Hackborne4417c92011-04-04 18:48:18 -070031# A helper sub-library that makes direct use of Eclair APIs.
32include $(CLEAR_VARS)
33LOCAL_MODULE := android-support-v4-eclair
34LOCAL_SDK_VERSION := 5
35LOCAL_SRC_FILES := $(call all-java-files-under, eclair)
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010036LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-donut
Neil Fullere1cd5a12016-02-25 11:41:17 +000037LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborne4417c92011-04-04 18:48:18 -070038include $(BUILD_STATIC_JAVA_LIBRARY)
39
Chris Banes95ad49b2015-10-19 11:02:33 +010040support_module_src_files += $(LOCAL_SRC_FILES)
41
Dianne Hackborne4417c92011-04-04 18:48:18 -070042# -----------------------------------------------------------------------
43
44# A helper sub-library that makes direct use of Froyo APIs.
45include $(CLEAR_VARS)
46LOCAL_MODULE := android-support-v4-froyo
47LOCAL_SDK_VERSION := 8
48LOCAL_SRC_FILES := $(call all-java-files-under, froyo)
Kirill Grouchnikov0f6052f2016-05-04 15:30:25 -040049LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair
Neil Fullere1cd5a12016-02-25 11:41:17 +000050LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborne4417c92011-04-04 18:48:18 -070051include $(BUILD_STATIC_JAVA_LIBRARY)
52
Chris Banes95ad49b2015-10-19 11:02:33 +010053support_module_src_files += $(LOCAL_SRC_FILES)
54
Dianne Hackborne4417c92011-04-04 18:48:18 -070055# -----------------------------------------------------------------------
56
Adam Powell560114f2011-09-02 20:25:44 -070057# 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)
Jeff Brownc21f57e2013-03-07 16:25:37 -080062LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo
Neil Fullere1cd5a12016-02-25 11:41:17 +000063LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Adam Powell560114f2011-09-02 20:25:44 -070064include $(BUILD_STATIC_JAVA_LIBRARY)
65
Chris Banes95ad49b2015-10-19 11:02:33 +010066support_module_src_files += $(LOCAL_SRC_FILES)
67
Adam Powell560114f2011-09-02 20:25:44 -070068# -----------------------------------------------------------------------
69
Dianne Hackborn27aea042011-02-22 13:51:13 -080070# A helper sub-library that makes direct use of Honeycomb APIs.
71include $(CLEAR_VARS)
72LOCAL_MODULE := android-support-v4-honeycomb
73LOCAL_SDK_VERSION := 11
74LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
Jeff Brownc21f57e2013-03-07 16:25:37 -080075LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread
Neil Fullere1cd5a12016-02-25 11:41:17 +000076LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborn27aea042011-02-22 13:51:13 -080077include $(BUILD_STATIC_JAVA_LIBRARY)
78
Chris Banes95ad49b2015-10-19 11:02:33 +010079support_module_src_files += $(LOCAL_SRC_FILES)
80
Dianne Hackborn27aea042011-02-22 13:51:13 -080081# -----------------------------------------------------------------------
82
Adam Powellbc889e32011-06-13 17:56:50 -070083# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
84include $(CLEAR_VARS)
85LOCAL_MODULE := android-support-v4-ics
Ying Wang2f571322011-09-19 16:30:39 -070086LOCAL_SDK_VERSION := 14
Adam Powellbc889e32011-06-13 17:56:50 -070087LOCAL_SRC_FILES := $(call all-java-files-under, ics)
Kirill Grouchnikov0f6052f2016-05-04 15:30:25 -040088LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb
Neil Fullere1cd5a12016-02-25 11:41:17 +000089LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Svetoslav Ganovc64858f2012-01-30 15:13:34 -080090include $(BUILD_STATIC_JAVA_LIBRARY)
91
Chris Banes95ad49b2015-10-19 11:02:33 +010092support_module_src_files += $(LOCAL_SRC_FILES)
93
Svetoslav Ganovc64858f2012-01-30 15:13:34 -080094# -----------------------------------------------------------------------
95
Svetoslav Ganov956b0132012-01-31 11:29:47 -080096# A helper sub-library that makes direct use of JellyBean APIs.
97include $(CLEAR_VARS)
98LOCAL_MODULE := android-support-v4-jellybean
Svetoslav Ganovf3ed7c52012-05-13 13:29:30 -070099LOCAL_SDK_VERSION := 16
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800100LOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
Kirill Grouchnikov0f6052f2016-05-04 15:30:25 -0400101LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics
Neil Fullere1cd5a12016-02-25 11:41:17 +0000102LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700103include $(BUILD_STATIC_JAVA_LIBRARY)
104
Chris Banes95ad49b2015-10-19 11:02:33 +0100105support_module_src_files += $(LOCAL_SRC_FILES)
106
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700107# -----------------------------------------------------------------------
108
Svetoslav0fc5bd72013-02-04 15:19:36 -0800109# A helper sub-library that makes direct use of JellyBean MR2 APIs.
110include $(CLEAR_VARS)
111LOCAL_MODULE := android-support-v4-jellybean-mr2
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000112LOCAL_SDK_VERSION := 18
Svetoslav0fc5bd72013-02-04 15:19:36 -0800113LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
Kirill Grouchnikov0f6052f2016-05-04 15:30:25 -0400114LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean
Neil Fullere1cd5a12016-02-25 11:41:17 +0000115LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Svetoslav0fc5bd72013-02-04 15:19:36 -0800116include $(BUILD_STATIC_JAVA_LIBRARY)
117
Chris Banes95ad49b2015-10-19 11:02:33 +0100118support_module_src_files += $(LOCAL_SRC_FILES)
119
Svetoslav0fc5bd72013-02-04 15:19:36 -0800120# -----------------------------------------------------------------------
121
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000122# A helper sub-library that makes direct use of KitKat APIs.
123include $(CLEAR_VARS)
124LOCAL_MODULE := android-support-v4-kitkat
Adam Powelldd2c2322013-10-09 15:12:20 -0700125LOCAL_SDK_VERSION := 19
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000126LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
127LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2
Neil Fullere1cd5a12016-02-25 11:41:17 +0000128LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000129include $(BUILD_STATIC_JAVA_LIBRARY)
130
Chris Banes95ad49b2015-10-19 11:02:33 +0100131support_module_src_files += $(LOCAL_SRC_FILES)
132
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000133# -----------------------------------------------------------------------
134
RoboErikceb8bf52014-11-20 16:37:23 -0800135# A helper sub-library that makes direct use of V20 APIs.
Griff Hazenb56de0d2014-02-13 08:55:28 -0800136include $(CLEAR_VARS)
137LOCAL_MODULE := android-support-v4-api20
Griff Hazen43c57182014-07-24 09:13:39 -0700138LOCAL_SDK_VERSION := 20
Griff Hazenb56de0d2014-02-13 08:55:28 -0800139LOCAL_SRC_FILES := $(call all-java-files-under, api20)
140LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat
Neil Fullere1cd5a12016-02-25 11:41:17 +0000141LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Griff Hazenb56de0d2014-02-13 08:55:28 -0800142include $(BUILD_STATIC_JAVA_LIBRARY)
143
Chris Banes95ad49b2015-10-19 11:02:33 +0100144support_module_src_files += $(LOCAL_SRC_FILES)
145
Griff Hazenb56de0d2014-02-13 08:55:28 -0800146# -----------------------------------------------------------------------
147
RoboErikceb8bf52014-11-20 16:37:23 -0800148# A helper sub-library that makes direct use of Lollipop APIs.
Alan Viverette479dd282014-05-20 13:36:51 -0700149include $(CLEAR_VARS)
150LOCAL_MODULE := android-support-v4-api21
Griff Hazenfcec1282014-11-18 12:35:04 -0800151LOCAL_SDK_VERSION := 21
Sungsoo Limf80997e2015-12-28 16:00:30 +0900152LOCAL_SRC_FILES := $(call all-java-files-under, api21)
Alan Viverette479dd282014-05-20 13:36:51 -0700153LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api20
Neil Fullere1cd5a12016-02-25 11:41:17 +0000154LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Alan Viverette479dd282014-05-20 13:36:51 -0700155include $(BUILD_STATIC_JAVA_LIBRARY)
156
Chris Banes95ad49b2015-10-19 11:02:33 +0100157support_module_src_files += $(LOCAL_SRC_FILES)
158
Alan Viverette479dd282014-05-20 13:36:51 -0700159# -----------------------------------------------------------------------
160
RoboErikceb8bf52014-11-20 16:37:23 -0800161# A helper sub-library that makes direct use of V22 APIs.
162include $(CLEAR_VARS)
163LOCAL_MODULE := android-support-v4-api22
Chris Banesc12dc3d2016-01-22 11:11:47 +0000164LOCAL_SDK_VERSION := 22
RoboErikceb8bf52014-11-20 16:37:23 -0800165LOCAL_SRC_FILES := $(call all-java-files-under, api22)
166LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api21
Neil Fullere1cd5a12016-02-25 11:41:17 +0000167LOCAL_JAVA_LANGUAGE_VERSION := 1.7
RoboErikceb8bf52014-11-20 16:37:23 -0800168include $(BUILD_STATIC_JAVA_LIBRARY)
169
Chris Banes95ad49b2015-10-19 11:02:33 +0100170support_module_src_files += $(LOCAL_SRC_FILES)
171
RoboErikceb8bf52014-11-20 16:37:23 -0800172# -----------------------------------------------------------------------
173
Chris Banes44918a92015-01-08 11:55:55 +0000174# A helper sub-library that makes direct use of V23 APIs.
175include $(CLEAR_VARS)
176LOCAL_MODULE := android-support-v4-api23
Chris Banesc12dc3d2016-01-22 11:11:47 +0000177LOCAL_SDK_VERSION := 23
Chris Banes44918a92015-01-08 11:55:55 +0000178LOCAL_SRC_FILES := $(call all-java-files-under, api23)
179LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api22
Neil Fullere1cd5a12016-02-25 11:41:17 +0000180LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Chris Banes44918a92015-01-08 11:55:55 +0000181include $(BUILD_STATIC_JAVA_LIBRARY)
182
Chris Banes95ad49b2015-10-19 11:02:33 +0100183support_module_src_files += $(LOCAL_SRC_FILES)
184
Chris Banes44918a92015-01-08 11:55:55 +0000185# -----------------------------------------------------------------------
186
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000187# A helper sub-library that makes direct use of V24 APIs.
188include $(CLEAR_VARS)
189LOCAL_MODULE := android-support-v4-api24
190LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
191LOCAL_SRC_FILES := $(call all-java-files-under, api24)
192LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api23
Neil Fullere1cd5a12016-02-25 11:41:17 +0000193LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000194include $(BUILD_STATIC_JAVA_LIBRARY)
195
196support_module_src_files += $(LOCAL_SRC_FILES)
197
198# -----------------------------------------------------------------------
199
Dianne Hackborn27aea042011-02-22 13:51:13 -0800200# Here is the final static library that apps can link against.
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800201include $(CLEAR_VARS)
Adam Lesinski6759b102016-02-24 19:57:25 -0800202LOCAL_USE_AAPT2 := true
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -0400203LOCAL_MODULE := android-support-core
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800204LOCAL_SDK_VERSION := 4
RoboErike49860b2014-12-04 13:53:39 -0800205LOCAL_AIDL_INCLUDES := frameworks/support/v4/java
Griff Hazence16e422014-05-21 11:19:52 -0700206LOCAL_SRC_FILES := $(call all-java-files-under, java) \
207 $(call all-Iaidl-files-under, java)
Adam Lesinski6759b102016-02-24 19:57:25 -0800208LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000209LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api24
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -0400210LOCAL_SHARED_ANDROID_LIBRARIES := \
211 android-support-compat \
212 android-support-annotations
Adam Lesinski6759b102016-02-24 19:57:25 -0800213LOCAL_JAR_EXCLUDE_FILES := none
Neil Fullere1cd5a12016-02-25 11:41:17 +0000214LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800215include $(BUILD_STATIC_JAVA_LIBRARY)
Chris Banesf62fcde2015-02-25 10:42:47 +0000216
Chris Banes95ad49b2015-10-19 11:02:33 +0100217support_module_src_files += $(LOCAL_SRC_FILES)
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -0400218support_module_src_files += $(call all-java-files-under, ../compat/java)
219support_module_src_files += $(call all-java-files-under, ../compat/donut)
220support_module_src_files += $(call all-java-files-under, ../compat/honeycomb_mr2)
221support_module_src_files += $(call all-java-files-under, ../compat/ics)
Chris Banes95ad49b2015-10-19 11:02:33 +0100222support_module_aidl_includes := $(LOCAL_AIDL_INCLUDES)
223
Chris Banesf62fcde2015-02-25 10:42:47 +0000224# API Check
225# ---------------------------------------------
226support_module := $(LOCAL_MODULE)
227support_module_api_dir := $(LOCAL_PATH)/api
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -0400228support_module_java_libraries := $(LOCAL_JAVA_LIBRARIES)
Chris Banes63964052015-04-30 10:37:19 +0100229support_module_java_packages := android.support.v4.*
Chris Banesf62fcde2015-02-25 10:42:47 +0000230include $(SUPPORT_API_CHECK)