Android.mk revision c029e15f5a4709214cb433a562256586824a0f33
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
17e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# A helper sub-library that makes direct use of Eclair APIs.
18e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(CLEAR_VARS)
19e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_MODULE := android-support-v4-eclair
20e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SDK_VERSION := 5
21e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, eclair)
22e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
23e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
24e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# -----------------------------------------------------------------------
25e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
26c029e15f5a4709214cb433a562256586824a0f33Adam Powell# A helper sub-library that makes direct use of Eclair MR1 APIs.
27c029e15f5a4709214cb433a562256586824a0f33Adam Powellinclude $(CLEAR_VARS)
28c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_MODULE := android-support-v4-eclair-mr1
29c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_SDK_VERSION := 7
30c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1)
31c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair
32c029e15f5a4709214cb433a562256586824a0f33Adam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY)
33c029e15f5a4709214cb433a562256586824a0f33Adam Powell
34c029e15f5a4709214cb433a562256586824a0f33Adam Powell# -----------------------------------------------------------------------
35c029e15f5a4709214cb433a562256586824a0f33Adam Powell
36e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# A helper sub-library that makes direct use of Froyo APIs.
37e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(CLEAR_VARS)
38e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_MODULE := android-support-v4-froyo
39e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SDK_VERSION := 8
40e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, froyo)
41c029e15f5a4709214cb433a562256586824a0f33Adam PowellLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-eclair-mr1
42e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
43e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
44e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# -----------------------------------------------------------------------
45e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn
46560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell# A helper sub-library that makes direct use of Gingerbread APIs.
47560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powellinclude $(CLEAR_VARS)
48560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_MODULE := android-support-v4-gingerbread
49560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_SDK_VERSION := 9
50560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_SRC_FILES := $(call all-java-files-under, gingerbread)
51c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-froyo
52560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY)
53560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell
54560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell# -----------------------------------------------------------------------
55560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell
5627aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# A helper sub-library that makes direct use of Honeycomb APIs.
5727aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(CLEAR_VARS)
5827aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb
5927aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SDK_VERSION := 11
6027aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
61c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-gingerbread
6227aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
6327aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn
6427aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# -----------------------------------------------------------------------
6527aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn
665c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# A helper sub-library that makes direct use of Honeycomb MR2 APIs.
675c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(CLEAR_VARS)
685c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb-mr2
69bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SDK_VERSION := 13
705c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2)
71c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb
725c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
735c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn
745c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# -----------------------------------------------------------------------
755c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn
76bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
77bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(CLEAR_VARS)
78bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_MODULE := android-support-v4-ics
792f57132efb6e8ce3aa19d4f39518073e00680265Ying WangLOCAL_SDK_VERSION := 14
80bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SRC_FILES := $(call all-java-files-under, ics)
81c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-honeycomb-mr2
82bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY)
83bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
84bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# -----------------------------------------------------------------------
85bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell
86c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov# A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs.
87c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganovinclude $(CLEAR_VARS)
88c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_MODULE := android-support-v4-ics-mr1
89c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_SDK_VERSION := 15
90c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1)
91c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics
92c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganovinclude $(BUILD_STATIC_JAVA_LIBRARY)
93c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov
94c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov# -----------------------------------------------------------------------
95c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov
96956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov# A helper sub-library that makes direct use of JellyBean APIs.
97956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganovinclude $(CLEAR_VARS)
98956b013dfda37760b0232ed6d448900a546d2903Svetoslav GanovLOCAL_MODULE := android-support-v4-jellybean
99f3ed7c56e6c409d27c60f7d74c026906593c21d4Svetoslav GanovLOCAL_SDK_VERSION := 16
100956b013dfda37760b0232ed6d448900a546d2903Svetoslav GanovLOCAL_SRC_FILES := $(call all-java-files-under, jellybean)
101c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-ics-mr1
102956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganovinclude $(BUILD_STATIC_JAVA_LIBRARY)
103956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov
104956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov# -----------------------------------------------------------------------
105956b013dfda37760b0232ed6d448900a546d2903Svetoslav Ganov
1060af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov# A helper sub-library that makes direct use of JellyBean MR1 APIs.
1070af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganovinclude $(CLEAR_VARS)
1080af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav GanovLOCAL_MODULE := android-support-v4-jellybean-mr1
1098295680249abdd0cffece49cbefb337f03425c20Jim GuggemosLOCAL_SDK_VERSION := 17
1100af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav GanovLOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1)
111c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean
1120af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganovinclude $(BUILD_STATIC_JAVA_LIBRARY)
1130af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov
1140af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov# -----------------------------------------------------------------------
1150af001b9e0d173f6b9836e66539bf764b897c36fSvetoslav Ganov
1160fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav# A helper sub-library that makes direct use of JellyBean MR2 APIs.
1170fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslavinclude $(CLEAR_VARS)
1180fc5bd7644f7563f7b59bd1017df9c938857e794SvetoslavLOCAL_MODULE := android-support-v4-jellybean-mr2
1190fc5bd7644f7563f7b59bd1017df9c938857e794SvetoslavLOCAL_SDK_VERSION := current
1200fc5bd7644f7563f7b59bd1017df9c938857e794SvetoslavLOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
121c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES := android-support-v4-jellybean-mr1
1220fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslavinclude $(BUILD_STATIC_JAVA_LIBRARY)
1230fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav
1240fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav# -----------------------------------------------------------------------
1250fc5bd7644f7563f7b59bd1017df9c938857e794Svetoslav
12627aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# Here is the final static library that apps can link against.
127cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(CLEAR_VARS)
128cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_MODULE := android-support-v4
129cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_SDK_VERSION := 4
13027aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, java)
131c21f57ed68b81a77167f1df000b0e272e1598bc0Jeff BrownLOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-jellybean-mr2
132cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
133cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn
134cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Include this library in the build server's output directory
135614bd22138e6c13f9f3f3d2e85d13623f1c088ddXavier Ducrohet$(call dist-for-goals, droidcore sdk, $(LOCAL_BUILT_MODULE):android-support-v4.jar)
136