blob: 5296369cad266e9fb1dce9b25814f7d7d5bde91f [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)
Yigit Boyard392c8c2014-10-09 11:30:18 -070022LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010023include $(BUILD_STATIC_JAVA_LIBRARY)
24
Chris Banes95ad49b2015-10-19 11:02:33 +010025support_module_src_files := $(LOCAL_SRC_FILES)
26support_module_java_libraries := android-support-annotations
27
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010028# -----------------------------------------------------------------------
29
Dianne Hackborne4417c92011-04-04 18:48:18 -070030# A helper sub-library that makes direct use of Eclair APIs.
31include $(CLEAR_VARS)
32LOCAL_MODULE := android-support-v4-eclair
33LOCAL_SDK_VERSION := 5
34LOCAL_SRC_FILES := $(call all-java-files-under, eclair)
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010035LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-donut
Dianne Hackborne4417c92011-04-04 18:48:18 -070036include $(BUILD_STATIC_JAVA_LIBRARY)
37
Chris Banes95ad49b2015-10-19 11:02:33 +010038support_module_src_files += $(LOCAL_SRC_FILES)
39
Dianne Hackborne4417c92011-04-04 18:48:18 -070040# -----------------------------------------------------------------------
41
Adam Powellc029e152013-06-18 10:44:16 -070042# A helper sub-library that makes direct use of Eclair MR1 APIs.
43include $(CLEAR_VARS)
44LOCAL_MODULE := android-support-v4-eclair-mr1
45LOCAL_SDK_VERSION := 7
46LOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1)
47LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair
48include $(BUILD_STATIC_JAVA_LIBRARY)
49
Chris Banes95ad49b2015-10-19 11:02:33 +010050support_module_src_files += $(LOCAL_SRC_FILES)
51
Adam Powellc029e152013-06-18 10:44:16 -070052# -----------------------------------------------------------------------
53
Dianne Hackborne4417c92011-04-04 18:48:18 -070054# A helper sub-library that makes direct use of Froyo APIs.
55include $(CLEAR_VARS)
56LOCAL_MODULE := android-support-v4-froyo
57LOCAL_SDK_VERSION := 8
58LOCAL_SRC_FILES := $(call all-java-files-under, froyo)
Adam Powellc029e152013-06-18 10:44:16 -070059LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1
Dianne Hackborne4417c92011-04-04 18:48:18 -070060include $(BUILD_STATIC_JAVA_LIBRARY)
61
Chris Banes95ad49b2015-10-19 11:02:33 +010062support_module_src_files += $(LOCAL_SRC_FILES)
63
Dianne Hackborne4417c92011-04-04 18:48:18 -070064# -----------------------------------------------------------------------
65
Adam Powell560114f2011-09-02 20:25:44 -070066# A helper sub-library that makes direct use of Gingerbread APIs.
67include $(CLEAR_VARS)
68LOCAL_MODULE := android-support-v4-gingerbread
69LOCAL_SDK_VERSION := 9
70LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread)
Jeff Brownc21f57e2013-03-07 16:25:37 -080071LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo
Adam Powell560114f2011-09-02 20:25:44 -070072include $(BUILD_STATIC_JAVA_LIBRARY)
73
Chris Banes95ad49b2015-10-19 11:02:33 +010074support_module_src_files += $(LOCAL_SRC_FILES)
75
Adam Powell560114f2011-09-02 20:25:44 -070076# -----------------------------------------------------------------------
77
Dianne Hackborn27aea042011-02-22 13:51:13 -080078# A helper sub-library that makes direct use of Honeycomb APIs.
79include $(CLEAR_VARS)
80LOCAL_MODULE := android-support-v4-honeycomb
81LOCAL_SDK_VERSION := 11
82LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
Jeff Brownc21f57e2013-03-07 16:25:37 -080083LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread
Dianne Hackborn27aea042011-02-22 13:51:13 -080084include $(BUILD_STATIC_JAVA_LIBRARY)
85
Chris Banes95ad49b2015-10-19 11:02:33 +010086support_module_src_files += $(LOCAL_SRC_FILES)
87
Dianne Hackborn27aea042011-02-22 13:51:13 -080088# -----------------------------------------------------------------------
89
Chris Banesc55f5052014-07-03 15:40:30 +010090# A helper sub-library that makes direct use of Honeycomb MR1 APIs.
91include $(CLEAR_VARS)
92LOCAL_MODULE := android-support-v4-honeycomb-mr1
93LOCAL_SDK_VERSION := 12
94LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr1)
95LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb
96include $(BUILD_STATIC_JAVA_LIBRARY)
97
Chris Banes95ad49b2015-10-19 11:02:33 +010098support_module_src_files += $(LOCAL_SRC_FILES)
99
Chris Banesc55f5052014-07-03 15:40:30 +0100100# -----------------------------------------------------------------------
101
Dianne Hackborn5c163702011-06-06 14:01:34 -0700102# A helper sub-library that makes direct use of Honeycomb MR2 APIs.
103include $(CLEAR_VARS)
104LOCAL_MODULE := android-support-v4-honeycomb-mr2
Adam Powellbc889e32011-06-13 17:56:50 -0700105LOCAL_SDK_VERSION := 13
Dianne Hackborn5c163702011-06-06 14:01:34 -0700106LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2)
Chris Banesc55f5052014-07-03 15:40:30 +0100107LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr1
Dianne Hackborn5c163702011-06-06 14:01:34 -0700108include $(BUILD_STATIC_JAVA_LIBRARY)
109
Chris Banes95ad49b2015-10-19 11:02:33 +0100110support_module_src_files += $(LOCAL_SRC_FILES)
111
Dianne Hackborn5c163702011-06-06 14:01:34 -0700112# -----------------------------------------------------------------------
113
Adam Powellbc889e32011-06-13 17:56:50 -0700114# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
115include $(CLEAR_VARS)
116LOCAL_MODULE := android-support-v4-ics
Ying Wang2f571322011-09-19 16:30:39 -0700117LOCAL_SDK_VERSION := 14
Adam Powellbc889e32011-06-13 17:56:50 -0700118LOCAL_SRC_FILES := $(call all-java-files-under, ics)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800119LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2
Adam Powellbc889e32011-06-13 17:56:50 -0700120include $(BUILD_STATIC_JAVA_LIBRARY)
121
Chris Banes95ad49b2015-10-19 11:02:33 +0100122support_module_src_files += $(LOCAL_SRC_FILES)
123
Adam Powellbc889e32011-06-13 17:56:50 -0700124# -----------------------------------------------------------------------
125
Svetoslav Ganovc64858f2012-01-30 15:13:34 -0800126# A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs.
127include $(CLEAR_VARS)
128LOCAL_MODULE := android-support-v4-ics-mr1
129LOCAL_SDK_VERSION := 15
130LOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800131LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics
Svetoslav Ganovc64858f2012-01-30 15:13:34 -0800132include $(BUILD_STATIC_JAVA_LIBRARY)
133
Chris Banes95ad49b2015-10-19 11:02:33 +0100134support_module_src_files += $(LOCAL_SRC_FILES)
135
Svetoslav Ganovc64858f2012-01-30 15:13:34 -0800136# -----------------------------------------------------------------------
137
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800138# A helper sub-library that makes direct use of JellyBean APIs.
139include $(CLEAR_VARS)
140LOCAL_MODULE := android-support-v4-jellybean
Svetoslav Ganovf3ed7c52012-05-13 13:29:30 -0700141LOCAL_SDK_VERSION := 16
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800142LOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800143LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800144include $(BUILD_STATIC_JAVA_LIBRARY)
145
Chris Banes95ad49b2015-10-19 11:02:33 +0100146support_module_src_files += $(LOCAL_SRC_FILES)
147
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800148# -----------------------------------------------------------------------
149
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700150# A helper sub-library that makes direct use of JellyBean MR1 APIs.
151include $(CLEAR_VARS)
152LOCAL_MODULE := android-support-v4-jellybean-mr1
Jim Guggemos82956802012-12-04 17:35:26 -0700153LOCAL_SDK_VERSION := 17
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700154LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800155LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700156include $(BUILD_STATIC_JAVA_LIBRARY)
157
Chris Banes95ad49b2015-10-19 11:02:33 +0100158support_module_src_files += $(LOCAL_SRC_FILES)
159
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700160# -----------------------------------------------------------------------
161
Svetoslav0fc5bd72013-02-04 15:19:36 -0800162# A helper sub-library that makes direct use of JellyBean MR2 APIs.
163include $(CLEAR_VARS)
164LOCAL_MODULE := android-support-v4-jellybean-mr2
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000165LOCAL_SDK_VERSION := 18
Svetoslav0fc5bd72013-02-04 15:19:36 -0800166LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800167LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1
Svetoslav0fc5bd72013-02-04 15:19:36 -0800168include $(BUILD_STATIC_JAVA_LIBRARY)
169
Chris Banes95ad49b2015-10-19 11:02:33 +0100170support_module_src_files += $(LOCAL_SRC_FILES)
171
Svetoslav0fc5bd72013-02-04 15:19:36 -0800172# -----------------------------------------------------------------------
173
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000174# A helper sub-library that makes direct use of KitKat APIs.
175include $(CLEAR_VARS)
176LOCAL_MODULE := android-support-v4-kitkat
Adam Powelldd2c2322013-10-09 15:12:20 -0700177LOCAL_SDK_VERSION := 19
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000178LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
179LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2
180include $(BUILD_STATIC_JAVA_LIBRARY)
181
Chris Banes95ad49b2015-10-19 11:02:33 +0100182support_module_src_files += $(LOCAL_SRC_FILES)
183
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000184# -----------------------------------------------------------------------
185
RoboErikceb8bf52014-11-20 16:37:23 -0800186# A helper sub-library that makes direct use of V20 APIs.
Griff Hazenb56de0d2014-02-13 08:55:28 -0800187include $(CLEAR_VARS)
188LOCAL_MODULE := android-support-v4-api20
Griff Hazen43c57182014-07-24 09:13:39 -0700189LOCAL_SDK_VERSION := 20
Griff Hazenb56de0d2014-02-13 08:55:28 -0800190LOCAL_SRC_FILES := $(call all-java-files-under, api20)
191LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat
192include $(BUILD_STATIC_JAVA_LIBRARY)
193
Chris Banes95ad49b2015-10-19 11:02:33 +0100194support_module_src_files += $(LOCAL_SRC_FILES)
195
Griff Hazenb56de0d2014-02-13 08:55:28 -0800196# -----------------------------------------------------------------------
197
RoboErikceb8bf52014-11-20 16:37:23 -0800198# A helper sub-library that makes direct use of Lollipop APIs.
Alan Viverette479dd282014-05-20 13:36:51 -0700199include $(CLEAR_VARS)
200LOCAL_MODULE := android-support-v4-api21
Griff Hazenfcec1282014-11-18 12:35:04 -0800201LOCAL_SDK_VERSION := 21
Sungsoo Limf80997e2015-12-28 16:00:30 +0900202LOCAL_SRC_FILES := $(call all-java-files-under, api21)
Alan Viverette479dd282014-05-20 13:36:51 -0700203LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api20
204include $(BUILD_STATIC_JAVA_LIBRARY)
205
Chris Banes95ad49b2015-10-19 11:02:33 +0100206support_module_src_files += $(LOCAL_SRC_FILES)
207
Alan Viverette479dd282014-05-20 13:36:51 -0700208# -----------------------------------------------------------------------
209
RoboErikceb8bf52014-11-20 16:37:23 -0800210# A helper sub-library that makes direct use of V22 APIs.
211include $(CLEAR_VARS)
212LOCAL_MODULE := android-support-v4-api22
213LOCAL_SDK_VERSION := current
214LOCAL_SRC_FILES := $(call all-java-files-under, api22)
215LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api21
216include $(BUILD_STATIC_JAVA_LIBRARY)
217
Chris Banes95ad49b2015-10-19 11:02:33 +0100218support_module_src_files += $(LOCAL_SRC_FILES)
219
RoboErikceb8bf52014-11-20 16:37:23 -0800220# -----------------------------------------------------------------------
221
Chris Banes44918a92015-01-08 11:55:55 +0000222# A helper sub-library that makes direct use of V23 APIs.
223include $(CLEAR_VARS)
224LOCAL_MODULE := android-support-v4-api23
225LOCAL_SDK_VERSION := current
226LOCAL_SRC_FILES := $(call all-java-files-under, api23)
227LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api22
228include $(BUILD_STATIC_JAVA_LIBRARY)
229
Chris Banes95ad49b2015-10-19 11:02:33 +0100230support_module_src_files += $(LOCAL_SRC_FILES)
231
Chris Banes44918a92015-01-08 11:55:55 +0000232# -----------------------------------------------------------------------
233
Dianne Hackborn27aea042011-02-22 13:51:13 -0800234# Here is the final static library that apps can link against.
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800235include $(CLEAR_VARS)
236LOCAL_MODULE := android-support-v4
237LOCAL_SDK_VERSION := 4
RoboErike49860b2014-12-04 13:53:39 -0800238LOCAL_AIDL_INCLUDES := frameworks/support/v4/java
Griff Hazence16e422014-05-21 11:19:52 -0700239LOCAL_SRC_FILES := $(call all-java-files-under, java) \
240 $(call all-Iaidl-files-under, java)
Ian Pedowitz49357132015-10-22 08:33:07 +0000241LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api23
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800242include $(BUILD_STATIC_JAVA_LIBRARY)
Chris Banesf62fcde2015-02-25 10:42:47 +0000243
Chris Banes95ad49b2015-10-19 11:02:33 +0100244support_module_src_files += $(LOCAL_SRC_FILES)
245support_module_aidl_includes := $(LOCAL_AIDL_INCLUDES)
246
Chris Banesf62fcde2015-02-25 10:42:47 +0000247# API Check
248# ---------------------------------------------
249support_module := $(LOCAL_MODULE)
250support_module_api_dir := $(LOCAL_PATH)/api
Chris Banes63964052015-04-30 10:37:19 +0100251support_module_java_packages := android.support.v4.*
Chris Banesf62fcde2015-02-25 10:42:47 +0000252include $(SUPPORT_API_CHECK)