• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#
16LOCAL_PATH:= $(call my-dir)
17include $(CLEAR_VARS)
18LOCAL_SRC_FILES := $(call all-java-files-under, src)
19
20LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
21
22include packages/apps/Car/libs/car-stream-ui-lib/car-stream-ui-lib.mk
23include packages/apps/Car/libs/car-apps-common/car-apps-common.mk
24
25include packages/services/Car/car-support-lib/car-support.mk
26
27LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
28LOCAL_STATIC_JAVA_LIBRARIES += car-stream-lib
29
30LOCAL_AAPT_FLAGS += \
31        --auto-add-overlay \
32
33LOCAL_AAPT_FLAGS += --extra-packages com.android.car.radio.service
34LOCAL_STATIC_JAVA_LIBRARIES += car-radio-service
35
36LOCAL_PACKAGE_NAME := Stream
37
38LOCAL_MODULE_TAGS := optional
39
40#TODO: determine if this service should be a privileged module.
41LOCAL_PRIVILEGED_MODULE := true
42
43LOCAL_PROGUARD_ENABLED := disabled
44
45LOCAL_DEX_PREOPT := false
46
47# Include support-v7-cardview, if not already included
48ifeq (,$(findstring android-support-v7-cardview,$(LOCAL_STATIC_JAVA_LIBRARIES)))
49LOCAL_RESOURCE_DIR += frameworks/support/v7/cardview/res
50LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.cardview
51LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-cardview
52endif
53
54# Include support-v7-palette, if not already included
55ifeq (,$(findstring android-support-v7-palette,$(LOCAL_STATIC_JAVA_LIBRARIES)))
56LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.palette
57LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-palette
58endif
59
60# Include android-support-annotations, if not already included
61ifeq (,$(findstring android-support-annotations,$(LOCAL_STATIC_JAVA_LIBRARIES)))
62LOCAL_STATIC_JAVA_LIBRARIES += android-support-annotations
63endif
64
65include $(BUILD_PACKAGE)
66