Home | History | Annotate | Download | only in drawable
      1 # Copyright (C) 2015 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 # Static vector drawable library
     20 #
     21 # ---------------------------------------------
     22 include $(CLEAR_VARS)
     23 LOCAL_MODULE := android-support-vectordrawable
     24 
     25 ifdef SUPPORT_CURRENT_SDK_VERSION
     26 LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
     27 else
     28 LOCAL_SDK_VERSION := current
     29 endif
     30 
     31 LOCAL_SRC_FILES := $(call all-java-files-under, static/src)
     32 
     33 LOCAL_JAVA_LIBRARIES := android-support-v4
     34 
     35 LOCAL_JAVA_LANGUAGE_VERSION := 1.7
     36 include $(BUILD_STATIC_JAVA_LIBRARY)
     37 
     38 # Static API Check
     39 support_module := $(LOCAL_MODULE)
     40 support_module_api_dir := $(LOCAL_PATH)/static/api
     41 support_module_src_files := $(LOCAL_SRC_FILES)
     42 support_module_java_libraries := $(LOCAL_JAVA_LIBRARIES)
     43 support_module_java_packages := android.support.graphics.drawable
     44 include $(SUPPORT_API_CHECK)
     45 
     46 
     47 # ---------------------------------------------
     48 #
     49 # Animated vector drawable library
     50 #
     51 # ---------------------------------------------
     52 include $(CLEAR_VARS)
     53 LOCAL_MODULE := android-support-animatedvectordrawable
     54 
     55 ifdef SUPPORT_CURRENT_SDK_VERSION
     56 LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
     57 else
     58 LOCAL_SDK_VERSION := current
     59 endif
     60 
     61 LOCAL_SRC_FILES := $(call all-java-files-under, animated/src)
     62 
     63 LOCAL_JAVA_LIBRARIES := android-support-v4 android-support-vectordrawable
     64 
     65 LOCAL_AAPT_FLAGS := --no-version-vectors
     66 LOCAL_JAVA_LANGUAGE_VERSION := 1.7
     67 include $(BUILD_STATIC_JAVA_LIBRARY)
     68 
     69 # Animated API Check
     70 support_module := $(LOCAL_MODULE)
     71 support_module_api_dir := $(LOCAL_PATH)/animated/api
     72 support_module_src_files := $(LOCAL_SRC_FILES) \
     73     static/src/android/support/graphics/drawable/VectorDrawableCommon.java
     74 support_module_java_libraries := $(LOCAL_JAVA_LIBRARIES)
     75 support_module_java_packages := android.support.graphics.drawable
     76 include $(SUPPORT_API_CHECK)
     77