blob: 57805d47a4a66c18a1984b68341bb22177fba71e [file] [log] [blame]
Adam Powellbbbb8f32012-04-25 13:03:55 -07001# Copyright (C) 2012 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17# Note: the source code is in java/, not src/, because this code is also part of
18# the framework library, and build/core/pathmap.mk expects a java/ subdirectory.
19
20# include $(CLEAR_VARS)
21# LOCAL_MODULE := android-support-appcompat-res
22# LOCAL_SDK_VERSION := current
23# LOCAL_SRC_FILES := $(call all-java-files-under, res-stub)
24# LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
25# LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
26# include $(BUILD_STATIC_JAVA_LIBRARY)
27
28# include $(CLEAR_VARS)
29# LOCAL_MODULE := android-support-appcompat-eclair
30# LOCAL_SDK_VERSION := 7
31# LOCAL_SRC_FILES := \
32# $(call all-java-files-under, eclair)
33# LOCAL_STATIC_JAVA_LIBRARIES += \
34# android-support-v4 \
35# android-support-appcompat-res
36# LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
37# include $(BUILD_STATIC_JAVA_LIBRARY)
38
39# include $(CLEAR_VARS)
40# LOCAL_MODULE := android-support-appcompat-honeycomb
41# LOCAL_SDK_VERSION := 11
42# LOCAL_SRC_FILES := \
43# $(call all-java-files-under, honeycomb)
44# LOCAL_STATIC_JAVA_LIBRARIES += \
45# android-support-appcompat-eclair
46# LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
47# include $(BUILD_STATIC_JAVA_LIBRARY)
48
49# include $(CLEAR_VARS)
50# LOCAL_MODULE := android-support-appcompat-ics
51# LOCAL_SDK_VERSION := 14
52# LOCAL_SRC_FILES := \
53# $(call all-java-files-under, ics)
54# LOCAL_STATIC_JAVA_LIBRARIES += \
55# android-support-appcompat-honeycomb
56# LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
57# include $(BUILD_STATIC_JAVA_LIBRARY)
58
59# include $(CLEAR_VARS)
60# LOCAL_MODULE := android-support-appcompat
61# LOCAL_SDK_VERSION := 7
62# LOCAL_SRC_FILES := \
63# $(call all-java-files-under, java)
64# LOCAL_STATIC_JAVA_LIBRARIES += \
65# android-support-appcompat-ics
66# LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
67# include $(BUILD_STATIC_JAVA_LIBRARY)
68
69# # Include this library in the build server's output directory
70# $(call dist-for-goals, droidcore sdk, $(LOCAL_BUILT_MODULE):android-support-appcompat.jar)
71
72
73# A helper sub-library that provides resources.
74include $(CLEAR_VARS)
75LOCAL_MODULE := android-support-appcompat-res
76LOCAL_SDK_VERSION := 7
77LOCAL_SRC_FILES := $(call all-java-files-under, res-stub)
78LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
79LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
80include $(BUILD_STATIC_JAVA_LIBRARY)
81
82# -----------------------------------------------------------------------
83
84# A helper sub-library that makes direct use of Eclair APIs.
85include $(CLEAR_VARS)
86LOCAL_MODULE := android-support-appcompat-eclair
87LOCAL_SDK_VERSION := 7
88LOCAL_SRC_FILES := $(call all-java-files-under, eclair)
89LOCAL_STATIC_JAVA_LIBRARIES += \
90 android-support-appcopmat-res
91LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
92include $(BUILD_STATIC_JAVA_LIBRARY)
93
94# -----------------------------------------------------------------------
95
96# Here is the final static library that apps can link against.
97include $(CLEAR_VARS)
98LOCAL_MODULE := android-support-appcopmat
99LOCAL_SDK_VERSION := 4
100LOCAL_SRC_FILES := $(call all-java-files-under, java)
101LOCAL_STATIC_JAVA_LIBRARIES += \
102 android-support-appcopmat-eclair
103LOCAL_KEEP_R_CLASS_IN_STATIC_JAVA_LIBRARY := true
104include $(BUILD_STATIC_JAVA_LIBRARY)
105
106# Include this library in the build server's output directory
107$(call dist-for-goals, droidcore sdk, $(LOCAL_BUILT_MODULE):android-support-appcompat.jar)