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 17 LOCAL_PATH:= $(call my-dir) 18 include $(CLEAR_VARS) 19 20 LOCAL_MODULE_TAGS := optional 21 22 include $(LOCAL_PATH)/version.mk 23 24 LOCAL_SRC_FILES := $(call all-java-files-under, src) 25 26 LOCAL_PACKAGE_NAME := LiveTv 27 28 # It is required for com.android.providers.tv.permission.ALL_EPG_DATA 29 LOCAL_PRIVILEGED_MODULE := true 30 31 LOCAL_SDK_VERSION := system_current 32 LOCAL_MIN_SDK_VERSION := 23 # M 33 LOCAL_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 39 LOCAL_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 47 LOCAL_JAVACFLAGS := -Xlint:deprecation -Xlint:unchecked 48 49 50 LOCAL_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 57 LOCAL_PROGUARD_FLAG_FILES := proguard.flags 58 59 60 LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/usbtuner/res 61 LOCAL_STATIC_JAVA_LIBRARIES += usbtuner-tvinput 62 LOCAL_JNI_SHARED_LIBRARIES := libtunertvinput_jni 63 LOCAL_AAPT_FLAGS += --extra-packages com.android.usbtuner 64 65 include $(BUILD_PACKAGE) 66 67 include $(call all-makefiles-under,$(LOCAL_PATH)) 68