blob: 187957d0002dc788f68d35956bfca30f11240b0a [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
25# -----------------------------------------------------------------------
26
Dianne Hackborne4417c92011-04-04 18:48:18 -070027# A helper sub-library that makes direct use of Eclair APIs.
28include $(CLEAR_VARS)
29LOCAL_MODULE := android-support-v4-eclair
30LOCAL_SDK_VERSION := 5
31LOCAL_SRC_FILES := $(call all-java-files-under, eclair)
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010032LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-donut
Dianne Hackborne4417c92011-04-04 18:48:18 -070033include $(BUILD_STATIC_JAVA_LIBRARY)
34
35# -----------------------------------------------------------------------
36
Adam Powellc029e152013-06-18 10:44:16 -070037# A helper sub-library that makes direct use of Eclair MR1 APIs.
38include $(CLEAR_VARS)
39LOCAL_MODULE := android-support-v4-eclair-mr1
40LOCAL_SDK_VERSION := 7
41LOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1)
42LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair
43include $(BUILD_STATIC_JAVA_LIBRARY)
44
45# -----------------------------------------------------------------------
46
Dianne Hackborne4417c92011-04-04 18:48:18 -070047# A helper sub-library that makes direct use of Froyo APIs.
48include $(CLEAR_VARS)
49LOCAL_MODULE := android-support-v4-froyo
50LOCAL_SDK_VERSION := 8
51LOCAL_SRC_FILES := $(call all-java-files-under, froyo)
Adam Powellc029e152013-06-18 10:44:16 -070052LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1
Dianne Hackborne4417c92011-04-04 18:48:18 -070053include $(BUILD_STATIC_JAVA_LIBRARY)
54
55# -----------------------------------------------------------------------
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
Adam Powell560114f2011-09-02 20:25:44 -070063include $(BUILD_STATIC_JAVA_LIBRARY)
64
65# -----------------------------------------------------------------------
66
Dianne Hackborn27aea042011-02-22 13:51:13 -080067# A helper sub-library that makes direct use of Honeycomb APIs.
68include $(CLEAR_VARS)
69LOCAL_MODULE := android-support-v4-honeycomb
70LOCAL_SDK_VERSION := 11
71LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
Jeff Brownc21f57e2013-03-07 16:25:37 -080072LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread
Dianne Hackborn27aea042011-02-22 13:51:13 -080073include $(BUILD_STATIC_JAVA_LIBRARY)
74
75# -----------------------------------------------------------------------
76
Chris Banesc55f5052014-07-03 15:40:30 +010077# A helper sub-library that makes direct use of Honeycomb MR1 APIs.
78include $(CLEAR_VARS)
79LOCAL_MODULE := android-support-v4-honeycomb-mr1
80LOCAL_SDK_VERSION := 12
81LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr1)
82LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb
83include $(BUILD_STATIC_JAVA_LIBRARY)
84
85# -----------------------------------------------------------------------
86
Dianne Hackborn5c163702011-06-06 14:01:34 -070087# A helper sub-library that makes direct use of Honeycomb MR2 APIs.
88include $(CLEAR_VARS)
89LOCAL_MODULE := android-support-v4-honeycomb-mr2
Adam Powellbc889e32011-06-13 17:56:50 -070090LOCAL_SDK_VERSION := 13
Dianne Hackborn5c163702011-06-06 14:01:34 -070091LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2)
Chris Banesc55f5052014-07-03 15:40:30 +010092LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr1
Dianne Hackborn5c163702011-06-06 14:01:34 -070093include $(BUILD_STATIC_JAVA_LIBRARY)
94
95# -----------------------------------------------------------------------
96
Adam Powellbc889e32011-06-13 17:56:50 -070097# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
98include $(CLEAR_VARS)
99LOCAL_MODULE := android-support-v4-ics
Ying Wang2f571322011-09-19 16:30:39 -0700100LOCAL_SDK_VERSION := 14
Adam Powellbc889e32011-06-13 17:56:50 -0700101LOCAL_SRC_FILES := $(call all-java-files-under, ics)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800102LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2
Adam Powellbc889e32011-06-13 17:56:50 -0700103include $(BUILD_STATIC_JAVA_LIBRARY)
104
105# -----------------------------------------------------------------------
106
Svetoslav Ganovc64858f2012-01-30 15:13:34 -0800107# A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs.
108include $(CLEAR_VARS)
109LOCAL_MODULE := android-support-v4-ics-mr1
110LOCAL_SDK_VERSION := 15
111LOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800112LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics
Svetoslav Ganovc64858f2012-01-30 15:13:34 -0800113include $(BUILD_STATIC_JAVA_LIBRARY)
114
115# -----------------------------------------------------------------------
116
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800117# A helper sub-library that makes direct use of JellyBean APIs.
118include $(CLEAR_VARS)
119LOCAL_MODULE := android-support-v4-jellybean
Svetoslav Ganovf3ed7c52012-05-13 13:29:30 -0700120LOCAL_SDK_VERSION := 16
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800121LOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800122LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1
Svetoslav Ganov956b0132012-01-31 11:29:47 -0800123include $(BUILD_STATIC_JAVA_LIBRARY)
124
125# -----------------------------------------------------------------------
126
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700127# A helper sub-library that makes direct use of JellyBean MR1 APIs.
128include $(CLEAR_VARS)
129LOCAL_MODULE := android-support-v4-jellybean-mr1
Jim Guggemos82956802012-12-04 17:35:26 -0700130LOCAL_SDK_VERSION := 17
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700131LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800132LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean
Svetoslav Ganov0af001b2012-09-21 14:49:11 -0700133include $(BUILD_STATIC_JAVA_LIBRARY)
134
135# -----------------------------------------------------------------------
136
Svetoslav0fc5bd72013-02-04 15:19:36 -0800137# A helper sub-library that makes direct use of JellyBean MR2 APIs.
138include $(CLEAR_VARS)
139LOCAL_MODULE := android-support-v4-jellybean-mr2
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000140LOCAL_SDK_VERSION := 18
Svetoslav0fc5bd72013-02-04 15:19:36 -0800141LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
Jeff Brownc21f57e2013-03-07 16:25:37 -0800142LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1
Svetoslav0fc5bd72013-02-04 15:19:36 -0800143include $(BUILD_STATIC_JAVA_LIBRARY)
144
145# -----------------------------------------------------------------------
146
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000147# A helper sub-library that makes direct use of KitKat APIs.
148include $(CLEAR_VARS)
149LOCAL_MODULE := android-support-v4-kitkat
Adam Powelldd2c2322013-10-09 15:12:20 -0700150LOCAL_SDK_VERSION := 19
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +0000151LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
152LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2
153include $(BUILD_STATIC_JAVA_LIBRARY)
154
155# -----------------------------------------------------------------------
156
RoboErikceb8bf52014-11-20 16:37:23 -0800157# A helper sub-library that makes direct use of V20 APIs.
Griff Hazenb56de0d2014-02-13 08:55:28 -0800158include $(CLEAR_VARS)
159LOCAL_MODULE := android-support-v4-api20
Griff Hazen43c57182014-07-24 09:13:39 -0700160LOCAL_SDK_VERSION := 20
Griff Hazenb56de0d2014-02-13 08:55:28 -0800161LOCAL_SRC_FILES := $(call all-java-files-under, api20)
162LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat
163include $(BUILD_STATIC_JAVA_LIBRARY)
164
165# -----------------------------------------------------------------------
166
RoboErikceb8bf52014-11-20 16:37:23 -0800167# A helper sub-library that makes direct use of Lollipop APIs.
Alan Viverette479dd282014-05-20 13:36:51 -0700168include $(CLEAR_VARS)
169LOCAL_MODULE := android-support-v4-api21
Griff Hazenfcec1282014-11-18 12:35:04 -0800170LOCAL_SDK_VERSION := 21
Alan Viverette479dd282014-05-20 13:36:51 -0700171LOCAL_SRC_FILES := $(call all-java-files-under, api21)
172LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api20
173include $(BUILD_STATIC_JAVA_LIBRARY)
174
175# -----------------------------------------------------------------------
176
RoboErikceb8bf52014-11-20 16:37:23 -0800177# A helper sub-library that makes direct use of V22 APIs.
178include $(CLEAR_VARS)
179LOCAL_MODULE := android-support-v4-api22
180LOCAL_SDK_VERSION := current
181LOCAL_SRC_FILES := $(call all-java-files-under, api22)
182LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api21
183include $(BUILD_STATIC_JAVA_LIBRARY)
184
185# -----------------------------------------------------------------------
186
Chris Banes44918a92015-01-08 11:55:55 +0000187# A helper sub-library that makes direct use of V23 APIs.
188include $(CLEAR_VARS)
189LOCAL_MODULE := android-support-v4-api23
190LOCAL_SDK_VERSION := current
191LOCAL_SRC_FILES := $(call all-java-files-under, api23)
192LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-api22
193include $(BUILD_STATIC_JAVA_LIBRARY)
194
195# -----------------------------------------------------------------------
196
Dianne Hackborn27aea042011-02-22 13:51:13 -0800197# Here is the final static library that apps can link against.
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800198include $(CLEAR_VARS)
199LOCAL_MODULE := android-support-v4
200LOCAL_SDK_VERSION := 4
RoboErike49860b2014-12-04 13:53:39 -0800201LOCAL_AIDL_INCLUDES := frameworks/support/v4/java
Griff Hazence16e422014-05-21 11:19:52 -0700202LOCAL_SRC_FILES := $(call all-java-files-under, java) \
203 $(call all-Iaidl-files-under, java)
Chris Banes44918a92015-01-08 11:55:55 +0000204LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api23
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800205include $(BUILD_STATIC_JAVA_LIBRARY)
Chris Banesf62fcde2015-02-25 10:42:47 +0000206
207# API Check
208# ---------------------------------------------
209support_module := $(LOCAL_MODULE)
210support_module_api_dir := $(LOCAL_PATH)/api
211support_module_src_files := $(LOCAL_SRC_FILES)
212support_module_java_libraries := android-support-v4
213support_module_java_packages := \
214 android.support.v4.accessibilityservice \
215 android.support.v4.app \
216 android.support.v4.content \
217 android.support.v4.database \
218 android.support.v4.graphics \
219 android.support.v4.graphics.drawable \
220 android.support.v4.hardware.display \
221 android.support.v4.media \
222 android.support.v4.media.session \
223 android.support.v4.net \
224 android.support.v4.os \
225 android.support.v4.print \
226 android.support.v4.provider \
227 android.support.v4.text \
228 android.support.v4.util \
229 android.support.v4.view \
230 android.support.v4.view.accessibility \
231 android.support.v4.view.animation \
232 android.support.v4.widget
233include $(SUPPORT_API_CHECK)