blob: 68a8e0e443c1ff26596aacc8f0e90112a3ab1d9b [file] [log] [blame]
#
# Copyright (C) 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
include $(LOCAL_PATH)/version.mk
LOCAL_SRC_FILES += $(call all-java-files-under, src)
# TODO(b/77284273): Stop compiling everything at once dagger properly supported in libraries
LOCAL_SRC_FILES += $(call all-java-files-under, common/src)
LOCAL_SRC_FILES += $(call all-proto-files-under, common/src)
LOCAL_SRC_FILES += $(call all-java-files-under, tuner/src)
LOCAL_PACKAGE_NAME := LiveTv
# TODO(b/122608868) turn proguard back on
LOCAL_PROGUARD_ENABLED := disabled
# It is required for com.android.providers.tv.permission.ALL_EPG_DATA
LOCAL_PRIVILEGED_MODULE := true
LOCAL_SDK_VERSION := system_current
LOCAL_MIN_SDK_VERSION := 23 # M
LOCAL_USE_AAPT2 := true
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/res \
$(LOCAL_PATH)/material_res \
$(LOCAL_PATH)/common/res \
$(LOCAL_PATH)/tuner/res \
LOCAL_JAVA_LIBRARIES := \
guava-android-jar \
LOCAL_STATIC_JAVA_LIBRARIES := \
auto-value-jar \
auto-factory-jar \
android-support-annotations \
error-prone-annotations-jar \
jsr330 \
lib-dagger \
lib-exoplayer \
lib-exoplayer-v2-core \
live-tv-tuner-proto \
LOCAL_STATIC_ANDROID_LIBRARIES := \
android-support-compat \
android-support-core-ui \
androidx.tvprovider_tvprovider \
android-support-v4 \
android-support-v7-appcompat \
android-support-v7-palette \
android-support-v7-preference \
android-support-v7-recyclerview \
android-support-v14-preference \
android-support-v17-leanback \
android-support-v17-preference-leanback \
lib-dagger-android \
live-channels-partner-support \
LOCAL_ANNOTATION_PROCESSORS := \
auto-value-jar \
auto-factory-jar \
guava-jre-jar \
lib-dagger-android-processor \
lib-dagger-compiler \
LOCAL_ANNOTATION_PROCESSOR_CLASSES := \
com.google.auto.factory.processor.AutoFactoryProcessor,com.google.auto.value.processor.AutoValueProcessor,dagger.internal.codegen.ComponentProcessor,dagger.android.processor.AndroidProcessor
LOCAL_JAVACFLAGS := -Xlint:deprecation -Xlint:unchecked
LOCAL_AAPT_FLAGS += \
--version-name "$(version_name_package)" \
--version-code $(version_code_package) \
LOCAL_JNI_SHARED_LIBRARIES := libtunertvinput_jni
LOCAL_AAPT_FLAGS += --extra-packages com.android.tv.tuner
LOCAL_AAPT_FLAGS += --extra-packages com.android.tv.common
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))