Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 1 | # 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
| 17 | # Here is the final static library that apps can link against. |
| 18 | # Applications that use this library must include it with |
| 19 | # |
| 20 | # LOCAL_STATIC_ANDROID_LIBRARIES := \ |
| 21 | # android-support-recommendation \ |
| 22 | # android-support-v4 |
| 23 | # |
Jose Lima | 9f7b11d | 2015-05-20 16:35:21 -0700 | [diff] [blame] | 24 | include $(CLEAR_VARS) |
Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 25 | LOCAL_USE_AAPT2 := true |
Jose Lima | 9f7b11d | 2015-05-20 16:35:21 -0700 | [diff] [blame] | 26 | LOCAL_MODULE := android-support-recommendation |
Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 27 | LOCAL_SDK_VERSION := 21 |
| 28 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 29 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 30 | LOCAL_SHARED_ANDROID_LIBRARIES := \ |
| 31 | android-support-v4 \ |
| 32 | android-support-annotations |
Neil Fuller | e1cd5a1 | 2016-02-25 11:41:17 +0000 | [diff] [blame] | 33 | LOCAL_JAVA_LANGUAGE_VERSION := 1.7 |
Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 34 | LOCAL_AAPT_FLAGS := --add-javadoc-annotation doconly |
Jose Lima | 9f7b11d | 2015-05-20 16:35:21 -0700 | [diff] [blame] | 35 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 36 | |
| 37 | # =========================================================== |
| 38 | # Common Droiddoc vars |
| 39 | recommendation.docs.src_files := \ |
| 40 | $(call all-java-files-under, src) \ |
| 41 | $(call all-html-files-under, src) |
| 42 | recommendation.docs.java_libraries := \ |
Jose Lima | 9f7b11d | 2015-05-20 16:35:21 -0700 | [diff] [blame] | 43 | android-support-v4 \ |
| 44 | android-support-recommendation |
| 45 | |
| 46 | # Documentation |
| 47 | # =========================================================== |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_MODULE := android-support-recommendation |
| 51 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 52 | LOCAL_MODULE_TAGS := optional |
| 53 | |
| 54 | LOCAL_SRC_FILES := $(recommendation.docs.src_files) |
| 55 | |
| 56 | LOCAL_SDK_VERSION := 21 |
| 57 | LOCAL_IS_HOST_MODULE := false |
| 58 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := build/tools/droiddoc/templates-sdk |
| 59 | |
Alan Viverette | 9439d70 | 2016-10-25 14:45:10 +0100 | [diff] [blame] | 60 | LOCAL_SHARED_ANDROID_LIBRARIES := $(recommendation.docs.java_libraries) |
Jose Lima | 9f7b11d | 2015-05-20 16:35:21 -0700 | [diff] [blame] | 61 | |
| 62 | LOCAL_DROIDDOC_OPTIONS := \ |
| 63 | -offlinemode \ |
| 64 | -hdf android.whichdoc offline \ |
| 65 | -federate Android http://developer.android.com \ |
| 66 | -federationapi Android prebuilts/sdk/api/21.txt \ |
| 67 | -hide 113 |
| 68 | |
| 69 | include $(BUILD_DROIDDOC) |
| 70 | |