Android.mk revision bc889e39e279fcf8c3d35fc11d8052c002eddf38
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 3827aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# A helper sub-library that makes direct use of Honeycomb APIs. 3927aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(CLEAR_VARS) 4027aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb 4127aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SDK_VERSION := 11 4227aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb) 4327aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 4427aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn 4527aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# ----------------------------------------------------------------------- 4627aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn 475c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# A helper sub-library that makes direct use of Honeycomb MR2 APIs. 485c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(CLEAR_VARS) 495c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb-mr2 50bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SDK_VERSION := 13 515c1637087453de15e31861f073eae5133c4e9f7bDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb_mr2) 525c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 535c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn 545c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn# ----------------------------------------------------------------------- 555c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn 56bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# A helper sub-library that makes direct use of Ice Cream Sandwich APIs. 57bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(CLEAR_VARS) 58bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_MODULE := android-support-v4-ics 59bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SDK_VERSION := current 60bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam PowellLOCAL_SRC_FILES := $(call all-java-files-under, ics) 61bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY) 62bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell 63bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell# ----------------------------------------------------------------------- 64bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell 6527aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# Here is the final static library that apps can link against. 66cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(CLEAR_VARS) 67cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_MODULE := android-support-v4 68cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_SDK_VERSION := 4 6927aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, java) 70e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_STATIC_JAVA_LIBRARIES += \ 71e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn android-support-v4-eclair \ 72e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn android-support-v4-froyo \ 735c1637087453de15e31861f073eae5133c4e9f7bDianne Hackborn android-support-v4-honeycomb \ 74bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell android-support-v4-honeycomb-mr2 \ 75bc889e39e279fcf8c3d35fc11d8052c002eddf38Adam Powell android-support-v4-ics 76cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 77cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn 78cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Include this library in the build server's output directory 79614bd22138e6c13f9f3f3d2e85d13623f1c088ddXavier Ducrohet$(call dist-for-goals, droidcore sdk, $(LOCAL_BUILT_MODULE):android-support-v4.jar) 80