blob: cd81a09316477c7915799ce783b2694d5822bd91 [file] [log] [blame]
Andrei Homescu74a54452021-12-10 05:30:21 +00001# 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
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)/OS.cpp \
29 $(LOCAL_DIR)/RpcServerTrusty.cpp \
30 $(LOCAL_DIR)/RpcTransportTipcTrusty.cpp \
31 $(LOCAL_DIR)/TrustyStatus.cpp \
32 $(LOCAL_DIR)/socket.cpp \
33 $(LIBBINDER_DIR)/Binder.cpp \
34 $(LIBBINDER_DIR)/BpBinder.cpp \
35 $(LIBBINDER_DIR)/FdTrigger.cpp \
36 $(LIBBINDER_DIR)/IInterface.cpp \
37 $(LIBBINDER_DIR)/IResultReceiver.cpp \
38 $(LIBBINDER_DIR)/Parcel.cpp \
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 \
45 $(LIBBASE_DIR)/hex.cpp \
46 $(LIBBASE_DIR)/stringprintf.cpp \
47 $(LIBUTILS_DIR)/Errors.cpp \
48 $(LIBUTILS_DIR)/misc.cpp \
49 $(LIBUTILS_DIR)/RefBase.cpp \
50 $(LIBUTILS_DIR)/StrongPointer.cpp \
51 $(LIBUTILS_DIR)/Unicode.cpp \
52
53# TODO: remove the following when libbinder supports std::string
54# instead of String16 and String8 for Status and descriptors
55MODULE_SRCS += \
56 $(LIBUTILS_DIR)/SharedBuffer.cpp \
57 $(LIBUTILS_DIR)/String16.cpp \
58 $(LIBUTILS_DIR)/String8.cpp \
59
60# TODO: disable dump() transactions to get rid of Vector
61MODULE_SRCS += \
62 $(LIBUTILS_DIR)/VectorImpl.cpp \
63
64MODULE_EXPORT_INCLUDES += \
65 $(LOCAL_DIR)/include \
66 $(LIBBINDER_DIR)/include \
67 $(LIBBASE_DIR)/include \
68 $(LIBCUTILS_DIR)/include \
69 $(LIBUTILS_DIR)/include \
70 $(FMTLIB_DIR)/include \
71
72MODULE_EXPORT_COMPILEFLAGS += \
73 -DBINDER_NO_KERNEL_IPC \
74 -DBINDER_RPC_SINGLE_THREADED \
75 -D__ANDROID_VNDK__ \
76
77MODULE_LIBRARY_DEPS += \
78 trusty/user/base/lib/libstdc++-trusty \
79 trusty/user/base/lib/tipc \
80 external/boringssl \
81
82include make/library.mk