Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -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 | |
| 15 | cc_library { |
| 16 | name: "libbinder", |
| 17 | |
| 18 | srcs: [ |
| 19 | "AppOpsManager.cpp", |
| 20 | "Binder.cpp", |
| 21 | "BpBinder.cpp", |
| 22 | "BufferedTextOutput.cpp", |
| 23 | "Debug.cpp", |
| 24 | "IAppOpsCallback.cpp", |
| 25 | "IAppOpsService.cpp", |
| 26 | "IBatteryStats.cpp", |
| 27 | "IInterface.cpp", |
Dan Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 28 | "IMediaResourceMonitor.cpp", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 29 | "IMemory.cpp", |
| 30 | "IPCThreadState.cpp", |
| 31 | "IPermissionController.cpp", |
| 32 | "IProcessInfoService.cpp", |
Dan Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 33 | "IResultReceiver.cpp", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 34 | "IServiceManager.cpp", |
| 35 | "MemoryBase.cpp", |
| 36 | "MemoryDealer.cpp", |
| 37 | "MemoryHeapBase.cpp", |
| 38 | "Parcel.cpp", |
| 39 | "PermissionCache.cpp", |
| 40 | "PersistableBundle.cpp", |
| 41 | "ProcessInfoService.cpp", |
| 42 | "ProcessState.cpp", |
| 43 | "Static.cpp", |
| 44 | "Status.cpp", |
| 45 | "TextOutput.cpp", |
| 46 | ], |
| 47 | |
| 48 | cflags: [ |
| 49 | "-Wall", |
| 50 | "-Wextra", |
| 51 | "-Werror", |
| 52 | ], |
| 53 | product_variables: { |
| 54 | binder32bit: { |
| 55 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 56 | }, |
| 57 | }, |
| 58 | |
| 59 | shared_libs: [ |
| 60 | "libbase", |
| 61 | "liblog", |
| 62 | "libcutils", |
| 63 | "libutils", |
| 64 | ], |
| 65 | export_shared_lib_headers: [ |
| 66 | "libbase", |
| 67 | "libutils", |
| 68 | ], |
| 69 | |
| 70 | clang: true, |
| 71 | sanitize: { |
| 72 | misc_undefined: ["integer"], |
| 73 | }, |
| 74 | } |
| 75 | |
| 76 | subdirs = ["tests"] |