Android.mk revision 27aea04b07c1fafa0f815aa4f80374a9e051b41c
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
2027aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# A helper sub-library that makes direct use of Honeycomb APIs.
2127aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(CLEAR_VARS)
2227aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_MODULE := android-support-v4-honeycomb
2327aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SDK_VERSION := 11
2427aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
2527aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
2627aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn
2727aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# -----------------------------------------------------------------------
2827aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn
2927aea04b07c1fafa0f815aa4f80374a9e051b41cDianne Hackborn# Here is the final static library that apps can link against.
30cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(CLEAR_VARS)
31cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_MODULE := android-support-v4
32cba2e2c881e8e16ea5025b564c94320174d65f01Dianne HackbornLOCAL_SDK_VERSION := 4
3327aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_SRC_FILES := $(call all-java-files-under, java)
3427aea04b07c1fafa0f815aa4f80374a9e051b41cDianne HackbornLOCAL_STATIC_JAVA_LIBRARIES += android-support-v4-honeycomb
35cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborninclude $(BUILD_STATIC_JAVA_LIBRARY)
36cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn
37cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn# Include this library in the build server's output directory
38cba2e2c881e8e16ea5025b564c94320174d65f01Dianne Hackborn$(call dist-for-goals, droidcore, $(LOCAL_BUILT_MODULE):android-support-v4.jar)
39