Mathias Agopian | 7922fa2 | 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 | 7922fa2 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 15 | # we have the common sources, plus some device-specific stuff |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 16 | sources := \ |
Dianne Hackborn | 2b4eff1 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 17 | AppOpsManager.cpp \ |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 18 | Binder.cpp \ |
| 19 | BpBinder.cpp \ |
Mathias Agopian | 4ea13dc | 2013-05-06 20:20:50 -0700 | [diff] [blame] | 20 | BufferedTextOutput.cpp \ |
| 21 | Debug.cpp \ |
Dianne Hackborn | 2b4eff1 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 22 | IAppOpsCallback.cpp \ |
| 23 | IAppOpsService.cpp \ |
Mike Lockwood | e09c7bc | 2013-09-25 09:28:41 -0700 | [diff] [blame] | 24 | IBatteryStats.cpp \ |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 25 | IInterface.cpp \ |
| 26 | IMemory.cpp \ |
| 27 | IPCThreadState.cpp \ |
| 28 | IPermissionController.cpp \ |
Ruben Brunk | fc34e9f | 2015-01-28 18:13:33 -0800 | [diff] [blame] | 29 | IProcessInfoService.cpp \ |
| 30 | ProcessInfoService.cpp \ |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 31 | IServiceManager.cpp \ |
| 32 | MemoryDealer.cpp \ |
Mathias Agopian | 7922fa2 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 33 | MemoryBase.cpp \ |
| 34 | MemoryHeapBase.cpp \ |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 35 | Parcel.cpp \ |
Mathias Agopian | 19cbd63 | 2011-06-27 16:05:52 -0700 | [diff] [blame] | 36 | PermissionCache.cpp \ |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 37 | ProcessState.cpp \ |
Mathias Agopian | 4ea13dc | 2013-05-06 20:20:50 -0700 | [diff] [blame] | 38 | Static.cpp \ |
| 39 | TextOutput.cpp \ |
Mathias Agopian | 7922fa2 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 40 | |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 41 | LOCAL_PATH:= $(call my-dir) |
| 42 | |
| 43 | include $(CLEAR_VARS) |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 44 | LOCAL_MODULE := libbinder |
| 45 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils |
| 46 | LOCAL_SRC_FILES := $(sources) |
Arve Hjønnevåg | ef3fe4d | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 47 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) |
Arve Hjønnevåg | 5420e7a | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 48 | ifneq ($(TARGET_IS_64_BIT),true) |
Arve Hjønnevåg | ef3fe4d | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 49 | LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1 |
| 50 | endif |
Arve Hjønnevåg | 5420e7a | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 51 | endif |
Mark Salyzyn | 386eb9e | 2014-05-30 16:35:57 -0700 | [diff] [blame] | 52 | LOCAL_CFLAGS += -Werror |
Mathias Agopian | 7922fa2 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 53 | include $(BUILD_SHARED_LIBRARY) |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 54 | |
| 55 | include $(CLEAR_VARS) |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 56 | LOCAL_MODULE := libbinder |
Alex Ray | 97005cb | 2013-07-23 13:42:12 -0700 | [diff] [blame] | 57 | LOCAL_STATIC_LIBRARIES += libutils |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 58 | LOCAL_SRC_FILES := $(sources) |
Arve Hjønnevåg | ef3fe4d | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 59 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) |
Arve Hjønnevåg | 5420e7a | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 60 | ifneq ($(TARGET_IS_64_BIT),true) |
Arve Hjønnevåg | ef3fe4d | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 61 | LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1 |
| 62 | endif |
Arve Hjønnevåg | 5420e7a | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 63 | endif |
Mark Salyzyn | 386eb9e | 2014-05-30 16:35:57 -0700 | [diff] [blame] | 64 | LOCAL_CFLAGS += -Werror |
Dan Egnor | 87957f7 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 65 | include $(BUILD_STATIC_LIBRARY) |