Android.mk revision ce16e4276c2f61109a23b3f6707cfcd87b07c735
1cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Copyright (C) 2011 The Android Open Source Project
2cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn#
3cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Licensed under the Apache License, Version 2.0 (the "License");
4cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# you may not use this file except in compliance with the License.
5cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# You may obtain a copy of the License at
6cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn#
7cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn#      http://www.apache.org/licenses/LICENSE-2.0
8cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn#
9cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Unless required by applicable law or agreed to in writing, software
10cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# distributed under the License is distributed on an "AS IS" BASIS,
11cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# See the License for the specific language governing permissions and
13cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# limitations under the License.
14cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn
15cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_PATH := $(call my-dir)
16cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn
17ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazen# A common helper sub-library that only uses base (API 4) APIs.
18ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazeninclude $(CLEAR_VARS)
19ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff HazenLOCAL_MODULE := android-support-v4-base
20ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff HazenLOCAL_SDK_VERSION := 4
21ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff HazenLOCAL_SRC_FILES := $(call all-java-files-under, base)
22ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazeninclude $(BUILD_STATIC_JAVA_LIBRARY)
23ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazen
24ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazen# -----------------------------------------------------------------------
25ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazen
26e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# A helper sub-library that makes direct use of Eclair APIs.
27e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(CLEAR_VARS)
28e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_MODULE := android-support-v4-eclair
29e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SDK_VERSION := 5
30e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, eclair)
31ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff HazenLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-base
32e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
33e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
34e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# -----------------------------------------------------------------------
35e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
36c029e15f5a4709214cb433a562256586824a0f33Adam Powell# A helper sub-library that makes direct use of Eclair MR1 APIs.
37c029e15f5a4709214cb433a562256586824a0f33Adam Powellinclude $(CLEAR_VARS)
38c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_MODULE := android-support-v4-eclair-mr1
39c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_SDK_VERSION := 7
40c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1)
41c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair
42c029e15f5a4709214cb433a562256586824a0f33Adam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY)
43c029e15f5a4709214cb433a562256586824a0f33Adam Powell
44c029e15f5a4709214cb433a562256586824a0f33Adam Powell# -----------------------------------------------------------------------
45c029e15f5a4709214cb433a562256586824a0f33Adam Powell
46e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# A helper sub-library that makes direct use of Froyo APIs.
47e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(CLEAR_VARS)
48e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_MODULE := android-support-v4-froyo
49e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SDK_VERSION := 8
50e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, froyo)
51c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1
52e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
53e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
54e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# -----------------------------------------------------------------------
55e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
56560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell# A helper sub-library that makes direct use of Gingerbread APIs.
57560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powellinclude $(CLEAR_VARS)
58560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_MODULE := android-support-v4-gingerbread
59560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_SDK_VERSION := 9
60560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_SRC_FILES := $(call all-java-files-under, gingerbread)
61c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo
62560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY)
63560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell
64560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell# -----------------------------------------------------------------------
65560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell
6627aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# A helper sub-library that makes direct use of Honeycomb APIs.
6727aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(CLEAR_VARS)
6827aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb
6927aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SDK_VERSION := 11
7027aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
71c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread
7227aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
7327aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn
7427aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# -----------------------------------------------------------------------
7527aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn
765c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# A helper sub-library that makes direct use of Honeycomb MR2 APIs.
775c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(CLEAR_VARS)
785c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb-mr2
79bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SDK_VERSION := 13
805c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2)
81c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb
825c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
835c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn
845c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# -----------------------------------------------------------------------
855c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn
86bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
87bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(CLEAR_VARS)
88bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_MODULE := android-support-v4-ics
892f57132efb6e8ce3aa19d4f39518073e00680265Ying WangLOCAL_SDK_VERSION := 14
90bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SRC_FILES := $(call all-java-files-under, ics)
91c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2
92bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY)
93bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
94bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# -----------------------------------------------------------------------
95bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
96c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov# A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs.
97c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganovinclude $(CLEAR_VARS)
98c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_MODULE := android-support-v4-ics-mr1
99c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_SDK_VERSION := 15
100c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1)
101c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics
102c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganovinclude $(BUILD_STATIC_JAVA_LIBRARY)
103c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov
104c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov# -----------------------------------------------------------------------
105c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov
106956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov# A helper sub-library that makes direct use of JellyBean APIs.
107956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganovinclude $(CLEAR_VARS)
108956b013dfda37760b0232ed6d448900a546d2903Svetoslav GanovLOCAL_MODULE := android-support-v4-jellybean
109f3ed7c56e6c409d27c60f7d74c026906593c21d4Svetoslav GanovLOCAL_SDK_VERSION := 16
110956b013dfda37760b0232ed6d448900a546d2903Svetoslav GanovLOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
111c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1
112956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganovinclude $(BUILD_STATIC_JAVA_LIBRARY)
113956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov
114956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov# -----------------------------------------------------------------------
115956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov
1160af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov# A helper sub-library that makes direct use of JellyBean MR1 APIs.
1170af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganovinclude $(CLEAR_VARS)
1180af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav GanovLOCAL_MODULE := android-support-v4-jellybean-mr1
1198295680249abdd0cffece49cbefb337f03425c20Jim GuggemosLOCAL_SDK_VERSION := 17
1200af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav GanovLOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1)
121c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean
1220af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganovinclude $(BUILD_STATIC_JAVA_LIBRARY)
1230af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov
1240af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov# -----------------------------------------------------------------------
1250af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov
1260fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav# A helper sub-library that makes direct use of JellyBean MR2 APIs.
1270fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslavinclude $(CLEAR_VARS)
1280fc5bd7644f7563f7b59bd1017df9c938857e794SvetoslavLOCAL_MODULE := android-support-v4-jellybean-mr2
129b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpiniLOCAL_SDK_VERSION := 18
1300fc5bd7644f7563f7b59bd1017df9c938857e794SvetoslavLOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
131c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1
1320fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslavinclude $(BUILD_STATIC_JAVA_LIBRARY)
1330fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav
1340fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav# -----------------------------------------------------------------------
1350fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav
136b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpini# A helper sub-library that makes direct use of KitKat APIs.
137b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpiniinclude $(CLEAR_VARS)
138b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpiniLOCAL_MODULE := android-support-v4-kitkat
139dd2c232b1f64d270269a2f515b4f9d448893f858Adam PowellLOCAL_SDK_VERSION := 19
140b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpiniLOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
141b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpiniLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr2
142b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpiniinclude $(BUILD_STATIC_JAVA_LIBRARY)
143b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpini
144b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpini# -----------------------------------------------------------------------
145b7c7eb8b8c520f5a3256205a42e42e071854d929Mindy DelliCarpini
146b56de0d1a113c71a2808303009ab4d9708ed6e84Griff Hazen# A helper sub-library that makes direct use of the upcoming API
147b56de0d1a113c71a2808303009ab4d9708ed6e84Griff Hazen# TODO: Apply a real name and SDK version when available
148b56de0d1a113c71a2808303009ab4d9708ed6e84Griff Hazeninclude $(CLEAR_VARS)
149b56de0d1a113c71a2808303009ab4d9708ed6e84Griff HazenLOCAL_MODULE := android-support-v4-api20
150b56de0d1a113c71a2808303009ab4d9708ed6e84Griff HazenLOCAL_SDK_VERSION := current
151b56de0d1a113c71a2808303009ab4d9708ed6e84Griff HazenLOCAL_SRC_FILES := $(call all-java-files-under, api20)
152b56de0d1a113c71a2808303009ab4d9708ed6e84Griff HazenLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-kitkat
153b56de0d1a113c71a2808303009ab4d9708ed6e84Griff Hazeninclude $(BUILD_STATIC_JAVA_LIBRARY)
154b56de0d1a113c71a2808303009ab4d9708ed6e84Griff Hazen
155b56de0d1a113c71a2808303009ab4d9708ed6e84Griff Hazen# -----------------------------------------------------------------------
156b56de0d1a113c71a2808303009ab4d9708ed6e84Griff Hazen
15727aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# Here is the final static library that apps can link against.
158cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(CLEAR_VARS)
159cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_MODULE := android-support-v4
160cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_SDK_VERSION := 4
161ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazen
162ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff HazenLOCAL_SRC_FILES := $(call all-java-files-under, java) \
163ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazen    $(call all-Iaidl-files-under, java)
164ce16e4276c2f61109a23b3f6707cfcd87b07c735Griff Hazen
165b56de0d1a113c71a2808303009ab4d9708ed6e84Griff HazenLOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-api20
16605568b7be5a76721cf32703fc67652c685422165Tor NorbyeLOCAL_STATIC_JAVA_LIBRARIES += android-support-annotations
167cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
168