• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2011 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# A helper sub-library that makes direct use of Honeycomb APIs.
18include $(CLEAR_VARS)
19LOCAL_MODULE := android-support-core-ui-honeycomb
20LOCAL_SDK_VERSION := 11
21LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb)
22LOCAL_STATIC_JAVA_LIBRARIES := \
23    android-support-annotations \
24    android-support-compat
25LOCAL_JAVA_LANGUAGE_VERSION := 1.7
26include $(BUILD_STATIC_JAVA_LIBRARY)
27
28# -----------------------------------------------------------------------
29
30# A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
31include $(CLEAR_VARS)
32LOCAL_MODULE := android-support-core-ui-ics
33LOCAL_SDK_VERSION := 14
34LOCAL_SRC_FILES := $(call all-java-files-under, ics)
35LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-ui-honeycomb
36LOCAL_JAVA_LANGUAGE_VERSION := 1.7
37include $(BUILD_STATIC_JAVA_LIBRARY)
38
39# -----------------------------------------------------------------------
40
41# A helper sub-library that makes direct use of JellyBean MR2 APIs.
42include $(CLEAR_VARS)
43LOCAL_MODULE := android-support-core-ui-jellybean-mr2
44LOCAL_SDK_VERSION := 18
45LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
46LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-ui-ics
47LOCAL_JAVA_LANGUAGE_VERSION := 1.7
48include $(BUILD_STATIC_JAVA_LIBRARY)
49
50# -----------------------------------------------------------------------
51
52# A helper sub-library that makes direct use of Lollipop APIs.
53include $(CLEAR_VARS)
54LOCAL_MODULE := android-support-core-ui-api21
55LOCAL_SDK_VERSION := 21
56LOCAL_SRC_FILES := $(call all-java-files-under, api21)
57LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-ui-jellybean-mr2
58LOCAL_JAVA_LANGUAGE_VERSION := 1.7
59include $(BUILD_STATIC_JAVA_LIBRARY)
60
61# -----------------------------------------------------------------------
62
63# Here is the final static library that apps can link against.
64include $(CLEAR_VARS)
65LOCAL_USE_AAPT2 := true
66LOCAL_MODULE := android-support-core-ui
67LOCAL_SDK_VERSION := 9
68LOCAL_SRC_FILES := $(call all-java-files-under, java)
69LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
70LOCAL_STATIC_JAVA_LIBRARIES := android-support-core-ui-api21
71LOCAL_SHARED_ANDROID_LIBRARIES := \
72    android-support-compat \
73    android-support-annotations
74LOCAL_JAR_EXCLUDE_FILES := none
75LOCAL_JAVA_LANGUAGE_VERSION := 1.7
76include $(BUILD_STATIC_JAVA_LIBRARY)
77