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
26MODULE_SRCS := \
27	$(LOCAL_DIR)/../generated/IBootDone.cpp \
28	$(LOCAL_DIR)/../generated/IBootDone_CBp.cpp \
29
30MODULE_LIBRARY_EXPORTED_DEPS += \
31	trusty/user/base/experimental/lib/tidl \
32
33MODULE_EXPORT_INCLUDES += \
34	$(LOCAL_DIR)/../generated/include
35
36include make/library.mk
37
38else
39
40AIDL_CWRAPPER_DOMAIN := trusty_user
41
42MODULE_AIDLS := \
43	$(LOCAL_DIR)/../IBootDone.aidl \
44
45AIDL_CWRAPPER_BN := $(findstring Bn, $(shell basename $(LOCAL_DIR)))
46
47include make/aidl.mk
48endif
49