roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 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 | |
Bryan Eyler | 3f55371 | 2017-06-21 17:30:21 -0700 | [diff] [blame] | 15 | ifneq ($(TARGET_BUILD_PDK), true) |
| 16 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | |
| 21 | # To avoid build errors, build empty package for non-platform builds |
| 22 | # (for example, projected). See b/30064991 |
| 23 | ifeq (,$(TARGET_BUILD_APPS)) |
| 24 | LOCAL_PACKAGE_NAME := CarSettings |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 25 | LOCAL_PRIVATE_PLATFORM_APIS := true |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 26 | |
| 27 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 28 | |
Aurimas Liutikas | 5b77982 | 2017-11-14 18:29:17 -0800 | [diff] [blame] | 29 | LOCAL_USE_AAPT2 := true |
| 30 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 31 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Anthony Chen | eb642fe | 2018-04-04 17:43:16 -0700 | [diff] [blame] | 32 | android-support-car \ |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 33 | android-support-v7-preference \ |
Alan Viverette | e852dbd | 2018-02-01 15:52:27 -0500 | [diff] [blame] | 34 | android-support-v14-preference |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 35 | |
| 36 | LOCAL_RESOURCE_DIR := \ |
Aurimas Liutikas | 5b77982 | 2017-11-14 18:29:17 -0800 | [diff] [blame] | 37 | $(LOCAL_PATH)/res |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 38 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 39 | LOCAL_CERTIFICATE := platform |
| 40 | |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | |
| 43 | LOCAL_PROGUARD_ENABLED := disabled |
| 44 | |
| 45 | LOCAL_PRIVILEGED_MODULE := true |
| 46 | |
| 47 | LOCAL_DEX_PREOPT := false |
| 48 | |
Aurimas Liutikas | 5b77982 | 2017-11-14 18:29:17 -0800 | [diff] [blame] | 49 | LOCAL_STATIC_JAVA_LIBRARIES += jsr305 |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 50 | |
Enrico Granata | 293015e | 2017-12-12 12:16:58 -0800 | [diff] [blame] | 51 | LOCAL_DX_FLAGS := --multi-dex |
| 52 | |
kevinjm | cf8cef5 | 2017-09-18 14:53:28 -0700 | [diff] [blame] | 53 | include packages/apps/Car/libs/car-list/car-list.mk |
Rakesh Iyer | d28162c | 2017-03-27 14:44:13 -0700 | [diff] [blame] | 54 | include packages/apps/Car/libs/car-apps-common/car-apps-common.mk |
Rodrigo Lagos | 4724867 | 2018-03-08 13:34:21 -0800 | [diff] [blame] | 55 | include packages/apps/Car/libs/car-settings-lib/car-settings-lib.mk |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 56 | include packages/services/Car/car-support-lib/car-support.mk |
Ying | 96da041 | 2018-02-07 12:09:10 -0800 | [diff] [blame] | 57 | include frameworks/opt/setupwizard/library/common-gingerbread.mk |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 58 | include frameworks/base/packages/SettingsLib/common.mk |
| 59 | |
| 60 | include $(BUILD_PACKAGE) |
| 61 | endif |
| 62 | |
| 63 | # Use the following include to make our test apk. |
| 64 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
James Lemieux | 36aeaf3 | 2017-12-14 16:08:04 -0800 | [diff] [blame] | 65 | include $(call first-makefiles-under, $(LOCAL_PATH)) |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 66 | endif |
| 67 | |
Bryan Eyler | 3f55371 | 2017-06-21 17:30:21 -0700 | [diff] [blame] | 68 | endif |