blob: b57b02ae8304ec59c65c79fae15e4097cbcf9d35 [file] [log] [blame]
Mathias Agopian208059f2009-05-18 15:08:03 -07001# Copyright (C) 2009 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
Mathias Agopian208059f2009-05-18 15:08:03 -070015# we have the common sources, plus some device-specific stuff
Dan Egnor386a3322010-05-06 00:55:09 -070016sources := \
Dianne Hackborn5da5ca52013-02-12 15:12:21 -080017 AppOpsManager.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070018 Binder.cpp \
19 BpBinder.cpp \
Mathias Agopian002e1e52013-05-06 20:20:50 -070020 BufferedTextOutput.cpp \
21 Debug.cpp \
Dianne Hackborn5da5ca52013-02-12 15:12:21 -080022 IAppOpsCallback.cpp \
23 IAppOpsService.cpp \
Mike Lockwood63ff1c62013-09-25 09:28:41 -070024 IBatteryStats.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070025 IInterface.cpp \
Dongwon Kang2652c172015-12-14 21:59:19 +090026 IMediaResourceMonitor.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070027 IMemory.cpp \
28 IPCThreadState.cpp \
29 IPermissionController.cpp \
Ruben Brunk52f04072015-01-28 18:13:33 -080030 IProcessInfoService.cpp \
Dianne Hackborn23eb1e22015-10-07 17:35:27 -070031 IResultReceiver.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070032 IServiceManager.cpp \
Mathias Agopian208059f2009-05-18 15:08:03 -070033 MemoryBase.cpp \
Samuel Tan0a312022015-11-23 18:22:12 -080034 MemoryDealer.cpp \
Mathias Agopian208059f2009-05-18 15:08:03 -070035 MemoryHeapBase.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070036 Parcel.cpp \
Mathias Agopian99b49842011-06-27 16:05:52 -070037 PermissionCache.cpp \
Samuel Tan0a312022015-11-23 18:22:12 -080038 PersistableBundle.cpp \
39 ProcessInfoService.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070040 ProcessState.cpp \
Mathias Agopian002e1e52013-05-06 20:20:50 -070041 Static.cpp \
Christopher Wiley09eb7492015-11-09 15:06:15 -080042 Status.cpp \
Mathias Agopian002e1e52013-05-06 20:20:50 -070043 TextOutput.cpp \
Mathias Agopian208059f2009-05-18 15:08:03 -070044
Dan Egnor386a3322010-05-06 00:55:09 -070045LOCAL_PATH:= $(call my-dir)
46
Christopher Wiley3652ff42016-07-19 09:40:13 -070047binder_cflags := -Wall -Wextra -Werror
48ifneq ($(TARGET_USES_64_BIT_BINDER),true)
49ifneq ($(TARGET_IS_64_BIT),true)
50binder_cflags += -DBINDER_IPC_32BIT=1
51endif
52endif
53
Dan Egnor386a3322010-05-06 00:55:09 -070054include $(CLEAR_VARS)
Dan Egnor386a3322010-05-06 00:55:09 -070055LOCAL_MODULE := libbinder
Christopher Wiley83e6b982016-04-19 10:27:00 -070056LOCAL_SHARED_LIBRARIES := libbase liblog libcutils libutils
57LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libbase libutils
Dan Austinacc5c622015-09-08 16:18:13 -070058
Dan Austinacc5c622015-09-08 16:18:13 -070059LOCAL_SANITIZE := integer
Dan Egnor386a3322010-05-06 00:55:09 -070060LOCAL_SRC_FILES := $(sources)
Christopher Wiley3652ff42016-07-19 09:40:13 -070061LOCAL_CFLAGS := $(binder_cflags)
Mathias Agopian208059f2009-05-18 15:08:03 -070062include $(BUILD_SHARED_LIBRARY)
Dan Egnor386a3322010-05-06 00:55:09 -070063
64include $(CLEAR_VARS)
Dan Egnor386a3322010-05-06 00:55:09 -070065LOCAL_MODULE := libbinder
Christopher Wiley83e6b982016-04-19 10:27:00 -070066LOCAL_STATIC_LIBRARIES := libbase libutils
67LOCAL_EXPORT_STATIC_LIBRARY_HEADERS := libbase libutils
Dan Egnor386a3322010-05-06 00:55:09 -070068LOCAL_SRC_FILES := $(sources)
Christopher Wiley3652ff42016-07-19 09:40:13 -070069LOCAL_CFLAGS := $(binder_cflags)
Dan Egnor386a3322010-05-06 00:55:09 -070070include $(BUILD_STATIC_LIBRARY)