blob: fe9b8d3c598ee0361bb45bb0850299dcd3727550 [file] [log] [blame]
Aga Madurskadf451a02016-11-21 14:43:02 +00001# 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
Aga Madurska7b42d7d2017-09-25 13:05:38 +010017# Here is a prebuilt library containing all the wearable stubs necessary for ambient mode
18include $(CLEAR_VARS)
19LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
20 prebuilt-com.google.android.wearable-stubs:wear_stubs/com.google.android.wearable-stubs.jar
21include $(BUILD_MULTI_PREBUILT)
22
Aga Madurskadf451a02016-11-21 14:43:02 +000023# Here is the final static library that apps can link against.
24# Applications that use this library must specify
25#
26# LOCAL_STATIC_ANDROID_LIBRARIES := \
Aga Madurska9b028c52017-04-25 15:21:23 +010027# android-support-wear \
Aga Madurska55042202017-02-02 12:40:10 +000028# android-support-core-ui \
29# android-support-v7-recyclerview
Aga Madurskadf451a02016-11-21 14:43:02 +000030#
Aga Madurska7b42d7d2017-09-25 13:05:38 +010031# in their makefiles to include the resources and their dependencies in their package
32
Aga Madurskadf451a02016-11-21 14:43:02 +000033include $(CLEAR_VARS)
34LOCAL_USE_AAPT2 := true
Aga Madurska9b028c52017-04-25 15:21:23 +010035LOCAL_MODULE := android-support-wear
Aga Madurskadf451a02016-11-21 14:43:02 +000036LOCAL_SDK_VERSION := $(SUPPORT_CURRENT_SDK_VERSION)
Aurimas Liutikasf266a0a2017-10-06 14:26:24 -070037LOCAL_SRC_FILES := $(call all-java-files-under,src/main/java)
Aga Madurskadf451a02016-11-21 14:43:02 +000038LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
39LOCAL_SHARED_ANDROID_LIBRARIES := \
Aga Madurska55042202017-02-02 12:40:10 +000040 android-support-core-ui \
41 android-support-annotations \
Sean Kelley36545bb2017-04-04 15:06:53 -070042 android-support-percent \
Aga Madurska55042202017-02-02 12:40:10 +000043 android-support-v7-recyclerview \
44 android-support-v4
Aga Madurska7b42d7d2017-09-25 13:05:38 +010045LOCAL_STATIC_JAVA_LIBRARIES := \
46 prebuilt-com.google.android.wearable-stubs
Aga Madurskadf451a02016-11-21 14:43:02 +000047LOCAL_JAR_EXCLUDE_FILES := none
48LOCAL_JAVA_LANGUAGE_VERSION := 1.7
49LOCAL_AAPT_FLAGS := --add-javadoc-annotation doconly
50include $(BUILD_STATIC_JAVA_LIBRARY)
Aga Madurska7b42d7d2017-09-25 13:05:38 +010051