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