• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2015 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#
16
17#disble build in PDK, missing aidl import breaks build
18ifneq ($(TARGET_BUILD_PDK),true)
19
20LOCAL_PATH:= $(call my-dir)
21
22include $(CLEAR_VARS)
23
24LOCAL_MODULE := android.car
25LOCAL_MODULE_TAGS := optional
26
27ifneq ($(TARGET_USES_CAR_FUTURE_FEATURES),true)
28#TODO need a tool to generate proguard rule to drop all items under @FutureFeature
29#LOCAL_PROGUARD_ENABLED := custom
30#LOCAL_PROGUARD_FLAG_FILES := proguard_drop_future.flags
31endif
32
33car_lib_sources := $(call all-java-files-under, src)
34ifeq ($(TARGET_USES_CAR_FUTURE_FEATURES),true)
35car_lib_sources += $(call all-java-files-under, src_feature_future)
36else
37car_lib_sources += $(call all-java-files-under, src_feature_current)
38endif
39car_lib_sources += $(call all-Iaidl-files-under, src)
40
41LOCAL_SRC_FILES := $(car_lib_sources)
42
43ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
44LOCAL_EMMA_INSTRUMENT := true
45endif
46
47include $(BUILD_JAVA_LIBRARY)
48
49ifeq ($(BOARD_IS_AUTOMOTIVE), true)
50$(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE):$(LOCAL_MODULE).jar)
51endif
52
53# API Check
54# ---------------------------------------------
55car_module := $(LOCAL_MODULE)
56car_module_src_files := $(LOCAL_SRC_FILES)
57car_module_api_dir := $(LOCAL_PATH)/api
58car_module_java_libraries := framework
59car_module_include_systemapi := true
60car_module_java_packages := android.car*
61include $(CAR_API_CHECK)
62
63include $(CLEAR_VARS)
64
65LOCAL_MODULE := android.car7
66LOCAL_SRC_FILES := $(car_lib_sources)
67LOCAL_JAVA_LANGUAGE_VERSION := 1.7
68
69ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
70LOCAL_EMMA_INSTRUMENT := true
71endif
72
73include $(BUILD_JAVA_LIBRARY)
74$(call dist-for-goals,dist_files,$(full_classes_jar):$(LOCAL_MODULE).jar)
75
76endif #TARGET_BUILD_PDK
77