1# Copyright (C) 2022 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 15LOCAL_DIR := $(GET_LOCAL_DIR) 16 17MODULE := $(LOCAL_DIR) 18 19 20 21IFACE_USE_PREBUILTS := 1 22 23ifeq ($(IFACE_USE_PREBUILTS),1) 24 25 26# for the Bn (Binder Native), i.e. the service, we shall not link in 27# the client c wrapper (however the service can reuse the c wrapper header). 28 29MODULE_SRCS := \ 30 $(LOCAL_DIR)/../generated/IBootDone.cpp \ 31 32MODULE_LIBRARY_EXPORTED_DEPS += \ 33 trusty/user/base/experimental/lib/tidl \ 34 35MODULE_EXPORT_INCLUDES += \ 36 $(LOCAL_DIR)/../generated/include 37 38include make/library.mk 39 40else 41 42AIDL_CWRAPPER_DOMAIN := trusty_user 43 44MODULE_AIDLS := \ 45 $(LOCAL_DIR)/../IBootDone.aidl \ 46 47AIDL_CWRAPPER_BN := $(findstring Bn, $(shell basename $(LOCAL_DIR))) 48 49include make/aidl.mk 50endif 51