blob: 087718eaa8ae10708371fb930207487359379e9e [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"],
Jiyong Parkb7df6cb2017-04-13 21:19:48 -070018 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 Park92930562017-06-16 15:16:33 +090029}
30
Dan Willemsen59e086f2016-07-25 17:13:45 -070031cc_library {
32 name: "libbinder",
33
Steven Morelandcdb86b82017-04-13 21:19:48 -070034 // for vndbinder
35 vendor_available: true,
36
Dan Willemsen59e086f2016-07-25 17:13:45 -070037 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 Willemsen2a001e82016-08-05 14:06:41 -070047 "IMediaResourceMonitor.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070048 "IMemory.cpp",
49 "IPCThreadState.cpp",
50 "IPermissionController.cpp",
51 "IProcessInfoService.cpp",
Dan Willemsen2a001e82016-08-05 14:06:41 -070052 "IResultReceiver.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070053 "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 Parkb7df6cb2017-04-13 21:19:48 -070084
85 header_libs: [
86 "libbinder_headers",
87 ],
88
89 export_header_lib_headers: [
90 "libbinder_headers",
Dan Willemsen59e086f2016-07-25 17:13:45 -070091 ],
92
93 clang: true,
94 sanitize: {
95 misc_undefined: ["integer"],
96 },
97}
98
99subdirs = ["tests"]