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