Android.mk revision 55c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7
1b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# Copyright (C) 2014 The Android Open Source Project 2b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# 3b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# Licensed under the Apache License, Version 2.0 (the "License"); 4b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# you may not use this file except in compliance with the License. 5b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# You may obtain a copy of the License at 6b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# 7b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# http://www.apache.org/licenses/LICENSE-2.0 8b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# 9b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# Unless required by applicable law or agreed to in writing, software 10b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# distributed under the License is distributed on an "AS IS" BASIS, 11b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# See the License for the specific language governing permissions and 13b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# limitations under the License. 14b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn 15b9537aff4a6ff5231030799cdaf931c27fb9579bTim KilbournLOCAL_PATH:= $(call my-dir) 16b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn 1755c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# Build the resources using the current SDK version. 1855c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# We do this here because the final static library must be compiled with an older 1955c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# SDK version than the resources. The resources library and the R class that it 2055c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# contains will not be linked into the final static library. 2155c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stoutinclude $(CLEAR_VARS) 2255c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_MODULE := android-support-v17-leanback-res 2355c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_SDK_VERSION := current 2455c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_SRC_FILES := $(call all-java-files-under, dummy) 2555c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 2655c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_AAPT_FLAGS := \ 2755c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout --auto-add-overlay 2855c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_JAR_EXCLUDE_FILES := none 2955c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stoutinclude $(BUILD_STATIC_JAVA_LIBRARY) 3055c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout 3155c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# ----------------------------------------------------------------------- 3255c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout 3355c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# A helper sub-library that makes direct use of KitKat APIs. 3455c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stoutinclude $(CLEAR_VARS) 3555c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_MODULE := android-support-v17-leanback-kitkat 3655c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_SDK_VERSION := 19 3755c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_SRC_FILES := $(call all-java-files-under, kitkat) 3855c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_JAVA_LIBRARIES := android-support-v17-leanback-res 3955c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stoutinclude $(BUILD_STATIC_JAVA_LIBRARY) 4055c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout 4155c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# ----------------------------------------------------------------------- 42b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn 43b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# Here is the final static library that apps can link against. 44b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# The R class is automatically excluded from the generated library. 45b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# Applications that use this library must specify LOCAL_RESOURCE_DIR 46b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# in their makefiles to include the resources in their package. 47b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourninclude $(CLEAR_VARS) 48b9537aff4a6ff5231030799cdaf931c27fb9579bTim KilbournLOCAL_MODULE := android-support-v17-leanback 49b9537aff4a6ff5231030799cdaf931c27fb9579bTim KilbournLOCAL_SDK_VERSION := 17 50b9537aff4a6ff5231030799cdaf931c27fb9579bTim KilbournLOCAL_SRC_FILES := $(call all-java-files-under, java) 5155c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_STATIC_JAVA_LIBRARIES := android-support-v17-leanback-kitkat 5255c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig StoutLOCAL_JAVA_LIBRARIES := \ 5355c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout android-support-v17-leanback-res \ 54b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn android-support-v7-recyclerview 55b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourninclude $(BUILD_STATIC_JAVA_LIBRARY) 56b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn 57b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn 5855c9ee4b612ffc7b4632b1e4b7b7ab4900cd47c7Craig Stout# Documentation 59b9537aff4a6ff5231030799cdaf931c27fb9579bTim Kilbourn# =========================================================== 60e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# include $(CLEAR_VARS) 61e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# 62e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_MODULE := android-support-v17-leanback 63e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_MODULE_CLASS := JAVA_LIBRARIES 64e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# 65e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# intermediates.COMMON := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS),$(LOCAL_MODULE),,COMMON) 66e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# 67e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_SRC_FILES := \ 68e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# $(call all-java-files-under, src) \ 69e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# $(call all-html-files-under, src) 70e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_ADDITONAL_JAVA_DIR := $(intermediates.COMMON)/src 71e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# 72e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_SDK_VERSION := 17 73e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_IS_HOST_MODULE := false 74e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := build/tools/droiddoc/templates-sdk 75e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# 76e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_JAVA_LIBRARIES := android-support-v17-leanback 77e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# 78e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# LOCAL_DROIDDOC_OPTIONS := \ 79e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# -offlinemode \ 80e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# -federate Android http://developer.android.com \ 81e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# -federationapi Android prebuilts/sdk/api/17.txt \ 82e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# -hide 113 83e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# 84e0dcf5bde5ebbf2dd3547e0ff97382066cc34471Tim Kilbourn# include $(BUILD_DROIDDOC) 85