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