1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE_TAGS := optional
5LOCAL_SDK_VERSION := 21
6
7LOCAL_SRC_FILES := $(call all-java-files-under, src)
8
9
10LOCAL_JAVA_LIBRARIES := \
11    android-support-v4
12
13LOCAL_MODULE := android-support-recommendation
14
15LOCAL_JAVA_LANGUAGE_VERSION := 1.7
16include $(BUILD_STATIC_JAVA_LIBRARY)
17
18# ===========================================================
19# Common Droiddoc vars
20recommendation.docs.src_files := \
21    $(call all-java-files-under, src) \
22    $(call all-html-files-under, src)
23recommendation.docs.java_libraries := \
24    android-support-v4 \
25    android-support-recommendation
26
27# Documentation
28# ===========================================================
29include $(CLEAR_VARS)
30
31LOCAL_MODULE := android-support-recommendation
32LOCAL_MODULE_CLASS := JAVA_LIBRARIES
33LOCAL_MODULE_TAGS := optional
34
35LOCAL_SRC_FILES := $(recommendation.docs.src_files)
36
37LOCAL_SDK_VERSION := 21
38LOCAL_IS_HOST_MODULE := false
39LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := build/tools/droiddoc/templates-sdk
40
41LOCAL_JAVA_LIBRARIES := $(recommendation.docs.java_libraries)
42
43LOCAL_DROIDDOC_OPTIONS := \
44    -offlinemode \
45    -hdf android.whichdoc offline \
46    -federate Android http://developer.android.com \
47    -federationapi Android prebuilts/sdk/api/21.txt \
48    -hide 113
49
50include $(BUILD_DROIDDOC)
51
52
53# API Check
54# ---------------------------------------------
55support_module := $(LOCAL_MODULE)
56support_module_api_dir := $(LOCAL_PATH)/api
57support_module_src_files := $(recommendation.docs.src_files)
58support_module_java_libraries := $(recommendation.docs.java_libraries)
59support_module_java_packages := android.support.app.recommendation*
60include $(SUPPORT_API_CHECK)
61