blob: 47215339133d0f0ffe57eb8b3ce804b2be2a489d [file] [log] [blame]
Yuichi Arakic876cd82016-02-05 14:39:00 +09001# 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
15LOCAL_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.
21include $(CLEAR_VARS)
Adam Lesinskib5006752016-07-20 09:14:58 -070022LOCAL_USE_AAPT2 := true
Yuichi Arakic876cd82016-02-05 14:39:00 +090023LOCAL_MODULE := android-support-transition-res
24LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
25LOCAL_SRC_FILES := $(call all-java-files-under, dummy)
26LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
27LOCAL_JAR_EXCLUDE_FILES := none
28LOCAL_JAVA_LANGUAGE_VERSION := 1.7
29include $(BUILD_STATIC_JAVA_LIBRARY)
30
Yuichi Arakic876cd82016-02-05 14:39:00 +090031# A helper sub-library to resolve cyclic dependencies between Transition and platform dependent
32# implementations
33include $(CLEAR_VARS)
34LOCAL_MODULE := android-support-transition-base
35LOCAL_SDK_VERSION := 14
36LOCAL_SRC_FILES := $(call all-java-files-under, base)
37LOCAL_JAVA_LANGUAGE_VERSION := 1.7
38LOCAL_JAVA_LIBRARIES := android-support-transition-res \
39 android-support-v4
40include $(BUILD_STATIC_JAVA_LIBRARY)
41
Yuichi Arakic876cd82016-02-05 14:39:00 +090042# A helper sub-library that makes direct use of Ice Cream Sandwich APIs
43include $(CLEAR_VARS)
44LOCAL_MODULE := android-support-transition-ics
45LOCAL_SDK_VERSION := 14
46LOCAL_SRC_FILES := $(call all-java-files-under, ics)
47LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-base
48LOCAL_JAVA_LIBRARIES := android-support-transition-res \
49 android-support-v4
50include $(BUILD_STATIC_JAVA_LIBRARY)
51
Yuichi Arakic876cd82016-02-05 14:39:00 +090052# A helper sub-library that makes direct use of KitKat APIs
53include $(CLEAR_VARS)
54LOCAL_MODULE := android-support-transition-kitkat
55LOCAL_SDK_VERSION := 19
56LOCAL_SRC_FILES := $(call all-java-files-under, kitkat)
57LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-ics
58LOCAL_JAVA_LIBRARIES := android-support-transition-res \
59 android-support-v4
60include $(BUILD_STATIC_JAVA_LIBRARY)
61
Yuichi Arakibd6c3bc2016-06-21 13:25:22 +090062# A helper sub-library that makes direct use of Lollipop APIs
63include $(CLEAR_VARS)
64LOCAL_MODULE := android-support-transition-api21
65LOCAL_SDK_VERSION := 21
66LOCAL_SRC_FILES := $(call all-java-files-under, api21)
67LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-kitkat
68LOCAL_JAVA_LIBRARIES := android-support-transition-res \
69 android-support-v4
70include $(BUILD_STATIC_JAVA_LIBRARY)
71
72# A helper sub-library that makes direct use of Marshmallow APIs
Yuichi Arakia0eb9672016-06-20 15:14:57 +090073include $(CLEAR_VARS)
74LOCAL_MODULE := android-support-transition-api23
75LOCAL_SDK_VERSION := 23
76LOCAL_SRC_FILES := $(call all-java-files-under, api23)
Yuichi Arakibd6c3bc2016-06-21 13:25:22 +090077LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-api21
Yuichi Arakia0eb9672016-06-20 15:14:57 +090078LOCAL_JAVA_LIBRARIES := android-support-transition-res \
79 android-support-v4
80include $(BUILD_STATIC_JAVA_LIBRARY)
81
Yuichi Arakic876cd82016-02-05 14:39:00 +090082# Here is the final static library that apps can link against.
Adam Lesinskib5006752016-07-20 09:14:58 -070083# 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 Arakic876cd82016-02-05 14:39:00 +090090include $(CLEAR_VARS)
Adam Lesinskib5006752016-07-20 09:14:58 -070091LOCAL_USE_AAPT2 := true
Yuichi Arakic876cd82016-02-05 14:39:00 +090092LOCAL_MODULE := android-support-transition
93LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
94LOCAL_SRC_FILES := $(call all-java-files-under, src)
Yuichi Arakia0eb9672016-06-20 15:14:57 +090095LOCAL_STATIC_JAVA_LIBRARIES := android-support-transition-api23
Adam Lesinskib5006752016-07-20 09:14:58 -070096LOCAL_STATIC_ANDROID_LIBRARIES := android-support-transition-res
97LOCAL_SHARED_ANDROID_LIBRARIES := android-support-v4
98LOCAL_JAR_EXCLUDE_FILES := none
Yuichi Arakic876cd82016-02-05 14:39:00 +090099include $(BUILD_STATIC_JAVA_LIBRARY)