blob: 715c1c1dcad90fc1f046a65bb062817ef88f49bb [file] [log] [blame]
Dan Willemsene05dc6d2016-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
Vijay Venkatraman5583be72017-03-24 16:13:58 -070015cc_library_headers {
16 name: "libbinder_headers",
17 export_include_dirs: ["include"],
Jiyong Park172bd722017-06-21 12:14:18 +090018 vendor_available: true,
Jiyong Parkb7df6cb2017-04-13 21:19:48 -070019 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 ],
Vijay Venkatraman5583be72017-03-24 16:13:58 -070029}
30
Dan Willemsene05dc6d2016-07-25 17:13:45 -070031cc_library {
32 name: "libbinder",
33
Steven Moreland3aa76162017-04-13 21:19:48 -070034 // for vndbinder
35 vendor_available: true,
Justin Yunb367ff42017-08-02 17:02:05 +090036 vndk: {
37 enabled: true,
38 },
Jiyong Parkfe0a8242018-04-09 12:16:30 +090039 double_loadable: true,
Steven Moreland3aa76162017-04-13 21:19:48 -070040
Dan Willemsene05dc6d2016-07-25 17:13:45 -070041 srcs: [
42 "AppOpsManager.cpp",
43 "Binder.cpp",
44 "BpBinder.cpp",
45 "BufferedTextOutput.cpp",
46 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080047 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070048 "IAppOpsCallback.cpp",
49 "IAppOpsService.cpp",
50 "IBatteryStats.cpp",
51 "IInterface.cpp",
52 "IMediaResourceMonitor.cpp",
53 "IMemory.cpp",
54 "IPCThreadState.cpp",
55 "IPermissionController.cpp",
56 "IProcessInfoService.cpp",
57 "IResultReceiver.cpp",
58 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070059 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070060 "MemoryBase.cpp",
61 "MemoryDealer.cpp",
62 "MemoryHeapBase.cpp",
63 "Parcel.cpp",
Ryo Hashimotobf551892018-05-31 16:58:35 +090064 "ParcelFileDescriptor.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070065 "PermissionCache.cpp",
66 "PersistableBundle.cpp",
67 "ProcessInfoService.cpp",
68 "ProcessState.cpp",
69 "Static.cpp",
70 "Status.cpp",
71 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080072 "IpPrefix.cpp",
73 "Value.cpp",
Colin Crossf89ee1a2017-11-14 13:05:37 -080074 ":libbinder_aidl",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070075 ],
76
Todd Kennedy757186e2017-08-02 07:49:20 -070077 aidl: {
78 export_aidl_headers: true,
79 },
80
Dan Willemsene05dc6d2016-07-25 17:13:45 -070081 cflags: [
82 "-Wall",
83 "-Wextra",
84 "-Werror",
85 ],
86 product_variables: {
87 binder32bit: {
88 cflags: ["-DBINDER_IPC_32BIT=1"],
89 },
90 },
91
92 shared_libs: [
93 "libbase",
94 "liblog",
95 "libcutils",
96 "libutils",
David Sehr07562652018-01-17 17:10:18 -080097 "libutilscallstack",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070098 ],
Jiyong Park42842052017-06-20 13:51:22 +090099
100 header_libs: [
101 "libbinder_headers",
102 ],
103
Jiyong Park42842052017-06-20 13:51:22 +0900104 export_header_lib_headers: [
105 "libbinder_headers",
Dan Stozad630e522016-12-01 15:16:31 -0800106 ],
107
Dan Willemsene05dc6d2016-07-25 17:13:45 -0700108 clang: true,
109 sanitize: {
110 misc_undefined: ["integer"],
111 },
112}
113
Colin Crossf89ee1a2017-11-14 13:05:37 -0800114// AIDL interface between libbinder and framework.jar
115filegroup {
116 name: "libbinder_aidl",
117 srcs: [
118 "aidl/android/content/pm/IPackageManagerNative.aidl",
119 ],
120}
121
Dan Willemsene05dc6d2016-07-25 17:13:45 -0700122subdirs = ["tests"]