blob: 2209eedbb4e2843789afa80557e65d181a22b444 [file] [log] [blame]
roger xue843fbc42017-02-22 16:20:08 -08001# 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 Eyler3f553712017-06-21 17:30:21 -070015ifneq ($(TARGET_BUILD_PDK), true)
16
roger xue843fbc42017-02-22 16:20:08 -080017LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_VARS)
20
21# To avoid build errors, build empty package for non-platform builds
22# (for example, projected). See b/30064991
23ifeq (,$(TARGET_BUILD_APPS))
24 LOCAL_PACKAGE_NAME := CarSettings
25
26 LOCAL_SRC_FILES := $(call all-java-files-under, src)
27
Aurimas Liutikas5b779822017-11-14 18:29:17 -080028 LOCAL_USE_AAPT2 := true
29
roger xue843fbc42017-02-22 16:20:08 -080030 LOCAL_STATIC_ANDROID_LIBRARIES := \
Aurimas Liutikas5b779822017-11-14 18:29:17 -080031 android-support-v4 \
Anthony Chen34e4c042017-10-31 16:55:23 -070032 android-support-car \
33 android-support-core-ui \
34 android-support-design \
roger xue843fbc42017-02-22 16:20:08 -080035 android-support-v7-appcompat \
36 android-support-v7-preference \
37 android-support-v14-preference \
Anthony Chen34e4c042017-10-31 16:55:23 -070038 android-support-v7-recyclerview
roger xue843fbc42017-02-22 16:20:08 -080039
40 LOCAL_RESOURCE_DIR := \
Aurimas Liutikas5b779822017-11-14 18:29:17 -080041 $(LOCAL_PATH)/res
roger xue843fbc42017-02-22 16:20:08 -080042
roger xue843fbc42017-02-22 16:20:08 -080043 LOCAL_CERTIFICATE := platform
44
45 LOCAL_MODULE_TAGS := optional
46
47 LOCAL_PROGUARD_ENABLED := disabled
48
49 LOCAL_PRIVILEGED_MODULE := true
50
51 LOCAL_DEX_PREOPT := false
52
Aurimas Liutikas5b779822017-11-14 18:29:17 -080053 LOCAL_STATIC_JAVA_LIBRARIES += jsr305
roger xue843fbc42017-02-22 16:20:08 -080054
Enrico Granata293015e2017-12-12 12:16:58 -080055 LOCAL_DX_FLAGS := --multi-dex
56
Rakesh Iyerd28162c2017-03-27 14:44:13 -070057 include packages/apps/Car/libs/car-stream-ui-lib/car-stream-ui-lib.mk
kevinjmcf8cef52017-09-18 14:53:28 -070058 include packages/apps/Car/libs/car-list/car-list.mk
Rakesh Iyerd28162c2017-03-27 14:44:13 -070059 include packages/apps/Car/libs/car-apps-common/car-apps-common.mk
roger xue843fbc42017-02-22 16:20:08 -080060 include packages/services/Car/car-support-lib/car-support.mk
61 include frameworks/base/packages/SettingsLib/common.mk
62
63 include $(BUILD_PACKAGE)
64endif
65
66# Use the following include to make our test apk.
67ifeq (,$(ONE_SHOT_MAKEFILE))
James Lemieux36aeaf32017-12-14 16:08:04 -080068include $(call first-makefiles-under, $(LOCAL_PATH))
roger xue843fbc42017-02-22 16:20:08 -080069endif
70
Bryan Eyler3f553712017-06-21 17:30:21 -070071endif