• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16LOCAL_DIR := $(GET_LOCAL_DIR)
17
18MODULE := $(LOCAL_DIR)
19
20LIBBINDER_DIR := frameworks/native/libs/binder
21# TODO(b/302723053): remove libbase after aidl prebuilt gets updated to December release
22LIBBASE_DIR := system/libbase
23LIBLOG_STUB_DIR := $(LIBBINDER_DIR)/liblog_stub
24LIBUTILS_BINDER_DIR := system/core/libutils/binder
25
26MODULE_SRCS := \
27	$(LOCAL_DIR)/../OS.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	$(LIBUTILS_BINDER_DIR)/Errors.cpp \
39	$(LIBUTILS_BINDER_DIR)/RefBase.cpp \
40	$(LIBUTILS_BINDER_DIR)/SharedBuffer.cpp \
41	$(LIBUTILS_BINDER_DIR)/String16.cpp \
42	$(LIBUTILS_BINDER_DIR)/String8.cpp \
43	$(LIBUTILS_BINDER_DIR)/StrongPointer.cpp \
44	$(LIBUTILS_BINDER_DIR)/Unicode.cpp \
45	$(LIBUTILS_BINDER_DIR)/VectorImpl.cpp \
46
47MODULE_DEFINES += \
48	LK_DEBUGLEVEL_NO_ALIASES=1 \
49
50MODULE_INCLUDES += \
51	$(LOCAL_DIR)/.. \
52
53GLOBAL_INCLUDES += \
54	$(LOCAL_DIR)/include \
55	$(LOCAL_DIR)/../include \
56	$(LIBLOG_STUB_DIR)/include \
57	$(LIBBINDER_DIR)/include \
58	$(LIBBINDER_DIR)/ndk/include_cpp \
59	$(LIBBASE_DIR)/include \
60	$(LIBUTILS_BINDER_DIR)/include \
61
62GLOBAL_COMPILEFLAGS += \
63	-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION \
64	-DBINDER_NO_KERNEL_IPC \
65	-DBINDER_RPC_SINGLE_THREADED \
66	-DBINDER_ENABLE_LIBLOG_ASSERT \
67	-DBINDER_DISABLE_NATIVE_HANDLE \
68	-DBINDER_DISABLE_BLOB \
69	-DBINDER_NO_LIBBASE \
70	-D__ANDROID_VENDOR__ \
71	-D__ANDROID_VNDK__ \
72
73MODULE_DEPS += \
74	trusty/kernel/lib/libcxx-trusty \
75	trusty/kernel/lib/libcxxabi-trusty \
76
77include make/module.mk
78