1# 2# Copyright (C) 2015 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_PATH:= $(call my-dir) 18include $(CLEAR_VARS) 19 20LOCAL_MODULE_TAGS := optional 21 22include $(LOCAL_PATH)/version.mk 23 24LOCAL_SRC_FILES := $(call all-java-files-under, src) 25 26LOCAL_PACKAGE_NAME := LiveTv 27 28# It is required for com.android.providers.tv.permission.ALL_EPG_DATA 29LOCAL_PRIVILEGED_MODULE := true 30 31LOCAL_SDK_VERSION := system_current 32LOCAL_MIN_SDK_VERSION := 23 # M 33LOCAL_RESOURCE_DIR := \ 34 $(LOCAL_PATH)/res \ 35 $(LOCAL_PATH)/common/res \ 36 $(TOP)/frameworks/support/v17/leanback/res \ 37 $(TOP)/frameworks/support/v7/recyclerview/res \ 38 39LOCAL_STATIC_JAVA_LIBRARIES := \ 40 android-support-annotations \ 41 android-support-v4 \ 42 android-support-v7-palette \ 43 android-support-v7-recyclerview \ 44 android-support-v17-leanback \ 45 tv-common \ 46 47LOCAL_JAVACFLAGS := -Xlint:deprecation -Xlint:unchecked 48 49 50LOCAL_AAPT_FLAGS := --auto-add-overlay \ 51 --extra-packages android.support.v7.recyclerview \ 52 --extra-packages android.support.v17.leanback \ 53 --extra-packages com.android.tv.common \ 54 --version-name "$(version_name_package)" \ 55 --version-code $(version_code_package) \ 56 57LOCAL_PROGUARD_FLAG_FILES := proguard.flags 58 59 60LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/usbtuner/res 61LOCAL_STATIC_JAVA_LIBRARIES += usbtuner-tvinput 62LOCAL_JNI_SHARED_LIBRARIES := libtunertvinput_jni 63LOCAL_AAPT_FLAGS += --extra-packages com.android.usbtuner 64 65include $(BUILD_PACKAGE) 66 67include $(call all-makefiles-under,$(LOCAL_PATH)) 68