blob: 698d911ed7c71c36cc0bab6a24173533cb71aede [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,
Justin Yun98f62c92017-08-02 17:02:05 +090036 vndk: {
37 enabled: true,
38 },
Steven Morelandcdb86b82017-04-13 21:19:48 -070039
Dan Willemsen59e086f2016-07-25 17:13:45 -070040 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 Willemsen2a001e82016-08-05 14:06:41 -070050 "IMediaResourceMonitor.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070051 "IMemory.cpp",
52 "IPCThreadState.cpp",
53 "IPermissionController.cpp",
54 "IProcessInfoService.cpp",
Dan Willemsen2a001e82016-08-05 14:06:41 -070055 "IResultReceiver.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070056 "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 Parkb7df6cb2017-04-13 21:19:48 -070087
88 header_libs: [
89 "libbinder_headers",
90 ],
91
92 export_header_lib_headers: [
93 "libbinder_headers",
Dan Willemsen59e086f2016-07-25 17:13:45 -070094 ],
95
96 clang: true,
97 sanitize: {
98 misc_undefined: ["integer"],
99 },
100}
101
102subdirs = ["tests"]