Android.mk revision c64858f808c159a8b144d22e3168459074cdc181
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 17cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Note: the source code is in java/, not src/, because this code is also part of 18cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# the framework library, and build/core/pathmap.mk expects a java/ subdirectory. 19cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn 20e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# A helper sub-library that makes direct use of Eclair APIs. 21e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(CLEAR_VARS) 22e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_MODULE := android-support-v4-eclair 23e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SDK_VERSION := 5 24e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, eclair) 25e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 26e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn 27e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# ----------------------------------------------------------------------- 28e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn 29e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# A helper sub-library that makes direct use of Froyo APIs. 30e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(CLEAR_VARS) 31e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_MODULE := android-support-v4-froyo 32e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SDK_VERSION := 8 33e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, froyo) 34e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 35e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn 36e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn# ----------------------------------------------------------------------- 37e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn 38560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell# A helper sub-library that makes direct use of Gingerbread APIs. 39560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powellinclude $(CLEAR_VARS) 40560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_MODULE := android-support-v4-gingerbread 41560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_SDK_VERSION := 9 42560114f591be31d0fb73c26a1ee1cc0a15184abaAdam PowellLOCAL_SRC_FILES := $(call all-java-files-under, gingerbread) 43560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY) 44560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell 45560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell# ----------------------------------------------------------------------- 46560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell 4727aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# A helper sub-library that makes direct use of Honeycomb APIs. 4827aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(CLEAR_VARS) 4927aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb 5027aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SDK_VERSION := 11 5127aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb) 5227aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 5327aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn 5427aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# ----------------------------------------------------------------------- 5527aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn 565c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# A helper sub-library that makes direct use of Honeycomb MR2 APIs. 575c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(CLEAR_VARS) 585c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb-mr2 59bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SDK_VERSION := 13 605c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2) 615c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 625c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn 635c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# ----------------------------------------------------------------------- 645c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn 65bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# A helper sub-library that makes direct use of Ice Cream Sandwich APIs. 66bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(CLEAR_VARS) 67bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_MODULE := android-support-v4-ics 682f57132efb6e8ce3aa19d4f39518073e00680265Ying WangLOCAL_SDK_VERSION := 14 69bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SRC_FILES := $(call all-java-files-under, ics) 70bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY) 71bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell 72bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# ----------------------------------------------------------------------- 73bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell 74c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov# A helper sub-library that makes direct use of Ice Cream Sandwich MR1 APIs. 75c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganovinclude $(CLEAR_VARS) 76c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_MODULE := android-support-v4-ics-mr1 77c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_SDK_VERSION := 15 78c64858f808c159a8b144d22e3168459074cdc181Svetoslav GanovLOCAL_SRC_FILES := $(call all-java-files-under, ics-mr1) 79c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganovinclude $(BUILD_STATIC_JAVA_LIBRARY) 80c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov 81c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov# ----------------------------------------------------------------------- 82c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov 8327aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# Here is the final static library that apps can link against. 84cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(CLEAR_VARS) 85cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_MODULE := android-support-v4 86cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_SDK_VERSION := 4 8727aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, java) 88e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_STATIC_JAVA_LIBRARIES += \ 89e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn android-support-v4-eclair \ 90e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn android-support-v4-froyo \ 91560114f591be31d0fb73c26a1ee1cc0a15184abaAdam Powell android-support-v4-gingerbread \ 925c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn android-support-v4-honeycomb \ 93bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell android-support-v4-honeycomb-mr2 \ 94c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov android-support-v4-ics \ 95c64858f808c159a8b144d22e3168459074cdc181Svetoslav Ganov android-support-v4-ics-mr1 96cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 97cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn 98cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Include this library in the build server's output directory 99614bd22138e6c13f9f3f3d2e85d13623f1c088ddXavier Ducrohet$(call dist-for-goals, droidcore sdk, $(LOCAL_BUILT_MODULE):android-support-v4.jar) 100