blob: d9a77840bf338903382cb9de37b62d80871af4aa [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
Lujiang Xuea12477f2018-04-10 08:20:29 -070025 LOCAL_PRIVATE_PLATFORM_APIS := true
roger xue843fbc42017-02-22 16:20:08 -080026
27 LOCAL_SRC_FILES := $(call all-java-files-under, src)
28
Aurimas Liutikas5b779822017-11-14 18:29:17 -080029 LOCAL_USE_AAPT2 := true
30
roger xue843fbc42017-02-22 16:20:08 -080031 LOCAL_STATIC_ANDROID_LIBRARIES := \
Anthony Cheneb642fe2018-04-04 17:43:16 -070032 android-support-car \
roger xue843fbc42017-02-22 16:20:08 -080033 android-support-v7-preference \
Alan Viverettee852dbd2018-02-01 15:52:27 -050034 android-support-v14-preference
roger xue843fbc42017-02-22 16:20:08 -080035
36 LOCAL_RESOURCE_DIR := \
Aurimas Liutikas5b779822017-11-14 18:29:17 -080037 $(LOCAL_PATH)/res
roger xue843fbc42017-02-22 16:20:08 -080038
roger xue843fbc42017-02-22 16:20:08 -080039 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 Liutikas5b779822017-11-14 18:29:17 -080049 LOCAL_STATIC_JAVA_LIBRARIES += jsr305
roger xue843fbc42017-02-22 16:20:08 -080050
Enrico Granata293015e2017-12-12 12:16:58 -080051 LOCAL_DX_FLAGS := --multi-dex
52
kevinjmcf8cef52017-09-18 14:53:28 -070053 include packages/apps/Car/libs/car-list/car-list.mk
Rakesh Iyerd28162c2017-03-27 14:44:13 -070054 include packages/apps/Car/libs/car-apps-common/car-apps-common.mk
Rodrigo Lagos47248672018-03-08 13:34:21 -080055 include packages/apps/Car/libs/car-settings-lib/car-settings-lib.mk
roger xue843fbc42017-02-22 16:20:08 -080056 include packages/services/Car/car-support-lib/car-support.mk
Ying96da0412018-02-07 12:09:10 -080057 include frameworks/opt/setupwizard/library/common-gingerbread.mk
roger xue843fbc42017-02-22 16:20:08 -080058 include frameworks/base/packages/SettingsLib/common.mk
59
60 include $(BUILD_PACKAGE)
61endif
62
63# Use the following include to make our test apk.
64ifeq (,$(ONE_SHOT_MAKEFILE))
James Lemieux36aeaf32017-12-14 16:08:04 -080065include $(call first-makefiles-under, $(LOCAL_PATH))
roger xue843fbc42017-02-22 16:20:08 -080066endif
67
Bryan Eyler3f553712017-06-21 17:30:21 -070068endif