Ayrton Munoz | 9c912e9 | 2022-12-20 09:44:43 -0500 | [diff] [blame] | 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 | # |
| 15 | |
| 16 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 17 | |
| 18 | MODULE := $(LOCAL_DIR) |
| 19 | |
| 20 | LIBBINDER_DIR := frameworks/native/libs/binder |
| 21 | LIBBASE_DIR := system/libbase |
| 22 | LIBCUTILS_DIR := system/core/libcutils |
| 23 | LIBUTILS_DIR := system/core/libutils |
| 24 | FMTLIB_DIR := external/fmtlib |
| 25 | |
| 26 | MODULE_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 Moreland | 8f91fe5 | 2023-10-09 22:08:43 +0000 | [diff] [blame] | 40 | $(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 Munoz | 9c912e9 | 2022-12-20 09:44:43 -0500 | [diff] [blame] | 48 | $(LIBUTILS_DIR)/misc.cpp \ |
Ayrton Munoz | 9c912e9 | 2022-12-20 09:44:43 -0500 | [diff] [blame] | 49 | |
| 50 | MODULE_DEFINES += \ |
| 51 | LK_DEBUGLEVEL_NO_ALIASES=1 \ |
| 52 | |
| 53 | MODULE_INCLUDES += \ |
| 54 | $(LOCAL_DIR)/.. \ |
| 55 | |
| 56 | GLOBAL_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 | |
| 66 | GLOBAL_COMPILEFLAGS += \ |
| 67 | -DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION \ |
| 68 | -DBINDER_NO_KERNEL_IPC \ |
| 69 | -DBINDER_RPC_SINGLE_THREADED \ |
| 70 | -D__ANDROID_VNDK__ \ |
| 71 | |
| 72 | MODULE_DEPS += \ |
| 73 | trusty/kernel/lib/libcxx-trusty \ |
| 74 | trusty/kernel/lib/libcxxabi-trusty \ |
| 75 | |
| 76 | include make/module.mk |