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 | |
Jiyong Park | 9293056 | 2017-06-16 15:16:33 +0900 | [diff] [blame^] | 15 | cc_library_headers { |
| 16 | name: "libbinder_headers", |
| 17 | export_include_dirs: ["include"], |
| 18 | } |
| 19 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 20 | cc_library { |
| 21 | name: "libbinder", |
| 22 | |
Steven Moreland | cdb86b8 | 2017-04-13 21:19:48 -0700 | [diff] [blame] | 23 | // for vndbinder |
| 24 | vendor_available: true, |
| 25 | |
Dan Willemsen | 59e086f | 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", |
| 32 | "IAppOpsCallback.cpp", |
| 33 | "IAppOpsService.cpp", |
| 34 | "IBatteryStats.cpp", |
| 35 | "IInterface.cpp", |
Dan Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 36 | "IMediaResourceMonitor.cpp", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 37 | "IMemory.cpp", |
| 38 | "IPCThreadState.cpp", |
| 39 | "IPermissionController.cpp", |
| 40 | "IProcessInfoService.cpp", |
Dan Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 41 | "IResultReceiver.cpp", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 42 | "IServiceManager.cpp", |
| 43 | "MemoryBase.cpp", |
| 44 | "MemoryDealer.cpp", |
| 45 | "MemoryHeapBase.cpp", |
| 46 | "Parcel.cpp", |
| 47 | "PermissionCache.cpp", |
| 48 | "PersistableBundle.cpp", |
| 49 | "ProcessInfoService.cpp", |
| 50 | "ProcessState.cpp", |
| 51 | "Static.cpp", |
| 52 | "Status.cpp", |
| 53 | "TextOutput.cpp", |
| 54 | ], |
| 55 | |
| 56 | cflags: [ |
| 57 | "-Wall", |
| 58 | "-Wextra", |
| 59 | "-Werror", |
| 60 | ], |
| 61 | product_variables: { |
| 62 | binder32bit: { |
| 63 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 64 | }, |
| 65 | }, |
| 66 | |
| 67 | shared_libs: [ |
| 68 | "libbase", |
| 69 | "liblog", |
| 70 | "libcutils", |
| 71 | "libutils", |
| 72 | ], |
| 73 | export_shared_lib_headers: [ |
| 74 | "libbase", |
| 75 | "libutils", |
| 76 | ], |
| 77 | |
| 78 | clang: true, |
| 79 | sanitize: { |
| 80 | misc_undefined: ["integer"], |
| 81 | }, |
| 82 | } |
| 83 | |
| 84 | subdirs = ["tests"] |