blob: 09fd0cb482f824e6420dd0ef441c41b4ad48b679 [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 },
Steven Moreland3aa76162017-04-13 21:19:48 -070039
Dan Willemsene05dc6d2016-07-25 17:13:45 -070040 srcs: [
41 "AppOpsManager.cpp",
42 "Binder.cpp",
43 "BpBinder.cpp",
44 "BufferedTextOutput.cpp",
45 "Debug.cpp",
Sudheer Shanka6ef26f12016-11-23 15:52:26 -080046 "IActivityManager.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070047 "IAppOpsCallback.cpp",
48 "IAppOpsService.cpp",
49 "IBatteryStats.cpp",
50 "IInterface.cpp",
51 "IMediaResourceMonitor.cpp",
52 "IMemory.cpp",
53 "IPCThreadState.cpp",
54 "IPermissionController.cpp",
55 "IProcessInfoService.cpp",
56 "IResultReceiver.cpp",
57 "IServiceManager.cpp",
Dianne Hackborn1941a402016-08-29 12:30:43 -070058 "IShellCallback.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070059 "MemoryBase.cpp",
60 "MemoryDealer.cpp",
61 "MemoryHeapBase.cpp",
62 "Parcel.cpp",
63 "PermissionCache.cpp",
64 "PersistableBundle.cpp",
65 "ProcessInfoService.cpp",
66 "ProcessState.cpp",
67 "Static.cpp",
68 "Status.cpp",
69 "TextOutput.cpp",
Robert Quattlebaum6316f5b2017-01-04 13:25:14 -080070 "IpPrefix.cpp",
71 "Value.cpp",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070072 ],
73
74 cflags: [
75 "-Wall",
76 "-Wextra",
77 "-Werror",
78 ],
79 product_variables: {
80 binder32bit: {
81 cflags: ["-DBINDER_IPC_32BIT=1"],
82 },
83 },
84
85 shared_libs: [
86 "libbase",
87 "liblog",
88 "libcutils",
89 "libutils",
Dan Willemsene05dc6d2016-07-25 17:13:45 -070090 ],
Jiyong Park42842052017-06-20 13:51:22 +090091
92 header_libs: [
93 "libbinder_headers",
94 ],
95
Jiyong Park42842052017-06-20 13:51:22 +090096 export_header_lib_headers: [
97 "libbinder_headers",
Dan Stozad630e522016-12-01 15:16:31 -080098 ],
99
Dan Willemsene05dc6d2016-07-25 17:13:45 -0700100 clang: true,
101 sanitize: {
102 misc_undefined: ["integer"],
103 },
104}
105
106subdirs = ["tests"]