Dan Willemsen | e05dc6d | 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", |
Sudheer Shanka | 6ef26f1 | 2016-11-23 15:52:26 -0800 | [diff] [blame] | 24 | "IActivityManager.cpp", |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 25 | "IAppOpsCallback.cpp", |
| 26 | "IAppOpsService.cpp", |
| 27 | "IBatteryStats.cpp", |
| 28 | "IInterface.cpp", |
| 29 | "IMediaResourceMonitor.cpp", |
| 30 | "IMemory.cpp", |
| 31 | "IPCThreadState.cpp", |
| 32 | "IPermissionController.cpp", |
| 33 | "IProcessInfoService.cpp", |
| 34 | "IResultReceiver.cpp", |
| 35 | "IServiceManager.cpp", |
Dianne Hackborn | 1941a40 | 2016-08-29 12:30:43 -0700 | [diff] [blame] | 36 | "IShellCallback.cpp", |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 37 | "MemoryBase.cpp", |
| 38 | "MemoryDealer.cpp", |
| 39 | "MemoryHeapBase.cpp", |
| 40 | "Parcel.cpp", |
| 41 | "PermissionCache.cpp", |
| 42 | "PersistableBundle.cpp", |
| 43 | "ProcessInfoService.cpp", |
| 44 | "ProcessState.cpp", |
| 45 | "Static.cpp", |
| 46 | "Status.cpp", |
| 47 | "TextOutput.cpp", |
Robert Quattlebaum | 6316f5b | 2017-01-04 13:25:14 -0800 | [diff] [blame] | 48 | "IpPrefix.cpp", |
| 49 | "Value.cpp", |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 50 | ], |
| 51 | |
| 52 | cflags: [ |
| 53 | "-Wall", |
| 54 | "-Wextra", |
| 55 | "-Werror", |
| 56 | ], |
| 57 | product_variables: { |
| 58 | binder32bit: { |
| 59 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 60 | }, |
| 61 | }, |
| 62 | |
| 63 | shared_libs: [ |
| 64 | "libbase", |
| 65 | "liblog", |
| 66 | "libcutils", |
| 67 | "libutils", |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 68 | ], |
| 69 | export_shared_lib_headers: [ |
| 70 | "libbase", |
| 71 | "libutils", |
| 72 | ], |
| 73 | |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame^] | 74 | export_include_dirs: [ |
| 75 | "include", |
| 76 | ], |
| 77 | |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 78 | clang: true, |
| 79 | sanitize: { |
| 80 | misc_undefined: ["integer"], |
| 81 | }, |
| 82 | } |
| 83 | |
| 84 | subdirs = ["tests"] |