blob: adb9674d7963649b4b925a2c1f0b2ac74ede3d04 [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 \
26 IMemory.cpp \
27 IPCThreadState.cpp \
28 IPermissionController.cpp \
Ruben Brunk52f04072015-01-28 18:13:33 -080029 IProcessInfoService.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070030 IServiceManager.cpp \
Mathias Agopian208059f2009-05-18 15:08:03 -070031 MemoryBase.cpp \
Samuel Tan0a312022015-11-23 18:22:12 -080032 MemoryDealer.cpp \
Mathias Agopian208059f2009-05-18 15:08:03 -070033 MemoryHeapBase.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070034 Parcel.cpp \
Mathias Agopian99b49842011-06-27 16:05:52 -070035 PermissionCache.cpp \
Samuel Tan0a312022015-11-23 18:22:12 -080036 PersistableBundle.cpp \
37 ProcessInfoService.cpp \
Dan Egnor386a3322010-05-06 00:55:09 -070038 ProcessState.cpp \
Mathias Agopian002e1e52013-05-06 20:20:50 -070039 Static.cpp \
Christopher Wiley09eb7492015-11-09 15:06:15 -080040 Status.cpp \
Mathias Agopian002e1e52013-05-06 20:20:50 -070041 TextOutput.cpp \
Mathias Agopian208059f2009-05-18 15:08:03 -070042
Dan Egnor386a3322010-05-06 00:55:09 -070043LOCAL_PATH:= $(call my-dir)
44
45include $(CLEAR_VARS)
Dan Egnor386a3322010-05-06 00:55:09 -070046LOCAL_MODULE := libbinder
Casey Dahlin25a36562015-11-18 21:30:02 +000047LOCAL_SHARED_LIBRARIES := liblog libcutils libutils
Dan Austinacc5c622015-09-08 16:18:13 -070048
49LOCAL_CLANG := true
50LOCAL_SANITIZE := integer
Dan Egnor386a3322010-05-06 00:55:09 -070051LOCAL_SRC_FILES := $(sources)
Arve Hjønnevåge91fff02014-01-28 19:57:02 -080052ifneq ($(TARGET_USES_64_BIT_BINDER),true)
Arve Hjønnevågf3ad11c2014-02-03 14:46:30 -080053ifneq ($(TARGET_IS_64_BIT),true)
Arve Hjønnevåge91fff02014-01-28 19:57:02 -080054LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
55endif
Arve Hjønnevågf3ad11c2014-02-03 14:46:30 -080056endif
Mark Salyzynd4ecccf2014-05-30 16:35:57 -070057LOCAL_CFLAGS += -Werror
Mathias Agopian208059f2009-05-18 15:08:03 -070058include $(BUILD_SHARED_LIBRARY)
Dan Egnor386a3322010-05-06 00:55:09 -070059
60include $(CLEAR_VARS)
Dan Egnor386a3322010-05-06 00:55:09 -070061LOCAL_MODULE := libbinder
Casey Dahlin25a36562015-11-18 21:30:02 +000062LOCAL_STATIC_LIBRARIES += libutils
Dan Egnor386a3322010-05-06 00:55:09 -070063LOCAL_SRC_FILES := $(sources)
Arve Hjønnevåge91fff02014-01-28 19:57:02 -080064ifneq ($(TARGET_USES_64_BIT_BINDER),true)
Arve Hjønnevågf3ad11c2014-02-03 14:46:30 -080065ifneq ($(TARGET_IS_64_BIT),true)
Arve Hjønnevåge91fff02014-01-28 19:57:02 -080066LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
67endif
Arve Hjønnevågf3ad11c2014-02-03 14:46:30 -080068endif
Mark Salyzynd4ecccf2014-05-30 16:35:57 -070069LOCAL_CFLAGS += -Werror
Dan Egnor386a3322010-05-06 00:55:09 -070070include $(BUILD_STATIC_LIBRARY)