• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15ifneq ($(TARGET_BUILD_PDK), true)
16
17LOCAL_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  LOCAL_PRIVATE_PLATFORM_APIS := true
26
27  LOCAL_SRC_FILES := $(call all-java-files-under, src)
28
29  LOCAL_USE_AAPT2 := true
30
31  LOCAL_JAVA_LIBRARIES += android.car
32
33  LOCAL_STATIC_ANDROID_LIBRARIES := \
34      android-support-car \
35      android-support-v7-preference \
36      android-support-v14-preference \
37      android-arch-lifecycle-extensions \
38      car-list \
39      car-settings-lib \
40      setup-wizard-lib-gingerbread-compat \
41      SettingsLib
42
43  LOCAL_RESOURCE_DIR := \
44      $(LOCAL_PATH)/res
45
46  LOCAL_CERTIFICATE := platform
47
48  LOCAL_MODULE_TAGS := optional
49
50  LOCAL_PROGUARD_ENABLED := disabled
51
52  LOCAL_PRIVILEGED_MODULE := true
53
54  LOCAL_DEX_PREOPT := false
55
56  LOCAL_STATIC_JAVA_LIBRARIES += jsr305
57
58  LOCAL_DX_FLAGS := --multi-dex
59
60  ifdef DISABLE_AOSP_PHONE_SETTING
61    ifeq ($(DISABLE_AOSP_PHONE_SETTING),true)
62      # This will hide AOSP phone setting.
63      LOCAL_OVERRIDES_PACKAGES := Settings
64    endif
65  endif
66  include $(BUILD_PACKAGE)
67endif
68
69# Use the following include to make our test apk.
70ifeq (,$(ONE_SHOT_MAKEFILE))
71include $(call first-makefiles-under, $(LOCAL_PATH))
72endif
73
74endif
75