blob: 08f8815bd8d02e00349c17de6705f8dc4feb6dee [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
Chris Banes19b2eea2015-01-27 11:07:52 +000030LOCAL_MODULE := android-support-design
Chris Banes82b55492016-01-22 11:11:47 +000031LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
Alan Viverette9439d702016-10-25 14:45:10 +010032LOCAL_SRC_FILES := \
33 $(call all-java-files-under,base) \
Alan Viverette9439d702016-10-25 14:45:10 +010034 $(call all-java-files-under,lollipop) \
35 $(call all-java-files-under,src)
36LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Kirill Grouchnikov1c8c6662016-09-09 13:39:02 -070037LOCAL_SHARED_ANDROID_LIBRARIES := \
Alan Viverette9439d702016-10-25 14:45:10 +010038 android-support-transition \
39 android-support-v7-appcompat \
40 android-support-v7-recyclerview \
41 android-support-v4 \
42 android-support-annotations
Neil Fullere1cd5a12016-02-25 11:41:17 +000043LOCAL_JAVA_LANGUAGE_VERSION := 1.7
Alan Viverette9439d702016-10-25 14:45:10 +010044LOCAL_AAPT_FLAGS := \
45 --no-version-vectors \
46 --add-javadoc-annotation doconly
Chris Banes19b2eea2015-01-27 11:07:52 +000047include $(BUILD_STATIC_JAVA_LIBRARY)