blob: 556eb9931f120cf12d0da72fc967baae819ec66f [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
Kirill Grouchnikov64dbe1d2016-05-11 10:48:44 -070017# A helper sub-library that makes direct use of Gingerbread APIs.
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010018include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070019LOCAL_MODULE := android-support-core-utils-gingerbread
Kirill Grouchnikov81fc7d72016-05-11 10:01:23 -070020LOCAL_SDK_VERSION := 9
21LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread)
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070022LOCAL_STATIC_JAVA_LIBRARIES := \
23 android-support-annotations \
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070024 android-support-compat
Neil Fullere1cd5a12016-02-25 11:41:17 +000025LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010026include $(BUILD_STATIC_JAVA_LIBRARY)
27
Chris Banes95ad49b2015-10-19 11:02:33 +010028support_module_src_files := $(LOCAL_SRC_FILES)
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070029support_module_java_libraries := \
30 android-support-annotations \
Kirill Grouchnikovd3c53472016-05-10 08:02:18 -070031 android-support-compat
Chris Banes95ad49b2015-10-19 11:02:33 +010032
Przemyslaw Szczepaniak8e65b642014-05-07 16:40:19 +010033# -----------------------------------------------------------------------
34
Dianne Hackborn27aea042011-02-22 13:51:13 -080035# A helper sub-library that makes direct use of Honeycomb APIs.
36include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070037LOCAL_MODULE := android-support-core-utils-honeycomb
Dianne Hackborn27aea042011-02-22 13:51:13 -080038LOCAL_SDK_VERSION := 11
39LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070040LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-gingerbread
Neil Fullere1cd5a12016-02-25 11:41:17 +000041LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborn27aea042011-02-22 13:51:13 -080042include $(BUILD_STATIC_JAVA_LIBRARY)
43
Chris Banes95ad49b2015-10-19 11:02:33 +010044support_module_src_files += $(LOCAL_SRC_FILES)
45
Dianne Hackborn27aea042011-02-22 13:51:13 -080046# -----------------------------------------------------------------------
47
Adam Powellbc889e32011-06-13 17:56:50 -070048# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
49include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070050LOCAL_MODULE := android-support-core-utils-ics
Ying Wang2f571322011-09-19 16:30:39 -070051LOCAL_SDK_VERSION := 14
Adam Powellbc889e32011-06-13 17:56:50 -070052LOCAL_SRC_FILES := $(call all-java-files-under, ics)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070053LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-honeycomb
Neil Fullere1cd5a12016-02-25 11:41:17 +000054LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Svetoslav Ganovc64858f2012-01-30 15:13:34 -080055include $(BUILD_STATIC_JAVA_LIBRARY)
56
Chris Banes95ad49b2015-10-19 11:02:33 +010057support_module_src_files += $(LOCAL_SRC_FILES)
58
Svetoslav Ganovc64858f2012-01-30 15:13:34 -080059# -----------------------------------------------------------------------
60
Svetoslav Ganov956b0132012-01-31 11:29:47 -080061# A helper sub-library that makes direct use of JellyBean APIs.
62include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070063LOCAL_MODULE := android-support-core-utils-jellybean
Svetoslav Ganovf3ed7c52012-05-13 13:29:30 -070064LOCAL_SDK_VERSION := 16
Svetoslav Ganov956b0132012-01-31 11:29:47 -080065LOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070066LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-ics
Neil Fullere1cd5a12016-02-25 11:41:17 +000067LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Svetoslav Ganov0af001b2012-09-21 14:49:11 -070068include $(BUILD_STATIC_JAVA_LIBRARY)
69
Chris Banes95ad49b2015-10-19 11:02:33 +010070support_module_src_files += $(LOCAL_SRC_FILES)
71
Svetoslav Ganov0af001b2012-09-21 14:49:11 -070072# -----------------------------------------------------------------------
73
Svetoslav0fc5bd72013-02-04 15:19:36 -080074# A helper sub-library that makes direct use of JellyBean MR2 APIs.
75include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070076LOCAL_MODULE := android-support-core-utils-jellybean-mr2
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000077LOCAL_SDK_VERSION := 18
Svetoslav0fc5bd72013-02-04 15:19:36 -080078LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070079LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-jellybean
Neil Fullere1cd5a12016-02-25 11:41:17 +000080LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Svetoslav0fc5bd72013-02-04 15:19:36 -080081include $(BUILD_STATIC_JAVA_LIBRARY)
82
Chris Banes95ad49b2015-10-19 11:02:33 +010083support_module_src_files += $(LOCAL_SRC_FILES)
84
Svetoslav0fc5bd72013-02-04 15:19:36 -080085# -----------------------------------------------------------------------
86
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000087# A helper sub-library that makes direct use of KitKat APIs.
88include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070089LOCAL_MODULE := android-support-core-utils-kitkat
Adam Powelldd2c2322013-10-09 15:12:20 -070090LOCAL_SDK_VERSION := 19
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000091LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070092LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-jellybean-mr2
Neil Fullere1cd5a12016-02-25 11:41:17 +000093LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000094include $(BUILD_STATIC_JAVA_LIBRARY)
95
Chris Banes95ad49b2015-10-19 11:02:33 +010096support_module_src_files += $(LOCAL_SRC_FILES)
97
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000098# -----------------------------------------------------------------------
99
RoboErikceb8bf52014-11-20 16:37:23 -0800100# A helper sub-library that makes direct use of V20 APIs.
Griff Hazenb56de0d2014-02-13 08:55:28 -0800101include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700102LOCAL_MODULE := android-support-core-utils-api20
Griff Hazen43c57182014-07-24 09:13:39 -0700103LOCAL_SDK_VERSION := 20
Griff Hazenb56de0d2014-02-13 08:55:28 -0800104LOCAL_SRC_FILES := $(call all-java-files-under, api20)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700105LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-kitkat
Neil Fullere1cd5a12016-02-25 11:41:17 +0000106LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Griff Hazenb56de0d2014-02-13 08:55:28 -0800107include $(BUILD_STATIC_JAVA_LIBRARY)
108
Chris Banes95ad49b2015-10-19 11:02:33 +0100109support_module_src_files += $(LOCAL_SRC_FILES)
110
Griff Hazenb56de0d2014-02-13 08:55:28 -0800111# -----------------------------------------------------------------------
112
RoboErikceb8bf52014-11-20 16:37:23 -0800113# A helper sub-library that makes direct use of Lollipop APIs.
Alan Viverette479dd282014-05-20 13:36:51 -0700114include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700115LOCAL_MODULE := android-support-core-utils-api21
Griff Hazenfcec1282014-11-18 12:35:04 -0800116LOCAL_SDK_VERSION := 21
Sungsoo Limf80997e2015-12-28 16:00:30 +0900117LOCAL_SRC_FILES := $(call all-java-files-under, api21)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700118LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api20
Neil Fullere1cd5a12016-02-25 11:41:17 +0000119LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Alan Viverette479dd282014-05-20 13:36:51 -0700120include $(BUILD_STATIC_JAVA_LIBRARY)
121
Chris Banes95ad49b2015-10-19 11:02:33 +0100122support_module_src_files += $(LOCAL_SRC_FILES)
123
Alan Viverette479dd282014-05-20 13:36:51 -0700124# -----------------------------------------------------------------------
125
RoboErikceb8bf52014-11-20 16:37:23 -0800126# A helper sub-library that makes direct use of V22 APIs.
127include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700128LOCAL_MODULE := android-support-core-utils-api22
Chris Banesc12dc3d2016-01-22 11:11:47 +0000129LOCAL_SDK_VERSION := 22
RoboErikceb8bf52014-11-20 16:37:23 -0800130LOCAL_SRC_FILES := $(call all-java-files-under, api22)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700131LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api21
Neil Fullere1cd5a12016-02-25 11:41:17 +0000132LOCAL_JAVA_LANGUAGE_VERSION := 1.7
RoboErikceb8bf52014-11-20 16:37:23 -0800133include $(BUILD_STATIC_JAVA_LIBRARY)
134
Chris Banes95ad49b2015-10-19 11:02:33 +0100135support_module_src_files += $(LOCAL_SRC_FILES)
136
RoboErikceb8bf52014-11-20 16:37:23 -0800137# -----------------------------------------------------------------------
138
Chris Banes44918a92015-01-08 11:55:55 +0000139# A helper sub-library that makes direct use of V23 APIs.
140include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700141LOCAL_MODULE := android-support-core-utils-api23
Chris Banesc12dc3d2016-01-22 11:11:47 +0000142LOCAL_SDK_VERSION := 23
Chris Banes44918a92015-01-08 11:55:55 +0000143LOCAL_SRC_FILES := $(call all-java-files-under, api23)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700144LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api22
Neil Fullere1cd5a12016-02-25 11:41:17 +0000145LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Chris Banes44918a92015-01-08 11:55:55 +0000146include $(BUILD_STATIC_JAVA_LIBRARY)
147
Chris Banes95ad49b2015-10-19 11:02:33 +0100148support_module_src_files += $(LOCAL_SRC_FILES)
149
Chris Banes44918a92015-01-08 11:55:55 +0000150# -----------------------------------------------------------------------
151
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000152# A helper sub-library that makes direct use of V24 APIs.
153include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700154LOCAL_MODULE := android-support-core-utils-api24
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000155LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
156LOCAL_SRC_FILES := $(call all-java-files-under, api24)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700157LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api23
Neil Fullere1cd5a12016-02-25 11:41:17 +0000158LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000159include $(BUILD_STATIC_JAVA_LIBRARY)
160
161support_module_src_files += $(LOCAL_SRC_FILES)
162
163# -----------------------------------------------------------------------
164
Dianne Hackborn27aea042011-02-22 13:51:13 -0800165# Here is the final static library that apps can link against.
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800166include $(CLEAR_VARS)
Adam Lesinski6759b102016-02-24 19:57:25 -0800167LOCAL_USE_AAPT2 := true
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700168LOCAL_MODULE := android-support-core-utils
Kirill Grouchnikovf185f102016-05-09 15:23:55 -0700169LOCAL_SDK_VERSION := 9
RoboErike49860b2014-12-04 13:53:39 -0800170LOCAL_AIDL_INCLUDES := frameworks/support/v4/java
Griff Hazence16e422014-05-21 11:19:52 -0700171LOCAL_SRC_FILES := $(call all-java-files-under, java) \
172 $(call all-Iaidl-files-under, java)
Adam Lesinski6759b102016-02-24 19:57:25 -0800173LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700174LOCAL_STATIC_JAVA_LIBRARIES += android-support-core-utils-api24
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -0400175LOCAL_SHARED_ANDROID_LIBRARIES := \
176 android-support-compat \
177 android-support-annotations
Adam Lesinski6759b102016-02-24 19:57:25 -0800178LOCAL_JAR_EXCLUDE_FILES := none
Neil Fullere1cd5a12016-02-25 11:41:17 +0000179LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800180include $(BUILD_STATIC_JAVA_LIBRARY)
Chris Banesf62fcde2015-02-25 10:42:47 +0000181
Chris Banes95ad49b2015-10-19 11:02:33 +0100182support_module_src_files += $(LOCAL_SRC_FILES)
183support_module_aidl_includes := $(LOCAL_AIDL_INCLUDES)
184
Chris Banesf62fcde2015-02-25 10:42:47 +0000185# API Check
186# ---------------------------------------------
187support_module := $(LOCAL_MODULE)
188support_module_api_dir := $(LOCAL_PATH)/api
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700189support_module_java_libraries :=
Chris Banes63964052015-04-30 10:37:19 +0100190support_module_java_packages := android.support.v4.*
Chris Banesf62fcde2015-02-25 10:42:47 +0000191include $(SUPPORT_API_CHECK)