blob: f6e894c064a2d2b22777b6a10913bf2b950dd722 [file] [log] [blame]
Ayrton Munoz9c912e92022-12-20 09:44:43 -05001# 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#
15
16LOCAL_DIR := $(GET_LOCAL_DIR)
17
18MODULE := $(LOCAL_DIR)
19
20LIBBINDER_DIR := frameworks/native/libs/binder
21LIBBASE_DIR := system/libbase
22LIBCUTILS_DIR := system/core/libcutils
23LIBUTILS_DIR := system/core/libutils
24FMTLIB_DIR := external/fmtlib
25
26MODULE_SRCS := \
27 $(LOCAL_DIR)/../logging.cpp \
28 $(LOCAL_DIR)/../TrustyStatus.cpp \
29 $(LIBBINDER_DIR)/Binder.cpp \
30 $(LIBBINDER_DIR)/BpBinder.cpp \
31 $(LIBBINDER_DIR)/FdTrigger.cpp \
32 $(LIBBINDER_DIR)/IInterface.cpp \
33 $(LIBBINDER_DIR)/IResultReceiver.cpp \
34 $(LIBBINDER_DIR)/Parcel.cpp \
35 $(LIBBINDER_DIR)/Stability.cpp \
36 $(LIBBINDER_DIR)/Status.cpp \
37 $(LIBBINDER_DIR)/Utils.cpp \
38 $(LIBBASE_DIR)/hex.cpp \
39 $(LIBBASE_DIR)/stringprintf.cpp \
Steven Moreland8f91fe52023-10-09 22:08:43 +000040 $(LIBUTILS_DIR)/binder/Errors.cpp \
41 $(LIBUTILS_DIR)/binder/RefBase.cpp \
42 $(LIBUTILS_DIR)/binder/SharedBuffer.cpp \
43 $(LIBUTILS_DIR)/binder/String16.cpp \
44 $(LIBUTILS_DIR)/binder/String8.cpp \
45 $(LIBUTILS_DIR)/binder/StrongPointer.cpp \
46 $(LIBUTILS_DIR)/binder/Unicode.cpp \
47 $(LIBUTILS_DIR)/binder/VectorImpl.cpp \
Ayrton Munoz9c912e92022-12-20 09:44:43 -050048 $(LIBUTILS_DIR)/misc.cpp \
Ayrton Munoz9c912e92022-12-20 09:44:43 -050049
50MODULE_DEFINES += \
51 LK_DEBUGLEVEL_NO_ALIASES=1 \
52
53MODULE_INCLUDES += \
54 $(LOCAL_DIR)/.. \
55
56GLOBAL_INCLUDES += \
57 $(LOCAL_DIR)/include \
58 $(LOCAL_DIR)/../include \
59 $(LIBBINDER_DIR)/include \
60 $(LIBBINDER_DIR)/ndk/include_cpp \
61 $(LIBBASE_DIR)/include \
62 $(LIBCUTILS_DIR)/include \
63 $(LIBUTILS_DIR)/include \
64 $(FMTLIB_DIR)/include \
65
66GLOBAL_COMPILEFLAGS += \
67 -DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION \
68 -DBINDER_NO_KERNEL_IPC \
69 -DBINDER_RPC_SINGLE_THREADED \
70 -D__ANDROID_VNDK__ \
71
72MODULE_DEPS += \
73 trusty/kernel/lib/libcxx-trusty \
74 trusty/kernel/lib/libcxxabi-trusty \
75
76include make/module.mk