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