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 | |
Vitalii Tomkiv | 9aef1ae | 2016-03-30 13:05:59 -0700 | [diff] [blame] | 24 | ifeq ($(BOARD_IS_AUTOMOTIVE), true) |
Nan Zhang | 924b090 | 2018-07-19 17:04:18 -0700 | [diff] [blame] | 25 | full_classes_jar := $(call intermediates-dir-for,JAVA_LIBRARIES,android.car,,COMMON)/classes.jar |
| 26 | $(call dist-for-goals,dist_files,$(full_classes_jar):android.car.jar) |
Sumanth Mara | ead982f | 2019-05-16 14:28:58 -0700 | [diff] [blame] | 27 | |
| 28 | ifeq ($(EMMA_INSTRUMENT),true) |
| 29 | # Put XML formatted API files in the dist dir. |
| 30 | car_api_xmls := $(addprefix $(TARGET_OUT_COMMON_INTERMEDIATES)/,car-api.xml car-system-api.xml car-test-api.xml) |
| 31 | $(car_api_xmls): $(TARGET_OUT_COMMON_INTERMEDIATES)/car-%api.xml : packages/services/Car/car-lib/api/%current.txt $(APICHECK) |
| 32 | $(hide) echo "Converting API file to XML: $@" |
| 33 | $(hide) mkdir -p $(dir $@) |
| 34 | $(hide) $(APICHECK_COMMAND) -convert2xml $< $@ |
| 35 | |
| 36 | $(call dist-for-goals, dist_files, $(car_api_xmls)) |
| 37 | car_api_xmls := |
| 38 | endif #EMMA_INSTRUMENT |
| 39 | |
| 40 | endif #BOARD_IS_AUTOMOTIVE |
Vitalii Tomkiv | 9aef1ae | 2016-03-30 13:05:59 -0700 | [diff] [blame] | 41 | |
Anthony Chen | 7bd39e9 | 2018-04-02 13:13:53 -0700 | [diff] [blame] | 42 | endif #TARGET_BUILD_PDK |