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 15LOCAL_PATH := $(call my-dir) 16 17# A helper sub-library that makes direct use of Gingerbread APIs. 18include $(CLEAR_VARS) 19LOCAL_MODULE := android-support-fragment-gingerbread 20LOCAL_SDK_VERSION := 9 21LOCAL_SRC_FILES := $(call all-java-files-under, gingerbread) 22LOCAL_JAVA_LIBRARIES := \ 23 android-support-annotations \ 24 android-support-compat \ 25 android-support-core-utils \ 26 android-support-media-compat \ 27 android-support-core-ui 28LOCAL_JAVA_LANGUAGE_VERSION := 1.7 29include $(BUILD_STATIC_JAVA_LIBRARY) 30 31# ----------------------------------------------------------------------- 32 33# A helper sub-library that makes direct use of Honeycomb APIs. 34include $(CLEAR_VARS) 35LOCAL_MODULE := android-support-fragment-honeycomb 36LOCAL_SDK_VERSION := 11 37LOCAL_SRC_FILES := $(call all-java-files-under, honeycomb) 38LOCAL_STATIC_JAVA_LIBRARIES := android-support-fragment-gingerbread 39LOCAL_JAVA_LANGUAGE_VERSION := 1.7 40include $(BUILD_STATIC_JAVA_LIBRARY) 41 42# ----------------------------------------------------------------------- 43 44# A helper sub-library that makes direct use of JellyBean APIs. 45include $(CLEAR_VARS) 46LOCAL_MODULE := android-support-fragment-jellybean 47LOCAL_SDK_VERSION := 16 48LOCAL_SRC_FILES := $(call all-java-files-under, jellybean) 49LOCAL_STATIC_JAVA_LIBRARIES := android-support-fragment-honeycomb 50LOCAL_JAVA_LIBRARIES := \ 51 android-support-annotations \ 52 android-support-compat \ 53 android-support-media-compat \ 54 android-support-core-ui \ 55 android-support-core-utils 56LOCAL_JAVA_LANGUAGE_VERSION := 1.7 57include $(BUILD_STATIC_JAVA_LIBRARY) 58 59# ----------------------------------------------------------------------- 60 61# A helper sub-library that makes direct use of Lollipop APIs. 62include $(CLEAR_VARS) 63LOCAL_MODULE := android-support-fragment-api21 64LOCAL_SDK_VERSION := 21 65LOCAL_SRC_FILES := $(call all-java-files-under, api21) 66LOCAL_STATIC_JAVA_LIBRARIES := android-support-fragment-jellybean 67LOCAL_JAVA_LIBRARIES := \ 68 android-support-annotations \ 69 android-support-compat \ 70 android-support-media-compat \ 71 android-support-core-ui \ 72 android-support-core-utils 73LOCAL_JAVA_LANGUAGE_VERSION := 1.7 74include $(BUILD_STATIC_JAVA_LIBRARY) 75 76# ----------------------------------------------------------------------- 77 78# Here is the final static library that apps can link against. 79include $(CLEAR_VARS) 80LOCAL_USE_AAPT2 := true 81LOCAL_MODULE := android-support-fragment 82LOCAL_SDK_VERSION := 9 83LOCAL_SRC_FILES := $(call all-java-files-under, java) 84LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 85LOCAL_STATIC_JAVA_LIBRARIES := android-support-fragment-api21 86LOCAL_JAVA_LIBRARIES := \ 87 android-support-annotations \ 88 android-support-compat \ 89 android-support-media-compat \ 90 android-support-core-ui \ 91 android-support-core-utils 92LOCAL_JAR_EXCLUDE_FILES := none 93LOCAL_JAVA_LANGUAGE_VERSION := 1.7 94LOCAL_AAPT_FLAGS := --add-javadoc-annotation doconly 95include $(BUILD_STATIC_JAVA_LIBRARY) 96