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
17ifneq ($(TARGET_BUILD_PDK), true)
18
19LOCAL_PATH:= $(call my-dir)
20
21# Proto dependencies
22include $(CLEAR_VARS)
23
24LOCAL_SRC_FILES := $(call all-proto-files-under, proto)
25LOCAL_MODULE := LocalMediaPlayer-proto
26LOCAL_PROTOC_OPTIMIZE_TYPE := nano
27LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/proto
28
29include $(BUILD_STATIC_JAVA_LIBRARY)
30
31
32# Actual Package
33
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES := $(call all-java-files-under, src)
37
38LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
39
40LOCAL_PACKAGE_NAME := LocalMediaPlayer
41LOCAL_PRIVATE_PLATFORM_APIS := true
42
43LOCAL_CERTIFICATE := platform
44
45LOCAL_MODULE_TAGS := optional
46
47LOCAL_PRIVILEGED_MODULE := true
48
49LOCAL_STATIC_JAVA_LIBRARIES += \
50        LocalMediaPlayer-proto
51
52LOCAL_STATIC_ANDROID_LIBRARIES := \
53        android-support-car \
54        android-support-v4
55
56LOCAL_USE_AAPT2 := true
57
58LOCAL_PROGUARD_ENABLED := disabled
59
60LOCAL_DEX_PREOPT := false
61
62include packages/services/Car/car-support-lib/car-support.mk
63
64include $(BUILD_PACKAGE)
65
66endif
67