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