blob: 8063cb3536480c3d442fc1ce6f9ee8b5aec7a48d [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
28# -----------------------------------------------------------------------
29
Dianne Hackborn27aea042011-02-22 13:51:13 -080030# A helper sub-library that makes direct use of Honeycomb APIs.
31include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070032LOCAL_MODULE := android-support-core-utils-honeycomb
Dianne Hackborn27aea042011-02-22 13:51:13 -080033LOCAL_SDK_VERSION := 11
34LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070035LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-gingerbread
Neil Fullere1cd5a12016-02-25 11:41:17 +000036LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborn27aea042011-02-22 13:51:13 -080037include $(BUILD_STATIC_JAVA_LIBRARY)
38
39# -----------------------------------------------------------------------
40
Svetoslav Ganov956b0132012-01-31 11:29:47 -080041# A helper sub-library that makes direct use of JellyBean APIs.
42include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070043LOCAL_MODULE := android-support-core-utils-jellybean
Svetoslav Ganovf3ed7c52012-05-13 13:29:30 -070044LOCAL_SDK_VERSION := 16
Svetoslav Ganov956b0132012-01-31 11:29:47 -080045LOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
Kirill Grouchnikov55fc3f22016-05-12 12:17:09 -070046LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-honeycomb
Neil Fullere1cd5a12016-02-25 11:41:17 +000047LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Svetoslav0fc5bd72013-02-04 15:19:36 -080048include $(BUILD_STATIC_JAVA_LIBRARY)
49
50# -----------------------------------------------------------------------
51
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000052# A helper sub-library that makes direct use of KitKat APIs.
53include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070054LOCAL_MODULE := android-support-core-utils-kitkat
Adam Powelldd2c2322013-10-09 15:12:20 -070055LOCAL_SDK_VERSION := 19
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000056LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
Kirill Grouchnikov55fc3f22016-05-12 12:17:09 -070057LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-jellybean
Neil Fullere1cd5a12016-02-25 11:41:17 +000058LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Mindy DelliCarpinib7c7eb82013-09-18 15:52:11 +000059include $(BUILD_STATIC_JAVA_LIBRARY)
60
61# -----------------------------------------------------------------------
62
RoboErikceb8bf52014-11-20 16:37:23 -080063# A helper sub-library that makes direct use of V20 APIs.
Griff Hazenb56de0d2014-02-13 08:55:28 -080064include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070065LOCAL_MODULE := android-support-core-utils-api20
Griff Hazen43c57182014-07-24 09:13:39 -070066LOCAL_SDK_VERSION := 20
Griff Hazenb56de0d2014-02-13 08:55:28 -080067LOCAL_SRC_FILES := $(call all-java-files-under, api20)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070068LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-kitkat
Neil Fullere1cd5a12016-02-25 11:41:17 +000069LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Griff Hazenb56de0d2014-02-13 08:55:28 -080070include $(BUILD_STATIC_JAVA_LIBRARY)
71
72# -----------------------------------------------------------------------
73
RoboErikceb8bf52014-11-20 16:37:23 -080074# A helper sub-library that makes direct use of Lollipop APIs.
Alan Viverette479dd282014-05-20 13:36:51 -070075include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070076LOCAL_MODULE := android-support-core-utils-api21
Griff Hazenfcec1282014-11-18 12:35:04 -080077LOCAL_SDK_VERSION := 21
Sungsoo Limf80997e2015-12-28 16:00:30 +090078LOCAL_SRC_FILES := $(call all-java-files-under, api21)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070079LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api20
Neil Fullere1cd5a12016-02-25 11:41:17 +000080LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Alan Viverette479dd282014-05-20 13:36:51 -070081include $(BUILD_STATIC_JAVA_LIBRARY)
82
83# -----------------------------------------------------------------------
84
Chris Banes44918a92015-01-08 11:55:55 +000085# A helper sub-library that makes direct use of V23 APIs.
86include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070087LOCAL_MODULE := android-support-core-utils-api23
Chris Banesc12dc3d2016-01-22 11:11:47 +000088LOCAL_SDK_VERSION := 23
Chris Banes44918a92015-01-08 11:55:55 +000089LOCAL_SRC_FILES := $(call all-java-files-under, api23)
Kirill Grouchnikov55fc3f22016-05-12 12:17:09 -070090LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api21
Neil Fullere1cd5a12016-02-25 11:41:17 +000091LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Chris Banes44918a92015-01-08 11:55:55 +000092include $(BUILD_STATIC_JAVA_LIBRARY)
93
94# -----------------------------------------------------------------------
95
Chris Banes0eb5e0e2016-02-03 12:30:07 +000096# A helper sub-library that makes direct use of V24 APIs.
97include $(CLEAR_VARS)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -070098LOCAL_MODULE := android-support-core-utils-api24
Chris Banes0eb5e0e2016-02-03 12:30:07 +000099LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
100LOCAL_SRC_FILES := $(call all-java-files-under, api24)
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700101LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api23
Neil Fullere1cd5a12016-02-25 11:41:17 +0000102LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000103include $(BUILD_STATIC_JAVA_LIBRARY)
104
Chris Banes0eb5e0e2016-02-03 12:30:07 +0000105# -----------------------------------------------------------------------
106
Dianne Hackborn27aea042011-02-22 13:51:13 -0800107# Here is the final static library that apps can link against.
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800108include $(CLEAR_VARS)
Adam Lesinski6759b102016-02-24 19:57:25 -0800109LOCAL_USE_AAPT2 := true
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700110LOCAL_MODULE := android-support-core-utils
Kirill Grouchnikovf185f102016-05-09 15:23:55 -0700111LOCAL_SDK_VERSION := 9
RoboErike49860b2014-12-04 13:53:39 -0800112LOCAL_AIDL_INCLUDES := frameworks/support/v4/java
Griff Hazence16e422014-05-21 11:19:52 -0700113LOCAL_SRC_FILES := $(call all-java-files-under, java) \
114 $(call all-Iaidl-files-under, java)
Adam Lesinski6759b102016-02-24 19:57:25 -0800115LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Kirill Grouchnikovff22d812016-05-11 15:24:25 -0700116LOCAL_STATIC_JAVA_LIBRARIES += android-support-core-utils-api24
Kirill Grouchnikov3ac77bf2016-04-27 12:46:47 -0400117LOCAL_SHARED_ANDROID_LIBRARIES := \
118 android-support-compat \
119 android-support-annotations
Adam Lesinski6759b102016-02-24 19:57:25 -0800120LOCAL_JAR_EXCLUDE_FILES := none
Neil Fullere1cd5a12016-02-25 11:41:17 +0000121LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Dianne Hackborncba2e2c2011-02-07 17:42:11 -0800122include $(BUILD_STATIC_JAVA_LIBRARY)