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