1# Copyright (C) 2019 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
16LOCAL_DIR := $(GET_LOCAL_DIR)
17
18MODULE := $(LOCAL_DIR)
19
20LIBTEEUI_ROOT := $(TRUSTY_TOP)/system/teeui/libteeui
21FREETYPE_ROOT := $(TRUSTY_TOP)/external/freetype
22
23MODULE_SRCS += \
24	$(LIBTEEUI_ROOT)/prebuilt/localization/ConfirmationUITranslations.cpp \
25	$(LIBTEEUI_ROOT)/src/cbor.cpp \
26	$(LIBTEEUI_ROOT)/src/button.cpp \
27	$(LIBTEEUI_ROOT)/src/font_rendering.cpp \
28	$(LIBTEEUI_ROOT)/src/generic_messages.cpp \
29	$(LIBTEEUI_ROOT)/src/label.cpp \
30	$(LIBTEEUI_ROOT)/src/msg_formatting.cpp \
31	$(LIBTEEUI_ROOT)/src/utils.cpp \
32
33MODULE_EXPORT_INCLUDES += \
34	$(LIBTEEUI_ROOT)/include \
35	$(LIBTEEUI_ROOT)/prebuilt/localization/include \
36
37MODULE_CPPFLAGS := -std=c++17 -fno-short-enums -fno-exceptions
38MODULE_CPPFLAGS += -fno-threadsafe-statics -fno-rtti -DNDEBUG
39
40MODULE_COMPILEFLAGS := -U__ANDROID__
41
42MODULE_LIBRARY_DEPS += \
43	trusty/user/base/lib/libc-trusty \
44	trusty/user/base/lib/libstdc++-trusty \
45	trusty/user/base/lib/freetype-stub \
46	$(FREETYPE_ROOT)/devel-teeui \
47
48include make/library.mk
49