Home | History | Annotate | Download | only in media-compat
      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 # -----------------------------------------------------------------------
     18 
     19 # A helper sub-library that makes direct use of Ice Cream Sandwich APIs.
     20 include $(CLEAR_VARS)
     21 LOCAL_MODULE := android-support-media-compat-ics
     22 LOCAL_SDK_VERSION := 14
     23 LOCAL_SRC_FILES := $(call all-java-files-under, ics)
     24 LOCAL_STATIC_JAVA_LIBRARIES := android-support-annotations 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 JellyBean MR2 APIs.
     31 include $(CLEAR_VARS)
     32 LOCAL_MODULE := android-support-media-compat-jellybean-mr2
     33 LOCAL_SDK_VERSION := 18
     34 LOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr2)
     35 LOCAL_STATIC_JAVA_LIBRARIES := android-support-media-compat-ics
     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 KitKat APIs.
     42 include $(CLEAR_VARS)
     43 LOCAL_MODULE := android-support-media-compat-kitkat
     44 LOCAL_SDK_VERSION := 19
     45 LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
     46 LOCAL_STATIC_JAVA_LIBRARIES := android-support-media-compat-jellybean-mr2
     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-media-compat-api21
     55 LOCAL_SDK_VERSION := 21
     56 LOCAL_SRC_FILES := $(call all-java-files-under, api21)
     57 LOCAL_STATIC_JAVA_LIBRARIES := android-support-media-compat-kitkat
     58 LOCAL_JAVA_LANGUAGE_VERSION := 1.7
     59 include $(BUILD_STATIC_JAVA_LIBRARY)
     60 
     61 # -----------------------------------------------------------------------
     62 
     63 # A helper sub-library that makes direct use of V22 APIs.
     64 include $(CLEAR_VARS)
     65 LOCAL_MODULE := android-support-media-compat-api22
     66 LOCAL_SDK_VERSION := 22
     67 LOCAL_SRC_FILES := $(call all-java-files-under, api22)
     68 LOCAL_STATIC_JAVA_LIBRARIES := android-support-media-compat-api21
     69 LOCAL_JAVA_LANGUAGE_VERSION := 1.7
     70 include $(BUILD_STATIC_JAVA_LIBRARY)
     71 
     72 # -----------------------------------------------------------------------
     73 
     74 # A helper sub-library that makes direct use of V23 APIs.
     75 include $(CLEAR_VARS)
     76 LOCAL_MODULE := android-support-media-compat-api23
     77 LOCAL_SDK_VERSION := 23
     78 LOCAL_SRC_FILES := $(call all-java-files-under, api23)
     79 LOCAL_STATIC_JAVA_LIBRARIES := android-support-media-compat-api22
     80 LOCAL_JAVA_LANGUAGE_VERSION := 1.7
     81 include $(BUILD_STATIC_JAVA_LIBRARY)
     82 
     83 # -----------------------------------------------------------------------
     84 
     85 # A helper sub-library that makes direct use of V24 APIs.
     86 include $(CLEAR_VARS)
     87 LOCAL_MODULE := android-support-media-compat-api24
     88 LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
     89 LOCAL_SRC_FILES := $(call all-java-files-under, api24)
     90 LOCAL_STATIC_JAVA_LIBRARIES := android-support-media-compat-api23
     91 LOCAL_JAVA_LANGUAGE_VERSION := 1.7
     92 include $(BUILD_STATIC_JAVA_LIBRARY)
     93 
     94 # -----------------------------------------------------------------------
     95 
     96 # Here is the final static library that apps can link against.
     97 include $(CLEAR_VARS)
     98 LOCAL_USE_AAPT2 := true
     99 LOCAL_MODULE := android-support-media-compat
    100 LOCAL_SDK_VERSION := 9
    101 LOCAL_AIDL_INCLUDES := frameworks/support/media-compat/java
    102 LOCAL_SRC_FILES := $(call all-java-files-under, java) \
    103     $(call all-Iaidl-files-under, java)
    104 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
    105 LOCAL_STATIC_JAVA_LIBRARIES += android-support-media-compat-api24
    106 LOCAL_SHARED_ANDROID_LIBRARIES := \
    107     android-support-compat \
    108     android-support-annotations
    109 LOCAL_JAR_EXCLUDE_FILES := none
    110 LOCAL_JAVA_LANGUAGE_VERSION := 1.7
    111 include $(BUILD_STATIC_JAVA_LIBRARY)
    112