keunyoung | 1ab8e18 | 2015-09-24 09:25:22 -0700 | [diff] [blame] | 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 | |
Keun-young Park | ec7b18f | 2016-02-29 16:49:53 -0800 | [diff] [blame] | 17 | #disble build in PDK, missing aidl import breaks build |
| 18 | ifneq ($(TARGET_BUILD_PDK),true) |
| 19 | |
keunyoung | 1ab8e18 | 2015-09-24 09:25:22 -0700 | [diff] [blame] | 20 | LOCAL_PATH:= $(call my-dir) |
| 21 | |
| 22 | include $(CLEAR_VARS) |
| 23 | |
Keun-young Park | e54ac27 | 2016-02-16 19:02:18 -0800 | [diff] [blame] | 24 | LOCAL_MODULE := android.car |
keunyoung | 1ab8e18 | 2015-09-24 09:25:22 -0700 | [diff] [blame] | 25 | LOCAL_MODULE_TAGS := optional |
| 26 | |
| 27 | LOCAL_SRC_FILES := $(call all-java-files-under, src) $(call all-Iaidl-files-under, src) |
| 28 | |
Keun-young Park | e54ac27 | 2016-02-16 19:02:18 -0800 | [diff] [blame] | 29 | include $(BUILD_JAVA_LIBRARY) |
Keun-young Park | ec7b18f | 2016-02-29 16:49:53 -0800 | [diff] [blame] | 30 | |
Vitalii Tomkiv | 9aef1ae | 2016-03-30 13:05:59 -0700 | [diff] [blame] | 31 | ifeq ($(BOARD_IS_AUTOMOTIVE), true) |
| 32 | $(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE):$(LOCAL_MODULE).jar) |
| 33 | endif |
| 34 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 35 | # API Check |
| 36 | # --------------------------------------------- |
| 37 | car_module := $(LOCAL_MODULE) |
| 38 | car_module_src_files := $(LOCAL_SRC_FILES) |
| 39 | car_module_api_dir := $(LOCAL_PATH)/api |
| 40 | car_module_java_libraries := framework |
| 41 | car_module_include_systemapi := true |
| 42 | car_module_java_packages := android.car* |
| 43 | include $(CAR_API_CHECK) |
| 44 | |
Keun-young Park | ec7b18f | 2016-02-29 16:49:53 -0800 | [diff] [blame] | 45 | endif #TARGET_BUILD_PDK |