Android.mk revision e4417c91a0bb2fba42a0aaa99edcca1b238af21a
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 4727aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# Here is the final static library that apps can link against. 48cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(CLEAR_VARS) 49cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_MODULE := android-support-v4 50cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_SDK_VERSION := 4 5127aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, java) 52e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne HackbornLOCAL_STATIC_JAVA_LIBRARIES += \ 53e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn android-support-v4-eclair \ 54e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn android-support-v4-froyo \ 55e4417c91a0bb2fba42a0aaa99edcca1b238af21aDianne Hackborn android-support-v4-honeycomb 56cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY) 57cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn 58cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Include this library in the build server's output directory 59614bd22138e6c13f9f3f3d2e85d13623f1c088ddXavier Ducrohet$(call dist-for-goals, droidcore sdk, $(LOCAL_BUILT_MODULE):android-support-v4.jar) 60