1# 2# Copyright (C) 2016 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) 18 19# Proto dependencies 20include $(CLEAR_VARS) 21 22LOCAL_SRC_FILES := $(call all-proto-files-under, proto) 23LOCAL_MODULE := LocalMediaPlayer-proto 24LOCAL_PROTOC_OPTIMIZE_TYPE := nano 25LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/proto 26 27include $(BUILD_STATIC_JAVA_LIBRARY) 28 29 30# Actual Package 31 32include $(CLEAR_VARS) 33 34LOCAL_SRC_FILES := $(call all-java-files-under, src) 35 36LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 37 38LOCAL_PACKAGE_NAME := LocalMediaPlayer 39 40LOCAL_CERTIFICATE := platform 41 42LOCAL_MODULE_TAGS := optional 43 44LOCAL_PRIVILEGED_MODULE := true 45 46include packages/apps/Car/libs/car-stream-ui-lib/car-stream-ui-lib.mk 47 48LOCAL_STATIC_JAVA_LIBRARIES += \ 49 car-stream-lib \ 50 LocalMediaPlayer-proto 51 52LOCAL_STATIC_ANDROID_LIBRARIES := \ 53 android-support-v4 \ 54 android-support-design 55 56LOCAL_USE_AAPT2 := true 57 58# Include support-v7-appcompat, if not already included 59ifeq (,$(findstring android-support-v7-appcompat,$(LOCAL_STATIC_JAVA_LIBRARIES))) 60LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res 61LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat 62LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat 63endif 64 65LOCAL_PROGUARD_ENABLED := disabled 66 67LOCAL_DEX_PREOPT := false 68 69include packages/services/Car/car-support-lib/car-support.mk 70 71include $(BUILD_PACKAGE) 72