1# Copyright (C) 2023 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 16ifeq (true,$(call TOBOOL,$(CONFIRMATIONUI_DISABLED))) 17$(error Trying to build tests for DISABLED confirmationui) 18endif 19 20LOCAL_DIR := $(GET_LOCAL_DIR) 21 22MODULE := $(LOCAL_DIR) 23 24MANIFEST := $(LOCAL_DIR)/manifest.json 25 26MODULE_INCLUDES += \ 27 $(LOCAL_DIR)/../include \ 28 29MODULE_SRCS += \ 30 $(LOCAL_DIR)/main.cpp \ 31 32MODULE_LIBRARY_DEPS += \ 33 trusty/user/base/lib/libc-trusty \ 34 trusty/user/base/lib/unittest \ 35 trusty/user/base/lib/teeui-stub \ 36 37# Use the example layouts unless we have a vendor specific layout defined. 38ifeq ($(CONFIRMATIONUI_LAYOUTS),) 39MODULE_LIBRARY_DEPS += $(LOCAL_DIR)/../examples/layouts 40else 41MODULE_LIBRARY_DEPS += $(CONFIRMATIONUI_LAYOUTS) 42endif 43 44ifeq ($(CONFIRMATIONUI_DEVICE_PARAMS),) 45MODULE_LIBRARY_DEPS += $(LOCAL_DIR)/../examples/devices/emulator 46else 47MODULE_LIBRARY_DEPS += $(CONFIRMATIONUI_DEVICE_PARAMS) 48endif 49 50include make/trusted_app.mk 51