Android.mk revision c3c75883f99ccdaa587bbfd2ce181213b2fb854c
1# 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
17# A helper sub-library that makes direct use of Gingerbread APIs.
18include $(CLEAR_VARS)
19LOCAL_MODULE := android-support-core-utils-gingerbread
20LOCAL_SDK_VERSION := 9
21LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread)
22LOCAL_STATIC_JAVA_LIBRARIES := \
23    android-support-annotations \
24    android-support-compat
25LOCAL_JAVA_LANGUAGE_VERSION := 1.7
26include $(BUILD_STATIC_JAVA_LIBRARY)
27
28# -----------------------------------------------------------------------
29
30# A helper sub-library that makes direct use of Honeycomb APIs.
31include $(CLEAR_VARS)
32LOCAL_MODULE := android-support-core-utils-honeycomb
33LOCAL_SDK_VERSION := 11
34LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
35LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-gingerbread
36LOCAL_JAVA_LANGUAGE_VERSION := 1.7
37include $(BUILD_STATIC_JAVA_LIBRARY)
38
39# -----------------------------------------------------------------------
40
41# A helper sub-library that makes direct use of JellyBean APIs.
42include $(CLEAR_VARS)
43LOCAL_MODULE := android-support-core-utils-jellybean
44LOCAL_SDK_VERSION := 16
45LOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
46LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-honeycomb
47LOCAL_JAVA_LANGUAGE_VERSION := 1.7
48include $(BUILD_STATIC_JAVA_LIBRARY)
49
50# -----------------------------------------------------------------------
51
52# A helper sub-library that makes direct use of KitKat APIs.
53include $(CLEAR_VARS)
54LOCAL_MODULE := android-support-core-utils-kitkat
55LOCAL_SDK_VERSION := 19
56LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
57LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-jellybean
58LOCAL_JAVA_LANGUAGE_VERSION := 1.7
59include $(BUILD_STATIC_JAVA_LIBRARY)
60
61# -----------------------------------------------------------------------
62
63# A helper sub-library that makes direct use of V20 APIs.
64include $(CLEAR_VARS)
65LOCAL_MODULE := android-support-core-utils-api20
66LOCAL_SDK_VERSION := 20
67LOCAL_SRC_FILES := $(call all-java-files-under, api20)
68LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-kitkat
69LOCAL_JAVA_LANGUAGE_VERSION := 1.7
70include $(BUILD_STATIC_JAVA_LIBRARY)
71
72# -----------------------------------------------------------------------
73
74# A helper sub-library that makes direct use of Lollipop APIs.
75include $(CLEAR_VARS)
76LOCAL_MODULE := android-support-core-utils-api21
77LOCAL_SDK_VERSION := 21
78LOCAL_SRC_FILES := $(call all-java-files-under, api21)
79LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api20
80LOCAL_JAVA_LANGUAGE_VERSION := 1.7
81include $(BUILD_STATIC_JAVA_LIBRARY)
82
83# -----------------------------------------------------------------------
84
85# A helper sub-library that makes direct use of V23 APIs.
86include $(CLEAR_VARS)
87LOCAL_MODULE := android-support-core-utils-api23
88LOCAL_SDK_VERSION := 23
89LOCAL_SRC_FILES := $(call all-java-files-under, api23)
90LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api21
91LOCAL_JAVA_LANGUAGE_VERSION := 1.7
92include $(BUILD_STATIC_JAVA_LIBRARY)
93
94# -----------------------------------------------------------------------
95
96# A helper sub-library that makes direct use of V24 APIs.
97include $(CLEAR_VARS)
98LOCAL_MODULE := android-support-core-utils-api24
99LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
100LOCAL_SRC_FILES := $(call all-java-files-under, api24)
101LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-utils-api23
102LOCAL_JAVA_LANGUAGE_VERSION := 1.7
103include $(BUILD_STATIC_JAVA_LIBRARY)
104
105# -----------------------------------------------------------------------
106
107# Here is the final static library that apps can link against.
108include $(CLEAR_VARS)
109LOCAL_USE_AAPT2 := true
110LOCAL_MODULE := android-support-core-utils
111LOCAL_SDK_VERSION := 9
112LOCAL_AIDL_INCLUDES := frameworks/support/v4/java
113LOCAL_SRC_FILES := $(call all-java-files-under, java) \
114    $(call all-Iaidl-files-under, java)
115LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
116LOCAL_STATIC_JAVA_LIBRARIES += android-support-core-utils-api24
117LOCAL_SHARED_ANDROID_LIBRARIES := \
118    android-support-compat \
119    android-support-annotations
120LOCAL_JAR_EXCLUDE_FILES := none
121LOCAL_JAVA_LANGUAGE_VERSION := 1.7
122include $(BUILD_STATIC_JAVA_LIBRARY)
123