Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 1 | # Copyright (C) 2016 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 | # Build the resources using the latest applicable SDK version. |
| 18 | # We do this here because the final static library must be compiled with an older |
| 19 | # SDK version than the resources. The resources library and the R class that it |
| 20 | # contains will not be linked into the final static library. |
| 21 | include $(CLEAR_VARS) |
Adam Lesinski | b500675 | 2016-07-20 09:14:58 -0700 | [diff] [blame^] | 22 | LOCAL_USE_AAPT2 := true |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 23 | LOCAL_MODULE := android-support-transition-res |
| 24 | LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION) |
| 25 | LOCAL_SRC_FILES := $(call all-java-files-under, dummy) |
| 26 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 27 | LOCAL_JAR_EXCLUDE_FILES := none |
| 28 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
| 29 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 30 | |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 31 | # A helper sub-library to resolve cyclic dependencies between Transition and platform dependent |
| 32 | # implementations |
| 33 | include $(CLEAR_VARS) |
| 34 | LOCAL_MODULE := android-support-transition-base |
| 35 | LOCAL_SDK_VERSION := 14 |
| 36 | LOCAL_SRC_FILES := $(call all-java-files-under, base) |
| 37 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
| 38 | LOCAL_JAVA_LIBRARIES := android-support-transition-res \ |
| 39 | android-support-v4 |
| 40 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 41 | |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 42 | # A helper sub-library that makes direct use of Ice Cream Sandwich APIs |
| 43 | include $(CLEAR_VARS) |
| 44 | LOCAL_MODULE := android-support-transition-ics |
| 45 | LOCAL_SDK_VERSION := 14 |
| 46 | LOCAL_SRC_FILES := $(call all-java-files-under, ics) |
| 47 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-base |
| 48 | LOCAL_JAVA_LIBRARIES := android-support-transition-res \ |
| 49 | android-support-v4 |
| 50 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 51 | |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 52 | # A helper sub-library that makes direct use of KitKat APIs |
| 53 | include $(CLEAR_VARS) |
| 54 | LOCAL_MODULE := android-support-transition-kitkat |
| 55 | LOCAL_SDK_VERSION := 19 |
| 56 | LOCAL_SRC_FILES := $(call all-java-files-under, kitkat) |
| 57 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-ics |
| 58 | LOCAL_JAVA_LIBRARIES := android-support-transition-res \ |
| 59 | android-support-v4 |
| 60 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 61 | |
Yuichi Araki | bd6c3bc | 2016-06-21 13:25:22 +0900 | [diff] [blame] | 62 | # A helper sub-library that makes direct use of Lollipop APIs |
| 63 | include $(CLEAR_VARS) |
| 64 | LOCAL_MODULE := android-support-transition-api21 |
| 65 | LOCAL_SDK_VERSION := 21 |
| 66 | LOCAL_SRC_FILES := $(call all-java-files-under, api21) |
| 67 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-kitkat |
| 68 | LOCAL_JAVA_LIBRARIES := android-support-transition-res \ |
| 69 | android-support-v4 |
| 70 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 71 | |
| 72 | # A helper sub-library that makes direct use of Marshmallow APIs |
Yuichi Araki | a0eb967 | 2016-06-20 15:14:57 +0900 | [diff] [blame] | 73 | include $(CLEAR_VARS) |
| 74 | LOCAL_MODULE := android-support-transition-api23 |
| 75 | LOCAL_SDK_VERSION := 23 |
| 76 | LOCAL_SRC_FILES := $(call all-java-files-under, api23) |
Yuichi Araki | bd6c3bc | 2016-06-21 13:25:22 +0900 | [diff] [blame] | 77 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-api21 |
Yuichi Araki | a0eb967 | 2016-06-20 15:14:57 +0900 | [diff] [blame] | 78 | LOCAL_JAVA_LIBRARIES := android-support-transition-res \ |
| 79 | android-support-v4 |
| 80 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 81 | |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 82 | # Here is the final static library that apps can link against. |
Adam Lesinski | b500675 | 2016-07-20 09:14:58 -0700 | [diff] [blame^] | 83 | # Applications that use this library must specify |
| 84 | # |
| 85 | # LOCAL_STATIC_ANDROID_LIBRARIES := \ |
| 86 | # android-support-transition \ |
| 87 | # android-support-v4 |
| 88 | # |
| 89 | # in their makefiles to include the resources and their dependencies in their package. |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 90 | include $(CLEAR_VARS) |
Adam Lesinski | b500675 | 2016-07-20 09:14:58 -0700 | [diff] [blame^] | 91 | LOCAL_USE_AAPT2 := true |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 92 | LOCAL_MODULE := android-support-transition |
| 93 | LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION) |
| 94 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
Yuichi Araki | a0eb967 | 2016-06-20 15:14:57 +0900 | [diff] [blame] | 95 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-api23 |
Adam Lesinski | b500675 | 2016-07-20 09:14:58 -0700 | [diff] [blame^] | 96 | LOCAL_STATIC_ANDROID_LIBRARIES := android-support-transition-res |
| 97 | LOCAL_SHARED_ANDROID_LIBRARIES := android-support-v4 |
| 98 | LOCAL_JAR_EXCLUDE_FILES := none |
Yuichi Araki | c876cd8 | 2016-02-05 14:39:00 +0900 | [diff] [blame] | 99 | include $(BUILD_STATIC_JAVA_LIBRARY) |