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 \ |
| 29 | IServiceManager.cpp \ |
| 30 | MemoryDealer.cpp \ |
Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 31 | MemoryBase.cpp \ |
| 32 | MemoryHeapBase.cpp \ |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 33 | Parcel.cpp \ |
Mathias Agopian | 99b4984 | 2011-06-27 16:05:52 -0700 | [diff] [blame] | 34 | PermissionCache.cpp \ |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 35 | ProcessState.cpp \ |
Mathias Agopian | 002e1e5 | 2013-05-06 20:20:50 -0700 | [diff] [blame] | 36 | Static.cpp \ |
| 37 | TextOutput.cpp \ |
Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 38 | |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 39 | LOCAL_PATH:= $(call my-dir) |
| 40 | |
| 41 | include $(CLEAR_VARS) |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 42 | LOCAL_MODULE := libbinder |
| 43 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils |
| 44 | LOCAL_SRC_FILES := $(sources) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 45 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 46 | ifneq ($(TARGET_IS_64_BIT),true) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 47 | LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1 |
| 48 | endif |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 49 | endif |
Mark Salyzyn | d4ecccf | 2014-05-30 16:35:57 -0700 | [diff] [blame] | 50 | LOCAL_CFLAGS += -Werror |
Mathias Agopian | 208059f | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 51 | include $(BUILD_SHARED_LIBRARY) |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 52 | |
| 53 | include $(CLEAR_VARS) |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 54 | LOCAL_MODULE := libbinder |
Alex Ray | 894e178 | 2013-07-23 13:42:12 -0700 | [diff] [blame] | 55 | LOCAL_STATIC_LIBRARIES += libutils |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 56 | LOCAL_SRC_FILES := $(sources) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 57 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 58 | ifneq ($(TARGET_IS_64_BIT),true) |
Arve Hjønnevåg | e91fff0 | 2014-01-28 19:57:02 -0800 | [diff] [blame] | 59 | LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1 |
| 60 | endif |
Arve Hjønnevåg | f3ad11c | 2014-02-03 14:46:30 -0800 | [diff] [blame] | 61 | endif |
Mark Salyzyn | d4ecccf | 2014-05-30 16:35:57 -0700 | [diff] [blame] | 62 | LOCAL_CFLAGS += -Werror |
Dan Egnor | 386a332 | 2010-05-06 00:55:09 -0700 | [diff] [blame] | 63 | include $(BUILD_STATIC_LIBRARY) |