blob: f856de6f1560f10429bf08661ad684ff974ad480 [file] [log] [blame]
Chris Banes19b2eea2015-01-27 11:07:52 +00001# 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
Chris Banes19b2eea2015-01-27 11:07:52 +000017# Here is the final static library that apps can link against.
Adam Lesinski6759b102016-02-24 19:57:25 -080018# Applications that use this library must specify
19#
20# LOCAL_STATIC_ANDROID_LIBRARIES := \
21# android-support-design \
Alan Viverette9439d702016-10-25 14:45:10 +010022# android-support-transition \
Adam Lesinski6759b102016-02-24 19:57:25 -080023# android-support-v7-appcompat \
24# android-support-v7-recyclerview \
Alan Viverette9439d702016-10-25 14:45:10 +010025# android-support-v4
Adam Lesinski6759b102016-02-24 19:57:25 -080026#
27# in their makefiles to include the resources and their dependencies in their package.
Chris Banes19b2eea2015-01-27 11:07:52 +000028include $(CLEAR_VARS)
Adam Lesinski6759b102016-02-24 19:57:25 -080029LOCAL_USE_AAPT2 := true
Aurimas Liutikas7412f7f2017-12-12 17:29:18 -080030LOCAL_AAPT2_ONLY := true
Chris Banes19b2eea2015-01-27 11:07:52 +000031LOCAL_MODULE := android-support-design
Chris Banes82b55492016-01-22 11:11:47 +000032LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
Alan Viverette9439d702016-10-25 14:45:10 +010033LOCAL_SRC_FILES := \
34 $(call all-java-files-under,base) \
Alan Viverette9439d702016-10-25 14:45:10 +010035 $(call all-java-files-under,lollipop) \
36 $(call all-java-files-under,src)
37LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Aurimas Liutikas7412f7f2017-12-12 17:29:18 -080038LOCAL_JAVA_LIBRARIES := \
39 android-support-annotations
Kirill Grouchnikov1c8c6662016-09-09 13:39:02 -070040LOCAL_SHARED_ANDROID_LIBRARIES := \
Alan Viverette9439d702016-10-25 14:45:10 +010041 android-support-transition \
42 android-support-v7-appcompat \
43 android-support-v7-recyclerview \
Kirill Grouchnikova3f5b462017-07-31 16:03:02 -040044 android-support-compat \
45 android-support-media-compat \
46 android-support-core-utils \
47 android-support-core-ui \
Aurimas Liutikas7412f7f2017-12-12 17:29:18 -080048 android-support-fragment
Neil Fullere1cd5a12016-02-25 11:41:17 +000049LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Alan Viverette9439d702016-10-25 14:45:10 +010050LOCAL_AAPT_FLAGS := \
51 --no-version-vectors \
52 --add-javadoc-annotation doconly
Aurimas Liutikas7412f7f2017-12-12 17:29:18 -080053LOCAL_EXPORT_PROGUARD_FLAG_FILES := proguard-rules.pro
Chris Banes19b2eea2015-01-27 11:07:52 +000054include $(BUILD_STATIC_JAVA_LIBRARY)