1 # Copyright (C) 2017 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH := $(call my-dir) 16 17 include $(CLEAR_VARS) 18 19 # To avoid build errors, build empty package for non-platform builds 20 # (for example, projected). See b/30064991 21 ifeq (,$(TARGET_BUILD_APPS)) 22 LOCAL_PACKAGE_NAME := CarSettings 23 24 LOCAL_SRC_FILES := $(call all-java-files-under, src) 25 26 LOCAL_STATIC_ANDROID_LIBRARIES := \ 27 android-support-v7-recyclerview \ 28 android-support-v7-appcompat \ 29 android-support-v7-preference \ 30 android-support-v14-preference \ 31 android-support-design 32 33 LOCAL_RESOURCE_DIR := \ 34 $(LOCAL_PATH)/res \ 35 frameworks/support/v7/preference/res \ 36 frameworks/support/v14/preference/res \ 37 frameworks/support/design/res 38 39 include packages/apps/Car/libs/car-stream-ui-lib/car-stream-ui-lib.mk 40 41 LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.preference 42 LOCAL_AAPT_FLAGS += --extra-packages android.support.v14.preference 43 LOCAL_AAPT_FLAGS += --extra-packages android.support.design 44 45 LOCAL_CERTIFICATE := platform 46 47 LOCAL_MODULE_TAGS := optional 48 49 LOCAL_PROGUARD_ENABLED := disabled 50 51 LOCAL_PRIVILEGED_MODULE := true 52 53 LOCAL_DEX_PREOPT := false 54 55 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 \ 56 jsr305 57 58 include packages/services/Car/car-support-lib/car-support.mk 59 include frameworks/base/packages/SettingsLib/common.mk 60 61 include $(BUILD_PACKAGE) 62 endif 63 64 # Use the following include to make our test apk. 65 ifeq (,$(ONE_SHOT_MAKEFILE)) 66 include $(call all-makefiles-under,$(LOCAL_PATH)) 67 endif 68 69