Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 1 | # Copyright (C) 2021 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 := \ |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 27 | $(LOCAL_DIR)/OS.cpp \ |
| 28 | $(LOCAL_DIR)/RpcServerTrusty.cpp \ |
| 29 | $(LOCAL_DIR)/RpcTransportTipcTrusty.cpp \ |
| 30 | $(LOCAL_DIR)/TrustyStatus.cpp \ |
| 31 | $(LOCAL_DIR)/socket.cpp \ |
| 32 | $(LIBBINDER_DIR)/Binder.cpp \ |
| 33 | $(LIBBINDER_DIR)/BpBinder.cpp \ |
| 34 | $(LIBBINDER_DIR)/FdTrigger.cpp \ |
| 35 | $(LIBBINDER_DIR)/IInterface.cpp \ |
| 36 | $(LIBBINDER_DIR)/IResultReceiver.cpp \ |
| 37 | $(LIBBINDER_DIR)/Parcel.cpp \ |
Andrei Homescu | 24ad36e | 2022-08-04 01:33:33 +0000 | [diff] [blame] | 38 | $(LIBBINDER_DIR)/ParcelFileDescriptor.cpp \ |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 39 | $(LIBBINDER_DIR)/RpcServer.cpp \ |
| 40 | $(LIBBINDER_DIR)/RpcSession.cpp \ |
| 41 | $(LIBBINDER_DIR)/RpcState.cpp \ |
| 42 | $(LIBBINDER_DIR)/Stability.cpp \ |
| 43 | $(LIBBINDER_DIR)/Status.cpp \ |
| 44 | $(LIBBINDER_DIR)/Utils.cpp \ |
Tomasz Wasilczyk | 26db5e4 | 2023-11-02 11:45:11 -0700 | [diff] [blame] | 45 | $(LIBBINDER_DIR)/file.cpp \ |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 46 | $(LIBBASE_DIR)/hex.cpp \ |
| 47 | $(LIBBASE_DIR)/stringprintf.cpp \ |
Steven Moreland | 8f91fe5 | 2023-10-09 22:08:43 +0000 | [diff] [blame] | 48 | $(LIBUTILS_DIR)/binder/Errors.cpp \ |
| 49 | $(LIBUTILS_DIR)/binder/RefBase.cpp \ |
| 50 | $(LIBUTILS_DIR)/binder/SharedBuffer.cpp \ |
| 51 | $(LIBUTILS_DIR)/binder/String16.cpp \ |
| 52 | $(LIBUTILS_DIR)/binder/String8.cpp \ |
| 53 | $(LIBUTILS_DIR)/binder/StrongPointer.cpp \ |
| 54 | $(LIBUTILS_DIR)/binder/Unicode.cpp \ |
| 55 | $(LIBUTILS_DIR)/binder/VectorImpl.cpp \ |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 56 | $(LIBUTILS_DIR)/misc.cpp \ |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 57 | |
| 58 | MODULE_EXPORT_INCLUDES += \ |
| 59 | $(LOCAL_DIR)/include \ |
| 60 | $(LIBBINDER_DIR)/include \ |
| 61 | $(LIBBASE_DIR)/include \ |
| 62 | $(LIBCUTILS_DIR)/include \ |
| 63 | $(LIBUTILS_DIR)/include \ |
| 64 | $(FMTLIB_DIR)/include \ |
| 65 | |
Andrei Homescu | f786a85 | 2022-07-20 22:43:27 +0000 | [diff] [blame] | 66 | # The android/binder_to_string.h header is shared between libbinder and |
| 67 | # libbinder_ndk and included by auto-generated AIDL C++ files |
| 68 | MODULE_EXPORT_INCLUDES += \ |
| 69 | $(LIBBINDER_DIR)/ndk/include_cpp \ |
| 70 | |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 71 | MODULE_EXPORT_COMPILEFLAGS += \ |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 72 | -DBINDER_RPC_SINGLE_THREADED \ |
Tomasz Wasilczyk | 8378013 | 2023-11-29 21:39:29 -0800 | [diff] [blame^] | 73 | -DBINDER_ENABLE_LIBLOG_ASSERT \ |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 74 | -D__ANDROID_VNDK__ \ |
| 75 | |
Andrei Homescu | 9d8adb1 | 2022-08-02 04:38:30 +0000 | [diff] [blame] | 76 | # libbinder has some deprecated declarations that we want to produce warnings |
| 77 | # not errors |
| 78 | MODULE_EXPORT_COMPILEFLAGS += \ |
| 79 | -Wno-error=deprecated-declarations \ |
| 80 | |
Andrei Homescu | 74a5445 | 2021-12-10 05:30:21 +0000 | [diff] [blame] | 81 | MODULE_LIBRARY_DEPS += \ |
| 82 | trusty/user/base/lib/libstdc++-trusty \ |
| 83 | trusty/user/base/lib/tipc \ |
| 84 | external/boringssl \ |
| 85 | |
| 86 | include make/library.mk |