blob: 77a8c022c4f6bc6b669692bb3238d57e53b2ddc5 [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
Jiyong Park92930562017-06-16 15:16:33 +090015cc_library_headers {
16 name: "libbinder_headers",
17 export_include_dirs: ["include"],
18}
19
Dan Willemsen59e086f2016-07-25 17:13:45 -070020cc_library {
21 name: "libbinder",
22
Steven Morelandcdb86b82017-04-13 21:19:48 -070023 // for vndbinder
24 vendor_available: true,
25
Dan Willemsen59e086f2016-07-25 17:13:45 -070026 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 Willemsen2a001e82016-08-05 14:06:41 -070036 "IMediaResourceMonitor.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070037 "IMemory.cpp",
38 "IPCThreadState.cpp",
39 "IPermissionController.cpp",
40 "IProcessInfoService.cpp",
Dan Willemsen2a001e82016-08-05 14:06:41 -070041 "IResultReceiver.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070042 "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
84subdirs = ["tests"]