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