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