Android.mk revision ce16e4276c2f61109a23b3f6707cfcd87b07c735
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 common helper sub-library that only uses base (API 4) APIs.
18include $(CLEAR_VARS)
19LOCAL_MODULE := android-support-v4-base
20LOCAL_SDK_VERSION := 4
21LOCAL_SRC_FILES := $(call all-java-files-under, base)
22include $(BUILD_STATIC_JAVA_LIBRARY)
23
24# -----------------------------------------------------------------------
25
26# A helper sub-library that makes direct use of Eclair APIs.
27include $(CLEAR_VARS)
28LOCAL_MODULE := android-support-v4-eclair
29LOCAL_SDK_VERSION := 5
30LOCAL_SRC_FILES := $(call all-java-files-under, eclair)
31LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-base
32include $(BUILD_STATIC_JAVA_LIBRARY)
33
34# -----------------------------------------------------------------------
35
36# A helper sub-library that makes direct use of Eclair MR1 APIs.
37include $(CLEAR_VARS)
38LOCAL_MODULE := android-support-v4-eclair-mr1
39LOCAL_SDK_VERSION := 7
40LOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1)
41LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair
42include $(BUILD_STATIC_JAVA_LIBRARY)
43
44# -----------------------------------------------------------------------
45
46# A helper sub-library that makes direct use of Froyo APIs.
47include $(CLEAR_VARS)
48LOCAL_MODULE := android-support-v4-froyo
49LOCAL_SDK_VERSION := 8
50LOCAL_SRC_FILES := $(call all-java-files-under, froyo)
51LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1
52include $(BUILD_STATIC_JAVA_LIBRARY)
53
54# -----------------------------------------------------------------------
55
56# A helper sub-library that makes direct use of Gingerbread APIs.
57include $(CLEAR_VARS)
58LOCAL_MODULE := android-support-v4-gingerbread
59LOCAL_SDK_VERSION := 9
60LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread)
61LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo
62include $(BUILD_STATIC_JAVA_LIBRARY)
63
64# -----------------------------------------------------------------------
65
66# A helper sub-library that makes direct use of Honeycomb APIs.
67include $(CLEAR_VARS)
68LOCAL_MODULE := android-support-v4-honeycomb
69LOCAL_SDK_VERSION := 11
70LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
71LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread
72include $(BUILD_STATIC_JAVA_LIBRARY)
73
74# -----------------------------------------------------------------------
75
76# A helper sub-library that makes direct use of Honeycomb MR2 APIs.
77include $(CLEAR_VARS)
78LOCAL_MODULE := android-support-v4-honeycomb-mr2
79LOCAL_SDK_VERSION := 13
80LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2)
81LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb
82include $(BUILD_STATIC_JAVA_LIBRARY)
83
84# -----------------------------------------------------------------------
85
86# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
87include $(CLEAR_VARS)
88LOCAL_MODULE := android-support-v4-ics
89LOCAL_SDK_VERSION := 14
90LOCAL_SRC_FILES := $(call all-java-files-under, ics)
91LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2
92include $(BUILD_STATIC_JAVA_LIBRARY)
93
94# -----------------------------------------------------------------------
95
96# A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs.
97include $(CLEAR_VARS)
98LOCAL_MODULE := android-support-v4-ics-mr1
99LOCAL_SDK_VERSION := 15
100LOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1)
101LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics
102include $(BUILD_STATIC_JAVA_LIBRARY)
103
104# -----------------------------------------------------------------------
105
106# A helper sub-library that makes direct use of JellyBean APIs.
107include $(CLEAR_VARS)
108LOCAL_MODULE := android-support-v4-jellybean
109LOCAL_SDK_VERSION := 16
110LOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
111LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1
112include $(BUILD_STATIC_JAVA_LIBRARY)
113
114# -----------------------------------------------------------------------
115
116# A helper sub-library that makes direct use of JellyBean MR1 APIs.
117include $(CLEAR_VARS)
118LOCAL_MODULE := android-support-v4-jellybean-mr1
119LOCAL_SDK_VERSION := 17
120LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1)
121LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean
122include $(BUILD_STATIC_JAVA_LIBRARY)
123
124# -----------------------------------------------------------------------
125
126# A helper sub-library that makes direct use of JellyBean MR2 APIs.
127include $(CLEAR_VARS)
128LOCAL_MODULE := android-support-v4-jellybean-mr2
129LOCAL_SDK_VERSION := 18
130LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
131LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1
132include $(BUILD_STATIC_JAVA_LIBRARY)
133
134# -----------------------------------------------------------------------
135
136# A helper sub-library that makes direct use of KitKat APIs.
137include $(CLEAR_VARS)
138LOCAL_MODULE := android-support-v4-kitkat
139LOCAL_SDK_VERSION := 19
140LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
141LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2
142include $(BUILD_STATIC_JAVA_LIBRARY)
143
144# -----------------------------------------------------------------------
145
146# A helper sub-library that makes direct use of the upcoming API
147# TODO: Apply a real name and SDK version when available
148include $(CLEAR_VARS)
149LOCAL_MODULE := android-support-v4-api20
150LOCAL_SDK_VERSION := current
151LOCAL_SRC_FILES := $(call all-java-files-under, api20)
152LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat
153include $(BUILD_STATIC_JAVA_LIBRARY)
154
155# -----------------------------------------------------------------------
156
157# Here is the final static library that apps can link against.
158include $(CLEAR_VARS)
159LOCAL_MODULE := android-support-v4
160LOCAL_SDK_VERSION := 4
161
162LOCAL_SRC_FILES := $(call all-java-files-under, java) \
163    $(call all-Iaidl-files-under, java)
164
165LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api20
166LOCAL_STATIC_JAVA_LIBRARIES += android-support-annotations
167include $(BUILD_STATIC_JAVA_LIBRARY)
168