Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 1 | # 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 Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 15 | # we have the common sources, plus some device-specific stuff |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 16 | sources := \ |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 17 | AppOpsManager.cpp \ |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 18 | Binder.cpp \ |
| 19 | BpBinder.cpp \ |
Mathias Agopian | 002e1e5 | 2013-05-06 20:20:50 -0700 | [diff] [blame] | 20 | BufferedTextOutput.cpp \ |
| 21 | Debug.cpp \ |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 22 | IAppOpsCallback.cpp \ |
| 23 | IAppOpsService.cpp \ |
Mike Lockwood | 63ff1c6 | 2013-09-25 09:28:41 -0700 | [diff] [blame] | 24 | IBatteryStats.cpp \ |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 25 | IInterface.cpp \ |
| 26 | IMemory.cpp \ |
| 27 | IPCThreadState.cpp \ |
| 28 | IPermissionController.cpp \ |
Ruben Brunk | 52f0407 | 2015-01-28 18:13:33 -0800 | [diff] [blame] | 29 | IProcessInfoService.cpp \ |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 30 | IServiceManager.cpp \ |
Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 31 | MemoryBase.cpp \ |
Samuel Tan | 0a31202 | 2015-11-23 18:22:12 -0800 | [diff] [blame] | 32 | MemoryDealer.cpp \ |
Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 33 | MemoryHeapBase.cpp \ |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 34 | Parcel.cpp \ |
Mathias Agopian | 99b4984 | 2011-06-27 16:05:52 -0700 | [diff] [blame] | 35 | PermissionCache.cpp \ |
Samuel Tan | 0a31202 | 2015-11-23 18:22:12 -0800 | [diff] [blame] | 36 | PersistableBundle.cpp \ |
| 37 | ProcessInfoService.cpp \ |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 38 | ProcessState.cpp \ |
Mathias Agopian | 002e1e5 | 2013-05-06 20:20:50 -0700 | [diff] [blame] | 39 | Static.cpp \ |
Christopher Wiley | 09eb749 | 2015-11-09 15:06:15 -0800 | [diff] [blame] | 40 | Status.cpp \ |
Mathias Agopian | 002e1e5 | 2013-05-06 20:20:50 -0700 | [diff] [blame] | 41 | TextOutput.cpp \ |
Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 42 | |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 43 | LOCAL_PATH:= $(call my-dir) |
| 44 | |
| 45 | include $(CLEAR_VARS) |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 46 | LOCAL_MODULE := libbinder |
Casey Dahlin | 25a3656 | 2015-11-18 21:30:02 +0000 | [diff] [blame] | 47 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils |
Dan Austin | acc5c62 | 2015-09-08 16:18:13 -0700 | [diff] [blame] | 48 | |
| 49 | LOCAL_CLANG := true |
| 50 | LOCAL_SANITIZE := integer |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 51 | LOCAL_SRC_FILES := $(sources) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 52 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 53 | ifneq ($(TARGET_IS_64_BIT),true) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 54 | LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1 |
| 55 | endif |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 56 | endif |
Mark Salyzyn | d4ecccf | 2014-05-30 16:35:57 -0700 | [diff] [blame] | 57 | LOCAL_CFLAGS += -Werror |
Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 58 | include $(BUILD_SHARED_LIBRARY) |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 59 | |
| 60 | include $(CLEAR_VARS) |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 61 | LOCAL_MODULE := libbinder |
Casey Dahlin | 25a3656 | 2015-11-18 21:30:02 +0000 | [diff] [blame] | 62 | LOCAL_STATIC_LIBRARIES += libutils |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 63 | LOCAL_SRC_FILES := $(sources) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 64 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 65 | ifneq ($(TARGET_IS_64_BIT),true) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 66 | LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1 |
| 67 | endif |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 68 | endif |
Mark Salyzyn | d4ecccf | 2014-05-30 16:35:57 -0700 | [diff] [blame] | 69 | LOCAL_CFLAGS += -Werror |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 70 | include $(BUILD_STATIC_LIBRARY) |