blob: f7347aef123746cb7d0cddf59da9dfefc1311a3d [file] [log] [blame]
Dan Willemsen59e086f2016-07-25 17:13:45 -07001// 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
15cc_library {
16 name: "libbinder",
17
Steven Morelandcdb86b82017-04-13 21:19:48 -070018 // for vndbinder
19 vendor_available: true,
20
Dan Willemsen59e086f2016-07-25 17:13:45 -070021 srcs: [
22 "AppOpsManager.cpp",
23 "Binder.cpp",
24 "BpBinder.cpp",
25 "BufferedTextOutput.cpp",
26 "Debug.cpp",
27 "IAppOpsCallback.cpp",
28 "IAppOpsService.cpp",
29 "IBatteryStats.cpp",
30 "IInterface.cpp",
Dan Willemsen2a001e82016-08-05 14:06:41 -070031 "IMediaResourceMonitor.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070032 "IMemory.cpp",
33 "IPCThreadState.cpp",
34 "IPermissionController.cpp",
35 "IProcessInfoService.cpp",
Dan Willemsen2a001e82016-08-05 14:06:41 -070036 "IResultReceiver.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070037 "IServiceManager.cpp",
38 "MemoryBase.cpp",
39 "MemoryDealer.cpp",
40 "MemoryHeapBase.cpp",
41 "Parcel.cpp",
42 "PermissionCache.cpp",
43 "PersistableBundle.cpp",
44 "ProcessInfoService.cpp",
45 "ProcessState.cpp",
46 "Static.cpp",
47 "Status.cpp",
48 "TextOutput.cpp",
49 ],
50
51 cflags: [
52 "-Wall",
53 "-Wextra",
54 "-Werror",
55 ],
56 product_variables: {
57 binder32bit: {
58 cflags: ["-DBINDER_IPC_32BIT=1"],
59 },
60 },
61
62 shared_libs: [
63 "libbase",
64 "liblog",
65 "libcutils",
66 "libutils",
67 ],
68 export_shared_lib_headers: [
69 "libbase",
70 "libutils",
71 ],
72
73 clang: true,
74 sanitize: {
75 misc_undefined: ["integer"],
76 },
77}
78
79subdirs = ["tests"]