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