183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# Copyright (C) 2014 The Android Open Source Project 283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# 383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# Licensed under the Apache License, Version 2.0 (the "License"); 483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# you may not use this file except in compliance with the License. 583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# You may obtain a copy of the License at 683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# 783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# http://www.apache.org/licenses/LICENSE-2.0 883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# 983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# Unless required by applicable law or agreed to in writing, software 1083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# distributed under the License is distributed on an "AS IS" BASIS, 1183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# See the License for the specific language governing permissions and 1383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# limitations under the License. 1483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 1583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_PATH := $(call my-dir) 1683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 1783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# Build the resources using the current SDK version. 1883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# We do this here because the final static library must be compiled with an older 1983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# SDK version than the resources. The resources library and the R class that it 2083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# contains will not be linked into the final static library. 2183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(CLEAR_VARS) 2283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_MODULE := android-support-v7-cardview-res 2383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SDK_VERSION := current 2483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SRC_FILES := $(call all-java-files-under, dummy) 2583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 2683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_JAR_EXCLUDE_FILES := none 2783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(BUILD_STATIC_JAVA_LIBRARY) 2883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 2983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# A helper sub-library to resolve cyclic dependencies between CardView and platform dependent 3083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# implementations 3183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(CLEAR_VARS) 3283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_MODULE := android-support-v7-cardview-base 3383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SDK_VERSION := 7 3483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SRC_FILES := $(call all-java-files-under, base) 3583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(BUILD_STATIC_JAVA_LIBRARY) 3683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 3783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# A helper sub-library that makes direct use of Eclair MR1 APIs 3883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(CLEAR_VARS) 3983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_MODULE := android-support-v7-cardview-eclair-mr1 4083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SDK_VERSION := 7 4183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SRC_FILES := $(call all-java-files-under, eclair-mr1) 4283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_STATIC_JAVA_LIBRARIES := android-support-v7-cardview-base 4383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_JAVA_LIBRARIES := android-support-v7-cardview-res 4483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(BUILD_STATIC_JAVA_LIBRARY) 4583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 4683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# A helper sub-library that makes direct use of JB MR1 APIs 4783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(CLEAR_VARS) 4883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_MODULE := android-support-v7-cardview-jellybean-mr1 4983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SDK_VERSION := 17 5083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SRC_FILES := $(call all-java-files-under, jellybean-mr1) 5183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_STATIC_JAVA_LIBRARIES := android-support-v7-cardview-eclair-mr1 5283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_JAVA_LIBRARIES := android-support-v7-cardview-res 5383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(BUILD_STATIC_JAVA_LIBRARY) 5483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 5583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# A helper sub-library that makes direct use of L APIs 5683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(CLEAR_VARS) 5783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_MODULE := android-support-v7-cardview-api21 58fcec1282de632ec009109ae3f93a25fea97fc170Griff HazenLOCAL_SDK_VERSION := 21 5983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SRC_FILES := $(call all-java-files-under, api21) 6083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_STATIC_JAVA_LIBRARIES := android-support-v7-cardview-base \ 6183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar android-support-v7-cardview-jellybean-mr1 6283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_JAVA_LIBRARIES := android-support-v7-cardview-res 6383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(BUILD_STATIC_JAVA_LIBRARY) 6483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 6583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# Here is the final static library that apps can link against. 6683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# The R class is automatically excluded from the generated library. 6783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# Applications that use this library must specify LOCAL_RESOURCE_DIR 6883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar# in their makefiles to include the resources in their package. 6983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(CLEAR_VARS) 7083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_MODULE := android-support-v7-cardview 7183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SDK_VERSION := 7 7283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_SRC_FILES := $(call all-java-files-under,src) 7383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_STATIC_JAVA_LIBRARIES := android-support-v7-cardview-api21 7483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit BoyarLOCAL_JAVA_LIBRARIES := android-support-v7-cardview-res 7583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarinclude $(BUILD_STATIC_JAVA_LIBRARY) 76